ULX

Author Topic: Unable to load users.txt and/or groups.txt since update  (Read 5259 times)

0 Members and 1 Guest are viewing this topic.

Offline Cornflake

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
Unable to load users.txt and/or groups.txt since update
« on: January 27, 2009, 03:39:26 PM »
Hi all,

Ever since I updated ULib/ULX from Rev 15 to 21/20 I noticed that I had no access to admin commands through ULX in my server. So I thought it was a problem with my Groups.txt... and I noticed that for some reason ULX was deleting all the allows and denies for the "superadmin" group. So I added back in all the commands but it happened again. So finally I put it to read only and still no luck. Well after looking in my console log it says this:

Code: [Select]
[LS ULIB ERROR] FATAL: Unable to load users.txt and/or groups.txt
So I'm really befuddled as I do not know what's wrong. I can't use my server until I have admin rights... so take a look at my groups.txt and my users.txt and tell me what you all think:

Groups:
Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
"ulx adduserid"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"umaps_extend"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx mingekick"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
"ulx banmenu"
"ulx unignite"
"ulx armor"
"ulx strip"
"umaps_extend"
"ups_damage"
"ups_vehicle"
"ups_freeze"
"ups_physgun"
"ups_remove"
"ups_tool"
"ups_unfreeze"
"ups_use"
"ups disableplayers"
"ups miscdeletionaccess"
"ulx settitle"
}
"inherit_from"
{
"operator"
}
}
"user"
{
"deny"
{
}
"allow"
{
"_umaps_chatprint"
"umaps_timeleft"
"umaps_nextmap"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
"_umaps_chatprint"
"umaps_timeleft"
"umaps_nextmap"
"ulx title"
"ulx mytitle"
}
"inherit_from"
{
}
}
"frequent"
{
"deny"
{
}
"allow"
{
"_umaps_chatprint"
"umaps_timeleft"
"umaps_nextmap"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
"_umaps_chatprint"
"umaps_timeleft"
"umaps_nextmap"
"ulx title"
"ulx mytitle"
}
"inherit_from"
{
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx kick"
"ulx slap"
"ulx god"
"ulx bring"
"ulx slay"
"ulx map"
"ulx goto"
"ulx whip"
"ulx ungod"
"ulx seeasay"
"ulx jail"
"ulx unjail"
"ulx teleport"
"ulx exec"
"ulx cexec"
"cexec"
}
"inherit_from"
{
"user"
}
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}


Users:
Code: [Select]
"cornflake"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"superadmin"
}
"id" "STEAM_0:1:XXX"
"pass" ""
"allow"
{
"immunity"
}
}
"Blackstar"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"operator"
}
"id" "STEAM_0:1:XXX"
"pass" ""
"allow"
{
}
}
"[SGC] The Doctor"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"admin"
}
"id" "STEAM_0:0:XXX"
"pass" ""
"allow"
{
}
}
"[SGC] Llivavin Dendar"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"operator"
"user"
}
"id" "STEAM_0:1:XXX"
"pass" ""
"allow"
{
"ulx hasreadhelp"
}
}
"[jokerice] eternal damnation"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"frequent"
}
"id" "STEAM_0:0:XXX"
"pass" ""
"allow"
{
}
}
"jpburro2"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"frequent"
}
"id" "STEAM_0:1:XXX"
"pass" ""
"allow"
{
}
}
"meatloaf"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"frequent"
}
"id" "STEAM_0:0:XXX"
"pass" ""
"allow"
{
}
}
"cebt"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"admin"
}
"id" "STEAM_0:1:XXX"
"pass" ""
"allow"
{
}
}
" flyboi [lantien]"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"admin"
}
"id" "STEAM_0:1:XXX"
"pass" ""
"allow"
{
}
}

Note that I put X's in place of numbers for the SteamID's, for privacy reasons.

- Thanks  :)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: Unable to load users.txt and/or groups.txt since update
« Reply #1 on: January 27, 2009, 04:21:06 PM »
Try deleting the data/ulib folder entirely and see if you get anywhere with that.
Experiencing God's grace one day at a time.

Offline Cornflake

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
Re: Unable to load users.txt and/or groups.txt since update
« Reply #2 on: January 27, 2009, 07:05:25 PM »
Alright, well if I delete the ulib folder it recreates the folder and text files any everything is OK.

I've narrowed the problem down to the users.txt file. I can edit my groups.txt file, but as soon as I edit my users.txt it refuses to load it when the server is starting up. For now I'm going to have to add the users in my users.txt manually one by one from the console. I was making no errors in syntax when manually editing.

Note to self: Do not update an addon unless absolutely necessary. Hours of headache await around the corner ready to pounce when you least expect it!

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Unable to load users.txt and/or groups.txt since update
« Reply #3 on: January 27, 2009, 07:24:08 PM »
Quote
Alright, well if I delete the ulib folder it recreates the folder and text files any everything is OK.

I've narrowed the problem down to the users.txt file. I can edit my groups.txt file, but as soon as I edit my users.txt it refuses to load it when the server is starting up. For now I'm going to have to add the users in my users.txt manually one by one from the console. I was making no errors in syntax when manually editing.
     - Ok, this has happened to me before, make sure that when you do manually edit the users/groups or any .txt config file, save as, then make sure that your encoding is set to ANSI.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Unable to load users.txt and/or groups.txt since update
« Reply #4 on: January 27, 2009, 09:33:05 PM »
Another good point to remember, Garry's 'users.txt' in gmod/settings/ is (USUALLY) a bit less of a pain to manually edit.
You can add groups AND users in there. You just can't set any ULX allows or denies on them. Might be easier when deleting the entire ULib data folder to let ULib rebuild the groups and users from that file, then edit the allows/denies from console for the groups you added to settings/users.txt
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Ninjadude101

  • Newbie
  • *
  • Posts: 38
  • Karma: 4
