Jump to content

Console Error

Closed 2.9.9

Srtzero
Srtzero

Posted

Getting the following error when running the plugin. It says access denied to the ImportedWorkshopSkins.json and SkinsPlugin.json. Neither of these files exist. Are they supposed to be created when the plugin runs?

[02.04 02:26:08] [RaidableBases] System.UnauthorizedAccessException: Access to the path "/home/container/oxide/data/RaidableBases/ImportedWorkshopSkins.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 <f98723dd4586469db5213ec59da723ca>: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 <f98723dd4586469db5213ec59da723ca>: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 <f98723dd4586469db5213ec59da723ca>:0 
  at System.IO.StreamWriter..ctor (System.String path) [0x00008] in <f98723dd4586469db5213ec59da723ca>: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 <f98723dd4586469db5213ec59da723ca>:0 
  at Oxide.Core.Configuration.DynamicConfigFile.WriteObject[T] (T config, System.Boolean sync, System.String filename) [0x0003f] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Core.DataFileSystem.WriteObject[T] (System.String name, T Object, System.Boolean sync) [0x00007] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Core.DataFileSystem.ReadObject[T] (System.String name) [0x0000f] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Plugins.RaidableBases.LoadImportedSkins () [0x00025] in <e64fdfe7ab5b4398b177a2d014f6de3a>:0
[02.04 02:26:08] [RaidableBases] System.UnauthorizedAccessException: Access to the path "/home/container/oxide/data/RaidableBases/SkinsPlugin.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 <f98723dd4586469db5213ec59da723ca>: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 <f98723dd4586469db5213ec59da723ca>: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 <f98723dd4586469db5213ec59da723ca>:0 
  at System.IO.StreamWriter..ctor (System.String path) [0x00008] in <f98723dd4586469db5213ec59da723ca>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string)

nivex

Posted

hi, the plugin is trying to load those files. they do not exist, so Oxide is trying to create them, but your system is blocking access because it has insufficient permissions.

your host does not have permissions setup properly on your operating system. they will need to fix that

Srtzero

Posted

11 hours ago, nivex said:

hi, the plugin is trying to load those files. they do not exist, so Oxide is trying to create them, but your system is blocking access because it has insufficient permissions.

your host does not have permissions setup properly on your operating system. they will need to fix that

Thanks. Restarting the server seems to have fixed the permission issue. Both files have been created and the plugin is working with no errors. The host provider explained if I have the server running while adding new plugins sometimes the permissions don't get applied properly. Shutting down the server and restarting was their solution.

nivex

Posted

glad it is working! that is not a normal solution though. it should not require a restart if the host had it configured properly. which host is this?

Srtzero

Posted

2 minutes ago, nivex said:

glad it is working! that is not a normal solution though. it should not require a restart if the host had it configured properly. which host is this?

Bisect Hosting. Maybe it has something to do with using a web file manager to upload the files instead of directly via FTP?  I did see in the download file that  ImportedWorkshopSkins.json was in the files, however it didnt get loaded onto the server. I added it again, and restarted and everything worked.  Maybe just web file manager quirk.

nivex

Posted

panels can certainly have issues where files are not uploaded, or changes are not saved. refreshing the panel or clearing your cache generally fixes that issue. however it's more likely that these issues are due to a misconfiguration with chmod, chown or umask. if misconfigured then new files might not have the proper permissions or ownership and files created by the server process can end up with restrictive permissions (like being read-only).

  • Like 1
nivex

Posted

Changed Status from Pending to Closed

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

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.