Author Topic: Changes not saving  (Read 8578 times)

0 Members and 3 Guests are viewing this topic.

Offline jdrayner2

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Changes not saving
« on: April 09, 2015, 10:02:56 AM »

I am having an issue where if someone is moved into a different rank or banned it does not save and after a reboot there back as user or unbanned

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Changes not saving
« Reply #1 on: April 09, 2015, 05:58:44 PM »
Off the top of my head it sounds like maybe your server doesn't have write permissions to the data directory.
Unless someone else has seen this particular bug.

When you write someone to a new group, it should save the users.txt file right then and there. The only other thing that could cause this are corrupt user files.



Try the following:
Browse to your garrysmod/data/folder and rename your users.txt file to users(backup).txt and your bans.txt to bans(backup).txt.
Restart your gmod server and it will generate new copies of these files.
Try adding someone to a group and restarting your server to see if the changes stay.

Offline jdrayner2

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Changes not saving
« Reply #2 on: April 12, 2015, 05:42:19 AM »
No :( I still have to unban myself in the console after a reboot

Offline Livaco

  • Full Member
  • ***
  • Posts: 133
  • Karma: -37
    • Livaco
Re: Changes not saving
« Reply #3 on: April 12, 2015, 09:28:25 AM »
I Have This Issue On My Server. I Promote Someone Reboot The Server Then Their User
Or If I Log Backon The Server A User Gets Added To A Rank With No Trace Of It In The Consle
Here To Help And Be Happy And Help :)

My Website
My Addons
PermaBanV1.0

Quote from:  Livaco on April 12 at 9:10:20 PM
I May Be Dum But Am Still Better Then The Rest

Livaco Products©

Offline ???? Arriej

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
  • Epic
    • Blockmadness
Re: Changes not saving
« Reply #4 on: April 12, 2015, 11:54:02 AM »
Can confirm this issue as well. If i rank some one up to member from user it and the map changes they are back to user again. (rank written in all lowercase) .

When a user joins after the map change or server reboot the messages in chat is "{user} removed all access rights from {user}" (the user is in this case the same name)
ULX version: V3.62 Ulib version: V2.52
 

(I can not confirm this with bans since I use sourcebans and the ulx sourcebans module)

Offline Livaco

  • Full Member
  • ***
  • Posts: 133
  • Karma: -37
    • Livaco
Re: Changes not saving
« Reply #5 on: April 12, 2015, 11:58:00 AM »
Can confirm this issue as well. If i rank some one up to member from user it and the map changes they are back to user again. (rank written in all lowercase) .

When a user joins after the map change or server reboot the messages in chat is "{user} removed all access rights from {user}" (the user is in this case the same name)
ULX version: V3.62 Ulib version: V2.52
 

(I can not confirm this with bans since I use sourcebans and the ulx sourcebans module)
if It Inherits From User Why Have The Rank?
Here To Help And Be Happy And Help :)

My Website
My Addons
PermaBanV1.0

Quote from:  Livaco on April 12 at 9:10:20 PM
I May Be Dum But Am Still Better Then The Rest

Livaco Products©

Offline ???? Arriej

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
  • Epic
    • Blockmadness
Re: Changes not saving
« Reply #6 on: April 12, 2015, 12:07:50 PM »
if It Inherits From User Why Have The Rank?

As far as i am aware you need to have it Inherit it from something you cant leave it blank. there are just some extra thing to a member like !votekick.

Offline Livaco

  • Full Member
  • ***
  • Posts: 133
  • Karma: -37
    • Livaco
Re: Changes not saving
« Reply #7 on: April 12, 2015, 12:26:21 PM »
As far as i am aware you need to have it Inherit it from something you cant leave it blank. there are just some extra thing to a member like !votekick.
No If Its The Same As User Or Has It Got More Perms?
Here To Help And Be Happy And Help :)

My Website
My Addons
PermaBanV1.0

Quote from:  Livaco on April 12 at 9:10:20 PM
I May Be Dum But Am Still Better Then The Rest

Livaco Products©

Offline jdrayner2

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Changes not saving
« Reply #8 on: April 12, 2015, 12:41:12 PM »
Yeah ik right its getting annoying for me because sometimes i wont have my browser open and i just want to join my gmod server but because its set to auto reboot at 00:00 ( when im asleep) i will try and join and it will say that im banned then i have to mess about opening the browser and unban myself

Offline ???? Arriej

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
  • Epic
    • Blockmadness
Re: Changes not saving
« Reply #9 on: April 12, 2015, 01:00:26 PM »
No If Its The Same As User Or Has It Got More Perms?

Its just default rank + extra's (saves me from clicking  allot more boxes)
So member rank is everything from user + everything i add more.
Donator rank is member rank (also user) + everything i add.

Yeah ik right its getting annoying for me because sometimes i wont have my browser open and i just want to join my gmod server but because its set to auto reboot at 00:00 ( when im asleep) i will try and join and it will say that im banned then i have to mess about opening the browser and unban myself

I did all the super admins trough the file. they work fine. I do all my admins trough sourcebans.(they also do not get demoted for as fas as I tested, also did not rank anyone to admin while i tested))
even if my admind would get demoted they get ranked up again after a bit by sourcebans.

Offline Buzzkill

  • Respected Community Member
  • Full Member
  • *****
  • Posts: 176
  • Karma: 59
    • The Hundred Acre Bloodbath
Re: Changes not saving
« Reply #10 on: April 12, 2015, 01:33:21 PM »
No If Its The Same As User Or Has It Got More Perms?

Inheriting from user doesn't mean it's the same as user.  It means it starts, by default, with the same permissions as user, and additional permissions can be configured for it. Typically any new group would be inherited from user (or from a group that ultimately inherits from user).

Offline Livaco

  • Full Member
  • ***
  • Posts: 133
  • Karma: -37
    • Livaco
Re: Changes not saving
« Reply #11 on: April 12, 2015, 01:40:55 PM »
Inheriting from user doesn't mean it's the same as user.  It means it starts, by default, with the same permissions as user, and additional permissions can be configured for it. Typically any new group would be inherited from user (or from a group that ultimately inherits from user).
No I Was Asking If He Added To The Rank Insted of Leave It Like A User
Here To Help And Be Happy And Help :)

My Website
My Addons
PermaBanV1.0

Quote from:  Livaco on April 12 at 9:10:20 PM
I May Be Dum But Am Still Better Then The Rest

Livaco Products©

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: Changes not saving
« Reply #12 on: April 14, 2015, 05:06:53 AM »
I have had this problem for quite a while too. I have to hardcode the promotion in users.txt for the rank to stick after a restart.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Changes not saving
« Reply #13 on: April 14, 2015, 05:37:25 AM »
If your changes aren't saving, double check to make sure the server has write permissions to the data folder.
Experiencing God's grace one day at a time.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given