Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: Pantho on October 13, 2010, 12:42:29 PM
-
Code quote:
ulx who:
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).
-
Use "ulx debuginfo" in console and dump the output here (or PM it to me).
-
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.
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)
-
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.
-
I've an issue with attaching files so used paste bin.
http://pastebin.com/hTXR8tzk
-
See line 75.
No idea where that came from
Can't promise correcting that will fix your problem, but it can't hurt.
"STEAM_0:1:16678762"
{
"deny"
{
}
"name" "Lexi"
"allow"
{
}
"group" "adminsupporter"
}
--//Line 75 below. remove up to line 84.
"?"
{
"allow"
{
}
"deny"
{
}
}
-
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.
-
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
-
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.
-
Any better now that you corrected that extra : ?
-
Nope
still same error.
-
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)
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.
-
yes the server has one.
-
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.
-
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.
-
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.
-
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.
-
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.