Jump to content

Using Timed Permissions keeps server from restarting

Fixed 0.1.5 0.1.6

Bob Kazamakis

Posted

So this is multiple weeks in the making trying to track down what *exactly* caused this rather than just jumping to a backup however, when I use this command:

tperm grant group default skilltree.xpweekend "2025-07-09 14:00"

The output to the console looks like this:
 

tperm grant group default skilltree.xpweekend "2025-07-09 14:00"
[Temporary Permissions] Method call 'GrantTemporaryPermission(DateTime)' to grant permission 'skilltree.xpweekend' to group 'default' as a result of using the internal grant command by player 'Server Console'.
[Temporary Permissions] 'default' (group) - Permission has been granted: 'skilltree.xpweekend' until 2025-07-09 14:00:00(UTC)
Permission 'skilltree.xpweekend' granted to group 'default'.

The TemporaryPermissions.json in the oxide/data folder looks like this:
 

{
  "Players list": {},
  "Groups list": {
    "default": {
      "Temporary Permissions": [
        {
          "Name": "skilltree.xpweekend",
          "AssignedDate": "2025-07-07T19:01:19.998661Z",
          "ExpireDate": "2025-07-09T14:00:00",
          "UntilWipe": false
        }
      ]
    }
  }
}

 

Upon restarting, both manually as well as using a plugin to restart the server, the server becomes unresponsive and you're unable to connect or control it. Assigning that permission manually does not cause this issue. The only way to recover the server is to shut it down manually and delete the TemporaryPermissions.json in the data folder.

Again, assigning this manually does not cause this issue. It is only when I assign it using the temporary permissions plugin. 

  • Like 1
Bob Kazamakis

Posted (edited)

Just for completion's sake, I tested with another random perm as well to the same result:
console command
console return
data file

 

tperm grant group default itemfinder.use "2025-07-09 14:00"

[Temporary Permissions] Method call 'GrantTemporaryPermission(DateTime)' to grant permission 'itemfinder.use' to group 'default' as a result of using the internal grant command by player 'Server Console'.
[Temporary Permissions] 'default' (group) - Permission has been granted: 'itemfinder.use' until 2025-07-09 14:00:00(UTC)
Permission 'itemfinder.use' granted to group 'default'.

{
  "Players list": {},
  "Groups list": {
    "default": {
      "Temporary Permissions": [
        {
          "Name": "itemfinder.use",
          "AssignedDate": "2025-07-07T19:40:28.330466Z",
          "ExpireDate": "2025-07-09T14:00:00",
          "UntilWipe": false
        }
      ]
    }
  }
}

 

I'm not trying to beat a dead horse here but rather give as much information as I can, removing as many variables as possible. I've deleted all the plugins installed save for the three listed here and then ran the command for vanish to the same end, the server becomes unresponsive after loading Temporary Permissions.

 

plugins
Listing 3 plugins:
  01 "Temporary Permissions" (0.1.5) by IIIaKa (0.03s / 376 KB) - TemporaryPermissions.cs
  02 "Vanish" (1.9.2) by Whispers88 (0.00s / 0 B) - Vanish.cs
  03 "Whitelist" (3.3.0) by Wulf/lukespragg (0.01s / 328 KB) - Whitelist.cs

 

tperm grant group default vanish.allow "2025-07-09 14:00"

[Temporary Permissions] Method call 'GrantTemporaryPermission(DateTime)' to grant permission 'vanish.allow' to group 'default' as a result of using the internal grant command by player 'Server Console'.
[Temporary Permissions] 'default' (group) - Permission has been granted: 'vanish.allow' until 2025-07-09 14:00:00(UTC)
Permission 'vanish.allow' granted to group 'default'.

{
  "Players list": {},
  "Groups list": {
    "default": {
      "Temporary Permissions": [
        {
          "Name": "vanish.allow",
          "AssignedDate": "2025-07-07T20:34:06.499457Z",
          "ExpireDate": "2025-07-09T14:00:00",
          "UntilWipe": false
        }
      ]
    }
  }
}

 

Edited by Bob Kazamakis
Bob Kazamakis

Posted

It's been nearly a week with no response .. ? 

IIIaKa

Posted (edited)

20 hours ago, Bob Kazamakis said:

It's been nearly a week with no response .. ? 

Hello, sorry for the late reply, I've been very busy this month and still barely have any free time.

Have you checked the logs? Maybe there's some kind of error when trying to assign the temporary permission.
So far, you're the only one who's encountered this issue. I'll also try to reproduce the bug on my side.

Just to clarify, did I understand correctly that after entering the command "tperm grant group default skilltree.xpweekend "2025-07-09 14:00"" in the console, the console stop responding?

Edited by IIIaKa
Bob Kazamakis

Posted

Quote

Just to clarify, did I understand correctly that after entering the command "tperm grant group default skilltree.xpweekend "2025-07-09 14:00"" in the console, the console stop responding?

Once this command is used, the server does not recover from a restart until the temporary permission's data file has been deleted.

As far as the logs are concerned, I'd have to comb through them again but I don't recall seeing anything. I assume you're referring to the server logs or do you mean oxide logs? For what it's worth, both I and my server's host looked over them while I was having this issue and we didn't come up with anything but I'm also just a hobbyist "admin" so it's very possible that I missed something pertinent. 

IIIaKa

Posted

Changed Status from Pending to Work in Progress

IIIaKa

Posted

@Bob Kazamakis

Hello, on line 469, you need to replace "i++" with "j++"

for (int j = 0; j < groupData.PermissionsList.Count; i++)

to this:

for (int j = 0; j < groupData.PermissionsList.Count; j++)


Thank you for reporting the bug. It will be fixed in the next update.

IIIaKa

Posted

Changed Status from Work in Progress to Fixed

Changed Fixed In to Next Version

  • Love 1
IIIaKa

Posted

If you have anything to add, feel free to write in this thread.

1.8m

Downloads

Total number of downloads.

8.6k

Customers

Total customers served.

128.9k

Files Sold

Total number of files sold.

2.7m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.