Jump to content

Error on load

Not a Bug 1.2.72

TuxGeek
TuxGeek

Posted

I am getting this error on an oxide server. The plugin was purchased today and never configured to be custom at all

Failed to call hook 'OnServerInitialized' on plugin 'Shop v1.2.72' (UnauthorizedAccessException: Access to the path "/home/container/oxide/data/Shop/HumanNPC_Shops.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 <112d89ea5d3348c8b949af0ab1a866d2>:0 
  at Oxide.Core.DataFileSystem.WriteObject[T] (System.String name, T Object, System.Boolean sync) [0x00007] in <112d89ea5d3348c8b949af0ab1a866d2>:0 
  at Oxide.Plugins.Shop.SaveHumanNPCData () [0x00022] in <42ab92e3f82c486490cf4e86def049b1>:0 
  at Oxide.Plugins.Shop.LoadHumanNPCData () [0x00052] in <42ab92e3f82c486490cf4e86def049b1>:0 
  at Oxide.Plugins.Shop.OnServerInitialized () [0x00012] in <42ab92e3f82c486490cf4e86def049b1>:0 
  at Oxide.Plugins.Shop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x005fe] in <42ab92e3f82c486490cf4e86def049b1>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <112d89ea5d3348c8b949af0ab1a866d2>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0 
Loaded plugin Shop v1.2.72 by David

David

Posted

This looks like something wrong with your server. "UnauthorizedAccessException: Access to the path "/home/container/oxide/data/Shop/HumanNPC_Shops.json" is denied." means that plugin don't have access to the json file. Permission to access to the files is not something I can handle inside plugin, that's coming from your server setup. 

David

Posted

Changed Status from Pending to Not a Bug

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.9k
Customers served
Files Sold
156.6k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • 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.