Author Topic: Demoted when someone rejoins.  (Read 6660 times)

0 Members and 3 Guests are viewing this topic.

Offline eagle9er9er

  • Jr. Member
  • **
  • Posts: 50
  • Karma: 0
Demoted when someone rejoins.
« on: March 12, 2015, 09:12:42 PM »
I don't know if anyone else is having this issue, but whenever someone joins (for the first time between a restart/crash), and then leaves and rejoins, they join as a guest regardless of the rank they were in before they left. This issue is very irritating because donators get demoted to guest when they rejoin, and auto promote then promotes them to whatever rank their hours are at. I've removed all my ulx addons, reinstalled ulx, and I am at a total loss.

Even admins, and myself as owner get demoted when rejoining. I can't figure out what is causing it.
« Last Edit: March 12, 2015, 09:14:19 PM by eagle9er9er »

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Demoted when someone rejoins.
« Reply #1 on: March 12, 2015, 09:28:14 PM »
Do you have the auto demote enabled?
Once you get to know me, you'll find you'll have never met me at all.

Offline eagle9er9er

  • Jr. Member
  • **
  • Posts: 50
  • Karma: 0
Re: Demoted when someone rejoins.
« Reply #2 on: March 12, 2015, 09:28:48 PM »
No. The addon does not demote anyone. They literally just join as a guest, nothing else.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Demoted when someone rejoins.
« Reply #3 on: March 12, 2015, 09:56:15 PM »
If DarkRp,
1) disable Fadmin
2) don't try to set any group hiigher than superadmin
3) crashes may not save some things (but a restart naturally through map change/etc shouldn't kill it)

Also, make sure you're not confusing "groups" with "ranks". I've no idea what ranks are in relation to DarkRP. For all I know, DarkRP "ranks" could be "teams", and, teams have nothing to do with groups.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline eagle9er9er

  • Jr. Member
  • **
  • Posts: 50
  • Karma: 0
Re: Demoted when someone rejoins.
« Reply #4 on: March 12, 2015, 09:57:17 PM »
Sandbox :(, forgot to mention. And superadmin is the owner rank on my server.

And by ranks, i meant groups. Sorry. Ulx groups specifically.

Say I am in the superadmin group, all is fine until i disconnect and rejoin (before a crash or restart happens), and I join in the "user" group. Same goes for anyone in any ulx group.
« Last Edit: March 12, 2015, 10:04:25 PM by eagle9er9er »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Demoted when someone rejoins.
« Reply #5 on: March 12, 2015, 10:00:01 PM »
Using latest Ulib and ULX downloaded from our downloads page? (or our github), and no where else, right?
See our FAQ "Having trouble with access?" in our FAQ section if sure you're using latest.
Again, all people who join a server are "users" according to Gmod (and ULX).
There is no "guest"
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline eagle9er9er

  • Jr. Member
  • **
  • Posts: 50
  • Karma: 0
Re: Demoted when someone rejoins.
« Reply #6 on: March 12, 2015, 10:01:18 PM »
Yes I have the svn hooked up to my server so anytime u guys update its automatic.

edit: my wording is horrible and i apologize if you are having a hard time understanding me. whenever i said guest i was referring to the "user" group.
« Last Edit: March 12, 2015, 10:04:12 PM by eagle9er9er »

Offline Stranger Danger

  • Newbie
  • *
  • Posts: 24
  • Karma: 2
Re: Demoted when someone rejoins.
« Reply #7 on: March 12, 2015, 11:04:56 PM »
I'm from eagle9er9er's server. I also wanted to add that I re installed ulx and ulib which didn't fix. Also to clarify that people only get demoted to user when they rejoin, if the server restarts everyone has their correct rank/group.
« Last Edit: March 12, 2015, 11:07:16 PM by Stranger Danger »

Offline lynx

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 15
Re: Demoted when someone rejoins.
« Reply #8 on: March 13, 2015, 12:13:52 AM »
What's the size (kb or number of lines) of your users.txt file?

Should be in /data/ulib

Thinking this is related to https://github.com/Nayruden/Ulysses/issues/302

Offline eagle9er9er

  • Jr. Member
  • **
  • Posts: 50
  • Karma: 0
Re: Demoted when someone rejoins.
« Reply #9 on: March 13, 2015, 08:51:01 AM »
I tried that, I backup my user.txt file, and then deleted everything inside of it, and restarted and the demotion still occured.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Demoted when someone rejoins.
« Reply #10 on: March 13, 2015, 09:07:32 AM »
Please follow, at minimum, step 5 of the FAQ "Having trouble with access?"
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Stranger Danger

  • Newbie
  • *
  • Posts: 24
  • Karma: 2
Re: Demoted when someone rejoins.
« Reply #11 on: March 13, 2015, 12:35:45 PM »
Please follow, at minimum, step 5 of the FAQ "Having trouble with access?"

*Due to text being to large I have to use pastebin*

The problem we are having is that when people rejoin the server their rank is being reset to guest(guest is the user rank). This only occurs when people rejoin though. If the server restarts they get their correct rank, even if they were demoted to wrong rank before the server restarts. For example I am SuperAdmin, if I first join the server everything is fine, but if I rejoin the server I get demoted to user and apromote promotes me to my appropriate rank as far as my hours go(SuperAdmin is excluded in apromote). So say I am now the ruby rank, if I restart the super I join as SuperAdmin, my correct rank.

Okay, I joined the server as superadmin like I should have. I ran ulx debuginfo and got this http://pastebin.com/euB3vDTv

I then typed retry into console rejoining the server as guest(guest is user rank), apromote then sees my hours and promotes me to ruby and I get this for ulx debuginfo. http://pastebin.com/hcSM5kYJ

Any help would be much appreciated thanks.

What's the size (kb or number of lines) of your users.txt file?

Should be in /data/ulib

Thinking this is related to https://github.com/Nayruden/Ulysses/issues/302
*edit* Just a reminder we deleted user.txt as suggested here.
« Last Edit: March 13, 2015, 12:44:37 PM by Stranger Danger »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Demoted when someone rejoins.
« Reply #12 on: March 13, 2015, 12:56:24 PM »
I don't know if anyone else is having this issue,
<clip> and auto promote then promotes them to whatever rank their hours are at.
<clip> I've removed all my ulx addons, reinstalled ulx, and I am at a total loss.

Even admins, and myself as owner get demoted when rejoining. I can't figure out what is causing it.

I'm sorry.
I totally missed key details and finally realized you were still running autopromote after your last post.
You said in your first post you'd removed all ulx addons.
I mistook that for having removed ALL addons and the issue still occurring.

This is an autopromote issue, not ULX.
The author of autopromote, IF they were still updating, could write hooks to verify ULX was completed adjusting permissions, or write in 'don't touch' group checks.
See this post. - http://forums.ulyssesmod.net/index.php/topic,7993.0.html
I blame 2 things - 1) Autopromote - getting stuck in a race and it winning/adjusting group before ULX has chance to and 2) Size of users file due to Autopromote causing slow down of ULX.
Sure, A tiny bit of it is due to the way we store our users, yes, but, you shouldn't expect to have every player who joins a server remembered in a group access file after only a few short hours of play.

