Page 1 of 1

MX Error

Posted: Sat 13 Aug 2016 1:16 am
by liddelljs
Hi all,
I've had an error come up on MX a couple of times now over the past couple of weeks and wonder whether anyone else has come across it before. It seems to stop the ftp upload but doesn't stop the gauges showing properly (I checked the ftp log file for errors but the file was empty). A restart of MX seems to fix the problem and no data is lost. I am still running v3038 and wonder whether I should update to 3040?

Cheers
Steve

2016-08-13 06:00:04.156 System.IO.IOException: Sharing violation on path /home/pi/CumulusMX/web/tempdata.json
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)
at . () [0x00000] in <filename unknown>:0
at CumulusMX.Cumulus.DoHTMLFiles () [0x00000] in <filename unknown>:0
at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0

Re: MX Error

Posted: Sat 13 Aug 2016 7:14 am
by steve
Another process is using the tempdata.json file at the same time as MX is trying to write to it. The other process might be an external application, or it may be another process in MX itself, if you have MX configured to do something with the file other than the standard processing.

(MX should really trap this error like Cumulus 1 does, and not allow the exception to kill the upload thread)

Re: MX Error

Posted: Sun 14 Aug 2016 8:00 am
by liddelljs
Thanks for the response Steve. I don't think I am doing anything but the standard file processing but I'll do some checking.

Cheers
Steve