ULX

Author Topic: ULX deleted my entire ban list!  (Read 4677 times)

0 Members and 1 Guest are viewing this topic.

Offline PatPeter

  • Newbie
  • *
  • Posts: 14
  • Karma: -1
ULX deleted my entire ban list!
« on: March 09, 2014, 01:48:39 PM »
I had about 20 bans on my ULX ban list, and yesterday night I came on to find that all of my bans had been deleted. The only ban remaining was a week ban that expired the day before. Now, whenever I add a ban, it does not register. I have not installed anything new on my server in the past week. What could this possibly be?

Offline Cobalt

  • Full Member
  • ***
  • Posts: 216
  • Karma: 44
  • http://steamcommunity.com/id/__yvl/
Re: ULX deleted my entire ban list!
« Reply #1 on: March 09, 2014, 01:52:31 PM »
Try restoring your server from a backup as to see if you can get those files back, assuming they are gone.
« Last Edit: March 09, 2014, 02:14:48 PM by Cobalt »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX deleted my entire ban list!
« Reply #2 on: March 09, 2014, 02:07:29 PM »
May I ask, why you first state 'ulx' did it, then ask 'what could it possibly be?'.
Though I'm not saying ULX may not have been a factor, there is no code in ULX that would delete an entire ban list.
There _is_ code in ULX that might over-write a ban list, but only if something (not related to ULX) had gone wrong with your ban lists in the first place.
Do you still have the default Source ban file in gmod/cfg/banned_user.txt?
Are there any ULX ban files in gmod/data/ulx (or maybe it's ULib, i forget where we store the ban info)?

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline PatPeter

  • Newbie
  • *
  • Posts: 14
  • Karma: -1
Re: ULX deleted my entire ban list!
« Reply #3 on: March 09, 2014, 02:49:35 PM »
@Cobalt My server has only been up for a few weeks, so I did not have backups of these files.

@JamminR ULX is separated into modules/components, yes? I was asserting that it had to be ULX because ULX is the only addon of mine that manages bans, and I was asking which component/module of ULX might have done this.

garrysmod/data/ulib/bans.txt is 0 bytes.

Also, I just found out that it is doing the same thing to users.txt in the same directory. I still have groups, but ULX has deleted all of my users from those groups.

When I added a test ban with ULX, it said:

Code: [Select]
Writing cfg/banned_user.cfg.
But when I downloaded the file, it was empty.
« Last Edit: March 09, 2014, 04:05:17 PM by PatPeter »

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: ULX deleted my entire ban list!
« Reply #4 on: March 09, 2014, 04:52:44 PM »
You have a bunch of file corruptions and ULib is erasing the corrupted files.

And in my opinion, 20 bans is not too big of a loss.
Out of the Garry's Mod business.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX deleted my entire ban list!
« Reply #5 on: March 09, 2014, 07:44:00 PM »
The bans.txt isn't the primary server bans file. The banned_user.cfg file is.
We only use bans.txt to write additional info -
1) Temp bans. Source server doesn't store temporary bans across server sessions, so, we wrote ULX to remember them across server restarts.
2) Ban reason. (Source's banned_users.cfg doesn't do this)
3) Name of player at time of ban. (Source's file doesn't store this.
4) Admin who banned player (Source's file doesn't do this)

ULX loads the server's 'real' banned users file at server startup.
It then adds to the server's primary file, and bans.txt, when someone is banned.

If there is any file corruption to the servers gmod/data/ulib/users.txt or groups.txt, ULib will back them up before recreating them and they'd be in the same folder.

If either one is 0 bytes, there is a catastrophic conflict or exploit going on with your server, and ULX is likely NOT the root cause.

While your server is up and running, with you and a few players on, please run a "ulx debuginfo" from the server console.
It will create a file and tell you where it put it. Grab that file, and attach it to your next post.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline sabo

  • Full Member
  • ***
  • Posts: 136
  • Karma: 2
  • Hello :)
    • The Elite Gaming
Re: ULX deleted my entire ban list!
« Reply #6 on: March 13, 2014, 12:27:44 PM »
Would you mind checking your server logs and search for someone of your staff who is able to demote/unban people? :)

Offline PatPeter

  • Newbie
  • *
  • Posts: 14
  • Karma: -1
Re: ULX deleted my entire ban list!
« Reply #7 on: March 15, 2014, 04:01:20 PM »
My apologies everyone, my apologies. I had 1-2 GB of free space on my GM server's partition, and unbeknownst to me a rouge addon spewed out a couple gigs of log files and then made logs about those log files...

So when my server tried to save files, it errored out and left them with 0 bytes.