The fix from that post was that the person cleaned out his users.txt file.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Stranger Danger

  • Newbie
  • *
  • Posts: 24
  • Karma: 2
Re: Demoted when someone rejoins.
« Reply #13 on: March 13, 2015, 01:00:28 PM »
As I stated earlier we deleted users.txt and had ulib rebuild it. Our user.txt file now only contains 5 people, we also have apromote through server collections and removed it from collections and the problem still persisted. We re added apromote after seeing it wasn't the problem. There is a delay in Apromote, when someone rejoins and in wrong rank there is about 2 seconds before apromote makes them their correct rank(based on hours not special ranks like admin). So unless ulx takes more than 2 seconds to put person in their correct rank I don't think its the issue.

Also to clarify this bug wasn't occurring until after Gmod update.

users.txt
Code: [Select]
"STEAM_0:0:62472963"
{
"allow"
{
}
"name" "camroblyer???? ? -- - "
"deny"
{
}
"group" "honored"
}
"STEAM_0:0:27700384"
{
"name" "???Vader"
"deny"
{
}
"allow"
{
}
"group" "superadmin"
}
"STEAM_0:1:20733228"
{
"name" "???Stranger ???Danger"
"deny"
{
}
"allow"
{
}
"group" "superadmin"
}
"STEAM_0:0:107086505"
{
"name" "Foxy"
"deny"
{
}
"allow"
{
}
"group" "bronze"
}
"STEAM_0:1:51877827"
{
"deny"
{
}
"allow"
{
}
"name" "doge_knight"
"group" "gold"
}

« Last Edit: March 13, 2015, 01:13:07 PM by Stranger Danger »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Demoted when someone rejoins.
« Reply #14 on: March 13, 2015, 01:18:08 PM »
I'm now even more confused.
I thought the issue was "after a rejoin, autopromote then places the user in the group for that many hours instead of ULX placing them in the ULX assigned group"

Could someone please describe what happens after server is shut down, all autopromote addons/subscriptions are removed from server, server is started back up, someone joins, then rejoins, and the small/rebuilt users.txt file is used?

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