Re: Unable to load users.txt and/or groups.txt since update
« Reply #5 on: January 28, 2009, 01:31:51 AM »
Would having the file write protected/hidden/Security settings incorrectly set (Like CHMOD, but windows.) cause this?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Unable to load users.txt and/or groups.txt since update
« Reply #6 on: January 28, 2009, 08:25:06 PM »
Yes it could.
ULib dynamically adjusts that file every server load even if no groups/users have changed.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Cornflake

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
Re: Unable to load users.txt and/or groups.txt since update
« Reply #7 on: January 29, 2009, 03:30:43 AM »
Thanks for the feedback  :)
OK... So I made sure I was using ANSI encoding, and used both Notepad and Notepad++ with the same results -- causing ULib to not load users.txt.

Another good point to remember, Garry's 'users.txt' in gmod/settings/ is (USUALLY) a bit less of a pain to manually edit.
You can add groups AND users in there. You just can't set any ULX allows or denies on them. Might be easier when deleting the entire ULib data folder to let ULib rebuild the groups and users from that file, then edit the allows/denies from console for the groups you added to settings/users.txt

That's a good idea. My groups.txt seems to be fine now after letting ULib recreating then editing it (good because I have a lot of allows / denies). However since users.txt still is giving me trouble, I might just use garry's users.txt to define who is in what group.

But the question still remains why it's being picky about the file, even though it's in ANSI and read-only is off.

Offline Mercy

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Unable to load users.txt and/or groups.txt since update
« Reply #8 on: January 30, 2009, 01:57:32 PM »
I am also getting the exact errors..Right now I am trying to use the solutions you guys have given so far.

Mercy
0m3ga.com

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Unable to load users.txt and/or groups.txt since update
« Reply #9 on: January 30, 2009, 03:35:00 PM »
Mercy, Cornflake, you're both running Listen servers, right?
That might be a commonality. I have no idea from there though.

While trying to work/reproduce the error people are getting with ULib/ULX - invalid Lua, I noticed in a single player game (didn't check listen or ded) that an old version (didn't update it to test either) of Pheonix mods was trying to read data from data\..\spawnlists\<files> ... Gmod was saying 'sorry, can't do that'
Though the error you're getting is from files that are IN data\ and aren't trying to navigate out, perhaps it's a listen server issue.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Mercy

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Unable to load users.txt and/or groups.txt since update
« Reply #10 on: January 30, 2009, 08:31:23 PM »
I am running a dedicated server...

And I am using the SVN version of both ULIB and ULX.  It seems to be fine at first but when the server crashes or restarts no one has admin...

With mine it tries to overwrite my groups.txt file and my users.txt file in data/Ulib.  And then messes the files up by re-arranging everything..I have read only on groups.txt file.

Update:

Since I use CUSTOM groups I am going to try without them for a bit.
« Last Edit: January 30, 2009, 08:58:34 PM by Mercy »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Unable to load users.txt and/or groups.txt since update
« Reply #11 on: January 30, 2009, 08:59:57 PM »
Though it does overwrite every time, ULib shouldn't be losing any groups. The read only might be causing issues. ULib will most likely fail after it's loaded settings\users.txt groups and users, then read ULib's groups and users.txt, then tries to write them all back again.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Mercy

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Unable to load users.txt and/or groups.txt since update
« Reply #12 on: January 30, 2009, 09:02:05 PM »
Then are you saying I should remove from settings/users.txt ?

Update:
Ulx seems to be working fine without my custom groups.  The groups I have used before worked with the non-svn version...I don't know what is going on.

I have myself in settings/users.txt and I am not in data/ulib/users.txt and that works fine.  Also have a user in ulib/users.txt as superadmin and is also working fine.  It just seems like adding someone to a group via CONSOLE is messing things up?  But then again I added that one superadmin via console and it's still working fine. 

My Custom Groups:
Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx motd"
"ulx menu"
"ulx help"
"ulx thetime"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"member"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
"ulx"
"ulx help"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx motd"
"ulx who"
"ulx votemap"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx showmotd"
}
"inherit_from"
{
"respected"
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
"ulx seeasay"
}
"inherit_from"
{
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx clientsmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
"ulx"
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"operator"
}
}
"senioradmin"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx ungod"
"ulx uncloak"
"ulx unblind"
"ulx unjail"
"ulx strip"
"ulx clientmenu"
"ulx clientsmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx"
"ulx help"
"ulx jail"
"ulx unjail"
}
"inherit_from"
{
}
}
"respected"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
"ulx unignite"
"ulx unragdoll"
"ulx unblind"
}
"inherit_from"
{
}
}
"junioradmin"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
"ulx"
"ulx goto"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx motd"
"ulx_getbans"
"ulx who"
"ulx votemap"
"ulx kick"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
"ulx showmotd"
"ulx clientmenu"
"ulx clientsmenu"
}
"inherit_from"
{
}
}
"none"
{
"deny"
{
}
"allow"
{
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}
« Last Edit: January 30, 2009, 09:19:57 PM by Mercy »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Unable to load users.txt and/or groups.txt since update
« Reply #13 on: January 31, 2009, 03:44:38 PM »
No, do not remove gmod\settings\users.txt
Gmod relies on it to be there.
What I was implying is that I believe there might be errors if you have gmod\data\ULib (or files in it) set as read only.
ULib tries to write to files in that directory every server startup and when banning using apps that ban using ULib (ULX, and a few other releases for ULib)

Make sure you aren't editing gmod\addons\ULib\data\groups.txt - That files gets overwritten every SVN or Release update.
It seems that either your superadmin group has had some things removed, or has somehow gotten corrupted.
Did you manually remove items from the superadmin group?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming