Author Topic: Banmenu crashes server ='(  (Read 4581 times)

0 Members and 1 Guest are viewing this topic.

Offline lolol

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Banmenu crashes server ='(
« on: August 09, 2008, 09:51:51 AM »
Okay, here is my problem.
Everything works fine exept the fact that I can not ban anyone, and if I try to the server gets a 10 seconds total freeze, and if you open the "!bansmenu" the server crashes.
I have had the same problem mabye 6 months ago and I had to reinstall whe whole server and I am not going to do that again.  :'(
With the custom groups, mods, Uteam and MOTD I can not reinstall...
Help PLEASE!  ???

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Banmenu crashes server ='(
« Reply #1 on: August 09, 2008, 10:08:51 AM »
Did you do anything to your server immediately before this started? New addon?
New groups/any other modification?

The only thing I can think of quickly off the top of my head is that the file we use to store reasons, banners and temporary bans has grown corrupt.
I forget the exact location of the file, but look for it in gmod/data/ULX, something like temp_bans.txt or something like that.
Once you find it, try renaming then restarting your server.
You'll lose any temporary bans you've set, and the information of who banned who for what reason, but you'll keep your permanent bans. If renaming it doesn't work, you can rename it back after deleting the one that gets recreated.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline lolol

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Banmenu crashes server ='(
« Reply #2 on: August 09, 2008, 10:19:50 AM »
Thank you, I will try this and notify you of the progress.

Offline lolol

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Banmenu crashes server ='(
« Reply #3 on: August 09, 2008, 10:27:01 AM »
I can't find the file, and by the way, the only folder related to ULX in the Data folder is a Ulib folder with the Bans (not the Temp_bans or what ever) and the Ulx_logs folder.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Banmenu crashes server ='(
« Reply #4 on: August 09, 2008, 10:31:16 AM »
How many bans do you have?
Experiencing God's grace one day at a time.

Offline lolol

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Banmenu crashes server ='(
« Reply #5 on: August 09, 2008, 10:32:54 AM »
About 200 I guess  :P
And I can't remove them since the ban file only shows a few bans and a few million \\\\\
So I guess I fail  ;D

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Banmenu crashes server ='(
« Reply #6 on: August 09, 2008, 10:33:50 AM »
Can you show us your data/ulib/bans.txt (I think that's the name)?
Experiencing God's grace one day at a time.

Offline lolol

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Banmenu crashes server ='(
« Reply #7 on: August 09, 2008, 10:35:43 AM »
Ok, sure...
But isn't there a limit of text for posts?

Offline lolol

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Banmenu crashes server ='(
« Reply #8 on: August 09, 2008, 10:39:26 AM »
I can't paste D:
I will uppload the file then and post the link.
I will post the link in a few mins.
(The file is 65 Mb's)
« Last Edit: August 09, 2008, 10:43:12 AM by lolol »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Banmenu crashes server ='(
« Reply #9 on: August 09, 2008, 10:47:26 AM »
(The file is 65 Mb's)

I'd say no need to post. That file is huge. file.Read which we use to read the bans wasn't meant for that large a data structure file, of any sort.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline lolol

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Banmenu crashes server ='(
« Reply #10 on: August 09, 2008, 10:51:32 AM »
So what do I do then?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Banmenu crashes server ='(
« Reply #11 on: August 09, 2008, 11:11:15 AM »
I'm not sure of the banned user limit in Source games to be honest.
I've heard of busy servers with lots of bans having people permanently banned years ago getting back in though.
This might indicate the real Source ban system 'cycles' through its cfg/banned_*.txt files once it's limit has been reached.
How big are the banned files in your /cfg folder. Those aren't custom to ULX. ULX uses those just like any normal 'ban' command from the server console. Temp bans don't get stored there, nor do reasons/who banned.

The only recommendation I could make is to start your /data/ULib temp ban file over. Rename it to something else. Restart server.
Again, you'll lose the reasons/admins who banned, and any temporary bans there, but, your ban menu will work until it grows too large again.

Megiddo, perhaps we should write in some sanity checking about Ulib's ban file size. Notify users in the readme that old bans will get overwritten once the file reaches whatever limit we can find that it can cause problems.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline lolol

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Banmenu crashes server ='(
« Reply #12 on: August 09, 2008, 11:15:42 AM »
Thank you :D