ULX

Author Topic: ULX doesn;t load all users.  (Read 6239 times)

0 Members and 2 Guests are viewing this topic.

Offline Pantho

  • Newbie
  • *
  • Posts: 39
  • Karma: 2
ULX doesn;t load all users.
« 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).


Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX doesn;t load all users.
« Reply #1 on: October 13, 2010, 02:21:12 PM »
Use "ulx debuginfo" in console and dump the output here (or PM it to me).
Experiencing God's grace one day at a time.

Offline Pantho

  • Newbie
  • *
  • Posts: 39
  • Karma: 2
Re: ULX doesn;t load all users.
« Reply #2 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)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX doesn;t load all users.
« Reply #3 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Pantho

  • Newbie
  • *
  • Posts: 39
  • Karma: 2
Re: ULX doesn;t load all users.
« Reply #4 on: October 13, 2010, 04:16:48 PM »
I've an issue with attaching files so used paste bin.

http://pastebin.com/hTXR8tzk

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX doesn;t load all users.
« Reply #5 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"
{
}
}

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

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX doesn;t load all users.
« Reply #6 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.
Experiencing God's grace one day at a time.

Offline Pantho

  • Newbie
  • *
  • Posts: 39
  • Karma: 2
Re: ULX doesn;t load all users.
« Reply #7 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
« Last Edit: October 13, 2010, 07:04:18 PM by Pantho »

Offline Pantho

  • Newbie
  • *
  • Posts: 39
  • Karma: 2
Re: ULX doesn;t load all users.
« Reply #8 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.
« Last Edit: October 15, 2010, 04:46:47 AM by Pantho »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX doesn;t load all users.
« Reply #9 on: October 15, 2010, 10:31:19 PM »
Any better now that you corrected that extra : ?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Pantho

  • Newbie
  • *
  • Posts: 39
  • Karma: 2
Re: ULX doesn;t load all users.
« Reply #10 on: October 16, 2010, 05:48:50 AM »
Nope

still same error.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX doesn;t load all users.
« Reply #11 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Pantho

  • Newbie
  • *
  • Posts: 39
  • Karma: 2
Re: ULX doesn;t load all users.
« Reply #12 on: October 17, 2010, 04:17:56 AM »
yes the server has one.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX doesn;t load all users.
« Reply #13 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.
Experiencing God's grace one day at a time.

Offline Pantho

  • Newbie
  • *
  • Posts: 39
  • Karma: 2
Re: ULX doesn;t load all users.
« Reply #14 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.
« Last Edit: October 20, 2010, 03:58:01 AM by Pantho »