Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Pantho on October 13, 2010, 12:42:29 PM

Title: ULX doesn;t load all users.
Post by: Pantho on October 13, 2010, 12:42:29 PM
Code quote:

ulx who:
Code: [Select]
20:39:06 ID Name                            Group
         1  Jebus                           user
         2  Johnny Cashing                  user
         3  Jolly                           user
         4  Joey Snoz Stilleto              adminsupporter
         6  Inzane                          user
         7  Henning                         adminsupporter
         8  HappyToast                      user
         9  Ash Mate @ No Sound             adminsupporter
         12 ÔwnÊr |Deeze Th3_BlooD_M4keR^ user
         13 alexthestriker                  user
         14 Crille_XD92                     user
         15 RynX                            user
         16 S0M3T1M3S^^                     user
         17 Jonathan van de Berg            adminsupporter
         18 +[SP]+Archaos                   
         19 Matt is Cool                    adminsupporter
         21 Stan da man                     
         22 daniel.armstrong                user
         23 ByB | b0lle.                    supporter
         25 Captain Hazard                  user

Right, as you see for example number 18 and 21. Simply doesn't load any user for them, although in ulx/ulib they are defined as a Supporter group (Same as respected.)

Our users.txt is over 100 players large with more than 20 current users loaded at a time. Any ideas on how to solve this?

Info:

DarkRP Gamemode
Busy Server
SVN Revision from today, didn't solve (same issue as using released version of ULIB/ULX).

Title: Re: ULX doesn;t load all users.
Post by: Megiddo on October 13, 2010, 02:21:12 PM
Use "ulx debuginfo" in console and dump the output here (or PM it to me).
Title: Re: ULX doesn;t load all users.
Post by: Pantho on October 13, 2010, 03:26:29 PM
Code: [Select]
23:25:26 L 10/13/2010 - 23:25:27: rcon from "84.13.112.44:23979": command "ulx debuginfo"
23:25:26 L 10/13/2010 - 23:25:27: Lua Error: [@addons\ulx\lua\ulx\modules\sh\util.lua:256] bad argument #1 to 'KeyValuesToTable' (string expected, got no value)
23:25:26 [@addons\ulx\lua\ulx\modules\sh\util.lua:256] bad argument #1 to 'KeyValuesToTable' (string expected, got no value)

Prints this

Also, if we try to add users while it is broken.

Code: [Select]

21:23:36 L 10/13/2010 - 21:23:37: Lua Error: [addons\ulx\lua\ulx\modules\sh\user.lua:53] attempt to index local 'userInfo' (a nil value)
21:23:36 [addons\ulx\lua\ulx\modules\sh\user.lua:53] attempt to index local 'userInfo' (a nil value)
Title: Re: ULX doesn;t load all users.
Post by: JamminR on October 13, 2010, 03:40:37 PM
An error like that after running debug info usually indicates an incorrectly formatted users.txt file.
Now, it is possible the corruption occurred due to a players actual name using ascii characters that lua sees as code, we attempt to clean it up as much as possible, but, more often than not, it's due to manual editing of the file.
I believe our SVN is much better about anti-corruption than the release, which may be the problem (added user during old release?)

Please attach your servers data\ULib\ users.txt to the next post.
If you don't wish to show your users STEAM IDs (which for all intents and purposes, are public on servers anyway), please email it to teamulysses@ulyssesmod.net with the subject "Pantho: user info requested"
(It's much easier to just use the link at the bottom of your post that says "additional options" and attach the file.
Title: Re: ULX doesn;t load all users.
Post by: Pantho on October 13, 2010, 04:16:48 PM
I've an issue with attaching files so used paste bin.

http://pastebin.com/hTXR8tzk
Title: Re: ULX doesn;t load all users.
Post by: JamminR on October 13, 2010, 05:20:25 PM
See line 75.
No idea where that came from
Can't promise correcting that will fix your problem, but it can't hurt.
Code: [Select]
"STEAM_0:1:16678762"
{
"deny"
{
}
"name" "Lexi"
"allow"
{
}
"group" "adminsupporter"
}
--//Line 75 below. remove up to line 84.
"?"
{
"allow"
{
}
"deny"
{
}
}

Title: Re: ULX doesn;t load all users.
Post by: Megiddo on October 13, 2010, 06:00:08 PM
It actually seems that you have a missing or corrupt garrysmod user file (garrysmod/settings/users.txt). Can you check that location? If there is a file there, paste it here. If not, make one and try ulx debuginfo again.
Title: Re: ULX doesn;t load all users.
Post by: Pantho on October 13, 2010, 06:53:51 PM
We actually removed this file while testing, but it was replaced and still had the issue.
I replaced the file, servers currently working but it might break again. The issue was not always happening, I shall report in the morning when it gets its morning 30 players instead of its night time 3
Title: Re: ULX doesn;t load all users.
Post by: Pantho on October 15, 2010, 04:41:59 AM
Problem was fixed for a day or so, now its back.

http://pastebin.com/fqg5gusK

Debug log for you :)

