Author Topic: Half of ban list gone after different version installed.  (Read 11079 times)

0 Members and 1 Guest are viewing this topic.

Offline xboxedd

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
Half of ban list gone after different version installed.
« on: July 13, 2013, 04:28:22 PM »
I re installed the version of ulx my server uses. When I replaced the new ban.txt file with my old ban.txt file it only shows half of the bans and when i re downloaded that file, the ban list had been cut in half. How can I use my old ban.txt list?

My old ban.txt file is 40kb and when i upload that file it is cut down to 20kb.

I REALLY don't want to have to reban half of the people who usted to be banned. I need help before they come back!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Half of ban list gone after different version installed.
« Reply #1 on: July 13, 2013, 10:02:45 PM »
You had the server shut down when you did the over-write, right?
And, how old was your old ULX?
It's likely you have a corrupt original ban.txt. Old versions of ULX sometimes allowed players with assorted ascii that lua didn't like to read to be stored in the ban.txt, which would corrupt it.

If you had permanent bans in it, your server's "Real" banned_user.cfg list should already have all your bans.
Our ban.txt is really only needed to store the who banned, the reason, and when temporary ban, the length of time across server sessions.
(For whatever reason, Steam doesn't keep temp bans across server sessions)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline xboxedd

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
Re: Half of ban list gone after different version installed.
« Reply #2 on: July 14, 2013, 05:44:58 AM »
You had the server shut down when you did the over-write, right?
And, how old was your old ULX?
It's likely you have a corrupt original ban.txt. Old versions of ULX sometimes allowed players with assorted ascii that lua didn't like to read to be stored in the ban.txt, which would corrupt it.

If you had permanent bans in it, your server's "Real" banned_user.cfg list should already have all your bans.
Our ban.txt is really only needed to store the who banned, the reason, and when temporary ban, the length of time across server sessions.
(For whatever reason, Steam doesn't keep temp bans across server sessions)

My server was off. I was and still use the 3.60 version because I can't get the SVN version on my server. The only difference I see is that new ban.txt files are not that organised. My old ban.txt file has  suff written like

"Name
Steam id
Reason"

The new one writes stuff like

"Namesteam Idreason"

Is there anyone I can add on steam or talk to so i can fix this faster?
« Last Edit: July 14, 2013, 07:59:21 AM by xboxedd »

Offline xboxedd

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
Re: Half of ban list gone after different version installed.
« Reply #3 on: July 14, 2013, 08:32:59 AM »
A file named bans_backup.txt appeared in my data/ulib folder that looks to be exactly the same as the ban.txt file that I uploaded in size and content. My bans.txt file has shrunk to 20kb from 40kb. It seems that when I replace my bans.txt file, that file is shrunk to 20kbs and another file named bans_backup.txt is created. Is this what's happening? If so, are both files being used to enforce the bans we've made?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Half of ban list gone after different version installed.
« Reply #4 on: July 14, 2013, 01:48:58 PM »
When ULX creates backup files, it always explains why it's doing so from the server console. Read the console logs and report back.
Experiencing God's grace one day at a time.

Offline xboxedd

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
Re: Half of ban list gone after different version installed.
« Reply #5 on: July 14, 2013, 02:08:28 PM »
When ULX creates backup files, it always explains why it's doing so from the server console. Read the console logs and report back.

I can't seem to find anything just scrolling through my logs. Is there a certain message I should be looking for?

Also, It seems that all of the bans returned somehow, is the backup also being used to keep track of bans? If so, is there a need to do anything at all?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Half of ban list gone after different version installed.
« Reply #6 on: July 14, 2013, 02:57:01 PM »
No, the backup is not used at all. The message will appear during or shortly after ULX loads.
Experiencing God's grace one day at a time.

Offline xboxedd

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
Re: Half of ban list gone after different version installed.
« Reply #7 on: July 14, 2013, 05:30:28 PM »
No, the backup is not used at all. The message will appear during or shortly after ULX loads.

I don't see any errors. The only thing I notice that could be an error would be

Code: [Select]
Server logging data to file logs\L0715001.log
PREP OK
Lua JIT is DISABLED!
///////////////////////////////
// Ulysses Library //
///////////////////////////////
// Loading... //
// shared/defines.lua //
// shared/misc.lua //

I don't know what specific error/message I'm looking for.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Half of ban list gone after different version installed.
« Reply #8 on: July 14, 2013, 08:17:56 PM »
Show the rest of the startup log when an additional backup file is created.
Experiencing God's grace one day at a time.

Offline xboxedd

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
Re: Half of ban list gone after different version installed.
« Reply #9 on: July 15, 2013, 06:49:25 AM »
Show the rest of the startup log when an additional backup file is created.

Ok. I attatched a file of my server's console when it started up after I restarted it.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Half of ban list gone after different version installed.
« Reply #10 on: July 15, 2013, 03:45:28 PM »
Was a backup file created when the server started up? I'm thinking probably not, or it would have said something. :P
Experiencing God's grace one day at a time.

Offline xboxedd

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
Re: Half of ban list gone after different version installed.
« Reply #11 on: July 15, 2013, 03:48:23 PM »
Was a backup file created when the server started up? I'm thinking probably not, or it would have said something. :P

This is from when my server started up this morning. So the backup file was already made. I can't find the log file from when I first put it in.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Half of ban list gone after different version installed.
« Reply #12 on: July 15, 2013, 04:02:32 PM »
This is from when my server started up this morning. So the backup file was already made. I can't find the log file from when I first put it in.

You would need to put the original file back in to know what was wrong with it.
Experiencing God's grace one day at a time.

Offline xboxedd

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
Re: Half of ban list gone after different version installed.
« Reply #13 on: July 16, 2013, 08:10:54 AM »
You would need to put the original file back in to know what was wrong with it.

Found the problem

Bans file was not formatted correctly. Attempting to fix and backing up original
Error while reading bans file was: Bad input on line 1
Original file was backed up to ulib/bans_backup.txt

Here is what my original bans.txt looks like
http://pastebin.com/HyrchMpN

 and here is what my bans.txt file looks like after the backup is created.
http://pastebin.com/DXr1kF8V

Offline xboxedd

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
Re: Half of ban list gone after different version installed.
« Reply #14 on: July 16, 2013, 07:24:08 PM »
Bumb. I really need this fixed. I only have 3 people banned other than the people who are perma banned...