ULX

Author Topic: ULX Ranks BUG (Need Help Urgently!)  (Read 5092 times)

0 Members and 5 Guests are viewing this topic.

Offline innerxd

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
ULX Ranks BUG (Need Help Urgently!)
« on: January 05, 2016, 03:34:29 AM »
Hello everyone, I am having a very serious bug on my server, people randomly looses their ranks when logging out the server. There is not message showing the rank loss, players just stays at User group after rejoining the server. Note: This is all random, sometimes players don't lose it, and sometimes it loses.

Offline innerxd

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: ULX Ranks BUG (Need Help Urgently!)
« Reply #1 on: January 05, 2016, 06:27:47 AM »
Anyone, please?

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: ULX Ranks BUG (Need Help Urgently!)
« Reply #2 on: January 05, 2016, 08:51:43 AM »
No need to bump after a few hours- we're a slower forum and it may take a day or so to receive a response.

What version of ULX/ULib are you running? It should say on the XGUI menu, or you can find it at the top of 'ulx help'.

Please make sure you're running our latest workshop version, or our latest GitHub version.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline innerxd

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: ULX Ranks BUG (Need Help Urgently!)
« Reply #3 on: January 05, 2016, 09:06:43 AM »
Ok, sorry for that. I am using ULX: 3.62 and ULib: 2.52.


Another detail I'd like to explain: Everything was fine before it started to happen. I didn't add any new addon or made anything different to the server or addon.

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: ULX Ranks BUG (Need Help Urgently!)
« Reply #4 on: January 05, 2016, 10:13:44 AM »
Do you have an autopromote plugin? Is your users.txt file huge (i think 50kb was mentioned as a large number for the file size)? These both could be causing your problem.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline innerxd

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: ULX Ranks BUG (Need Help Urgently!)
« Reply #5 on: January 05, 2016, 06:26:52 PM »
Thanks for replying. my users.txt is huge, yes. Any fix? Thanks.


No autopromote plugin installed.

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: ULX Ranks BUG (Need Help Urgently!)
« Reply #6 on: January 06, 2016, 01:51:03 AM »
You need to cut down the size of your autopromote.

Personally, just note down important ranks. (ex. admins and mods)
Then delete the entire file and give the important ranks back.

If you're using autopromote for time based players, it'll fix their rank upon them rejoining. This'll weed out players in your system who aren't active on your server and thus cut down massively on your users.txt
Once you get to know me, you'll find you'll have never met me at all.

Offline innerxd

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: ULX Ranks BUG (Need Help Urgently!)
« Reply #7 on: January 06, 2016, 05:22:51 AM »
I don't have any autopromote plugin. I manually set VIPs on another groups, and my users.lua size is 14kb.

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: ULX Ranks BUG (Need Help Urgently!)
« Reply #8 on: January 06, 2016, 06:41:15 AM »
It shouldn't be a .lua file, but I assume that's just a typo.

I'm not experienced with large users.txt files, nor do I know why large users.txt files cause issues. However, on my server I have a users.txt file that is 17kb and I haven't noticed any players losing ranks.

The only other cause I can think of is you have some new addon or module that is screwing up the ranks. Have you installed any addons/modules recently?

Trimming your users.txt file can't hurt anything, so I would suggest trying it anyways. I replied to a thread where someone was asking how to remove users that are in a certain group here. Just replace the "new" with the group name you wish to remove, surrounded in quotes. You'll need Notepad++ or some other text editor that supports finding and replacing with regex. If you're too lazy to do that, you can just follow Caustic's advice and delete the entire file, adding people back to their ranks as needed.

EDIT:

Now that I think about it, I'm a bit confused as to how you can have a 14kb users file without any sort of autopromotion. I have autopromote on my server, so everyone with 12 hours is added to a group. Unless you have a ton of VIP users, something is awry.
« Last Edit: January 06, 2016, 06:43:40 AM by roastchicken »
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: ULX Ranks BUG (Need Help Urgently!)
« Reply #9 on: January 06, 2016, 02:45:59 PM »
nor do I know why large users.txt files cause issues.
Because when something rank-requiring happens, the server has to read through the entire list to see if you have the permissions to do so. If your name is at the end, that's a lot of data to read through just to run a "kick". Multiple instances of this can cause lag serverside and/or corruption, leaving you with broken data.

I also agree with your last statement.
Now that I think about it, I'm a bit confused as to how you can have a 14kb users file without any sort of autopromotion. I have autopromote on my server, so everyone with 12 hours is added to a group. Unless you have a ton of VIP users, something is awry.
Once you get to know me, you'll find you'll have never met me at all.

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: ULX Ranks BUG (Need Help Urgently!)
« Reply #10 on: January 07, 2016, 08:52:51 AM »
Because when something rank-requiring happens, the server has to read through the entire list to see if you have the permissions to do so. If your name is at the end, that's a lot of data to read through just to run a "kick". Multiple instances of this can cause lag serverside and/or corruption, leaving you with broken data.

Thanks for the information. I wonder if moving to SQL would fix that...

(please don't hurt me)
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: ULX Ranks BUG (Need Help Urgently!)
« Reply #11 on: January 07, 2016, 09:59:50 AM »
Because when something rank-requiring happens, the server has to read through the entire list to see if you have the permissions to do so.

Not true- the permissions are loaded and referenced in memory on the server. The main cause of the slowdown is likely when a change occurs that needs to be written to disk, the whole file has to be generated and saved again, but I haven't measured it myself.

Yes, moving to SQL would likely resolve these issues, but it's a rather large change (and there are some tradeoffs) that we haven't yet had the time to work out. :P
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline innerxd

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: ULX Ranks BUG (Need Help Urgently!)
« Reply #12 on: January 08, 2016, 09:57:37 AM »
So, any idea how to fix it? I have reinstalled ulx and ulib, and deleted all database from it. I have also set permission of all files from the server to 7777. My users.txt have also been removed. It still happening, any idea? I didn't add any new addon to it starting to happen, it just started to happen randomly.