-edit

Noticed the issue on line 71, Corrected and hoped to see it fix.
Title: Re: ULX doesn;t load all users.
Post by: JamminR on October 15, 2010, 10:31:19 PM
Any better now that you corrected that extra : ?
Title: Re: ULX doesn;t load all users.
Post by: Pantho on October 16, 2010, 05:48:50 AM
Nope

still same error.
Title: Re: ULX doesn;t load all users.
Post by: JamminR on October 16, 2010, 02:54:01 PM
Code: [Select]
23:25:26 L 10/13/2010 - 23:25:27: rcon from "84.13.112.44:23979": command "ulx debuginfo"
23:25:26 L 10/13/2010 - 23:25:27: Lua Error: [@addons\ulx\lua\ulx\modules\sh\util.lua:256] bad argument #1 to 'KeyValuesToTable' (string expected, got no value)
23:25:26 [@addons\ulx\lua\ulx\modules\sh\util.lua:256] bad argument #1 to 'KeyValuesToTable' (string expected, got no value)

Code: [Select]
21:23:36 L 10/13/2010 - 21:23:37: Lua Error: [addons\ulx\lua\ulx\modules\sh\user.lua:53] attempt to index local 'userInfo' (a nil value)
21:23:36 [addons\ulx\lua\ulx\modules\sh\user.lua:53] attempt to index local 'userInfo' (a nil value)

Those errors?
Do you have a server gmod/settings/users.txt?
If so, ever edited it? If not, why? Don't delete it. No need to edit it (though it's good as backup to add yourself as superadmin), but don't ever delete it.

I'm at a loss right now and will need more time to research. Hopefully Megiddo can look and quickly see whats going on.
Title: Re: ULX doesn;t load all users.
Post by: Pantho on October 17, 2010, 04:17:56 AM
yes the server has one.
Title: Re: ULX doesn;t load all users.
Post by: Megiddo on October 18, 2010, 12:22:33 PM
Nothing jumps out at me as being wrong. I'd like to work this issue with you more on Steam, if that's possible. I've added you to my friends list.
Title: Re: ULX doesn;t load all users.
Post by: Pantho on October 20, 2010, 03:56:28 AM
Sorry for not replying much, decided to break my foot on friday.

The issue is ascii characters, however we keep removing them and idiots keep using them in new names.

Problem comes back every few days once an idiot with ascii tries to auth. Could you tell me which code segments to change in order to stop it storing name field in users.txt? I am curious why this issue was not an issue until the last Gmod update though.

This would bandaid the issue for now.
Title: Re: ULX doesn;t load all users.
Post by: Pantho on October 20, 2010, 07:51:22 AM
Sorry for not replying much, decided to break my foot on friday.

The issue is ascii characters, however we keep removing them and idiots keep using them in new names.

Problem comes back every few days once an idiot with ascii tries to auth. Could you tell me which code segments to change in order to stop it storing name field in users.txt? I am curious why this issue was not an issue until the last Gmod update though.

This would bandaid the issue for now.

We've now stopped ulx storing names.
Title: Re: ULX doesn;t load all users.
Post by: JamminR on October 20, 2010, 03:21:59 PM
Pantho, though your bandaid works, I, and I'm sure the rest of the team, find it perplexing that ascii poisons the list.
I know we had trouble before SVN (that is, we had definite trouble in the old 'release' version).
But, did you not say you'd gone to using SVN? We had it fixed, or so I thought.

Also, my my, what a silly decision. Sure, breaking your foot will make you less mobile with bit more chance to play Gmod, but how else will you get up to get away from it's chaos every once in a while?
:D Sorry to hear. Hope it heals well.
Title: Re: ULX doesn;t load all users.
Post by: Pantho on October 22, 2010, 05:34:28 AM
Pantho, though your bandaid works, I, and I'm sure the rest of the team, find it perplexing that ascii poisons the list.
I know we had trouble before SVN (that is, we had definite trouble in the old 'release' version).
But, did you not say you'd gone to using SVN? We had it fixed, or so I thought.

Also, my my, what a silly decision. Sure, breaking your foot will make you less mobile with bit more chance to play Gmod, but how else will you get up to get away from it's chaos every once in a while?
:D Sorry to hear. Hope it heals well.

I updated ULX on the day of making this thread, however it won't hurt to run the SVN again once I get access to the box again. (host issues today).

-edit

ANSI characters not ASCII according to Tobba.