Jump to content

Missing PlayersData.json file after update

Not a Bug 1.5.5

miniMe_rust

Posted

This problem report is a bit paradox, because jtedal explicitly requests users to delete the MM_Data/MonumentOwner/PlayersData.json file upon updating to 1.5.5 - however, if you do that there is a lengthy error showing when the plugin is supposed to initialize. I made sure the path oxide/data/MM_Data/MonumentOwner/ exists, and the file PlayersData.json actually does not exist. Then I loaded the plugin which threw below error message. Rust server is running inside a default Pterodactyl Wings node, mostly vanilla.

The only way to bypass below error is to manually create an (empty) PlayersData.json in the respective location, and then reload the plugin.

[MonumentOwner] Creating a default config...
[MonumentOwner] Creation of the default config completed!
Failed to call hook 'OnServerInitialized' on plugin 'MonumentOwner v1.5.5' (UnauthorizedAccessException: Access to the path "/home/container/oxide/data/MM_Data/MonumentOwner/PlayersData.json" is denied.)
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <e3aa8db986d7457ca73f10110f1283f5>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <e3aa8db986d7457ca73f10110f1283f5>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
  at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00055] in <e3aa8db986d7457ca73f10110f1283f5>:0 
  at System.IO.StreamWriter..ctor (System.String path) [0x00008] in <e3aa8db986d7457ca73f10110f1283f5>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string)
  at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00026] in <e3aa8db986d7457ca73f10110f1283f5>:0 
  at Oxide.Core.Configuration.DynamicConfigFile.WriteObject[T] (T config, System.Boolean sync, System.String filename) [0x0003f] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.DataFileSystem.WriteObject[T] (System.String name, T Object, System.Boolean sync) [0x00007] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.DataFileSystem.ReadObject[T] (System.String name) [0x0000f] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Plugins.MonumentOwner+PlayerDataManager.LoadFiles () [0x0001b] in <7a50ab0e20f34d74be6f8445060ef41f>:0 
  at Oxide.Plugins.MonumentOwner.OnServerInitialized () [0x0003a] in <7a50ab0e20f34d74be6f8445060ef41f>:0 
  at Oxide.Plugins.MonumentOwner.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00165] in <7a50ab0e20f34d74be6f8445060ef41f>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0 
Loaded plugin MonumentOwner v1.5.5 by jtedal
[MonumentOwner] Image Scores_jtedal download is completed.
[MonumentOwner] Image Crown_jtedal download is completed.
[MonumentOwner] Image ExitTime_jtedal download is completed.
[MonumentOwner] Image Guest_jtedal download is completed.

 

miniMe_rust

Posted

Hi all,

you can disregard this and close. The problem came from Pterodactyl, where I created folders and copied files through their GUI. Files and folders were owned by root and not by the Rust server, which led to the error message. I corrected ownership for files and folders, and now the PlayersData.json file is automatically created as it should be. Sorry for the noise.

jtedal

Posted

21 hours ago, miniMe_rust said:

Hi all,

you can disregard this and close. The problem came from Pterodactyl, where I created folders and copied files through their GUI. Files and folders were owned by root and not by the Rust server, which led to the error message. I corrected ownership for files and folders, and now the PlayersData.json file is automatically created as it should be. Sorry for the noise.

It's all good. Thank you for informing me that the problem has been solved. If you have any other questions, please write to me

  • Like 1
jtedal

Posted

Changed Status from Pending to Not a Bug

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

Files Sold

Total number of files sold.

2m

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.