Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Odd error (b3248)

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
BigOkie
Posts: 272
Joined: Tue 28 May 2013 1:06 am
Weather Station: Davis VP2 Plus
Operating System: Raspian Buster (RPi 3b)
Location: Tulsa, OK

Odd error (b3248)

Post by BigOkie »

I'll preface this by saying I searched for this and there are a few posts here, but I'm using b3248 currently (waiting for some of the issues I'm seeing from people in b3257 to update it).

This morning I woke up to trying to access the dashboard on Cumulux but getting a very vanilla looking template with no data (looked like no CSS was being processed).

Did a service restart and that took quite a while, long enough that I killed it. Checked the service and sure enough it had stopped. So I manually started it again. Checked the log files and saw a BUNCH of these errors that had started last night:

Code: Select all

2023-11-07 21:38:05.960 ProcessTemplateFile: Error writing to file 'web/realtimegauges.txt', error was - System.IO.IOException: Sharing violation on path /opt/CumulusMX/w
eb/realtimegauges.txt
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Bool
ean anonymous, System.IO.FileOptions options) [0x0019e] in <533173d24dae460899d2b10975534bb0>: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.F
ileOptions options) [0x00000] in <533173d24dae460899d2b10975534bb0>: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 <533173d24dae460899d2b1
0975534bb0>:0
  at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding) [0x00000] in <533173d24dae460899d2b10975534bb0>:0
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string,bool,System.Text.Encoding)
  at CumulusMX.Cumulus.ProcessTemplateFile (System.String template, System.String outputfile, System.Boolean useAppDir) [0x00034] in <b0ae9ad91692488da7ace3260fd3c598>:0
2023-11-07 21:38:05.968 RealtimeLocalCopy[138]: Error copying [web/realtimegauges.txt] to [/mnt/webdir//realtimegauges.txt. Error = Sharing violation on path /mnt/webdir/
realtimegauges.txt
It appears to repeat for every realtime interval (for me that's five seconds). I'm not doing any ftp uploading, I host my own internally and map NFS drives so I can just do local copies. Works for me. Was hoping a stop start would alleviate this but it didn't.

What did alleviate it was a complete reboot of the RPI I have CMX installed on. I know what to do in this case now, but was wondering what might be trying to access that file as I don't have a lot going on with file transfers aside from doing the local copies. I'm assuming the double forward slashes for directory separators wouldn't do that, as that's never been an issue before

Thanks.
User avatar
mcrossley
Posts: 12774
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Odd error (b3248)

Post by mcrossley »

You could find if a process on the pi has the file open with...

Code: Select all

ls -l /proc/*/cwd | grep 'web/realtimegauges txt$'
You need to run that as root though.
freddie
Posts: 2480
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Odd error (b3248)

Post by freddie »

Potentially an issue with the NFS mapped drive if it took a reboot to fix it.
Freddie
Image
BigOkie
Posts: 272
Joined: Tue 28 May 2013 1:06 am
Weather Station: Davis VP2 Plus
Operating System: Raspian Buster (RPi 3b)
Location: Tulsa, OK

Re: Odd error (b3248)

Post by BigOkie »

freddie wrote: Wed 08 Nov 2023 7:24 pm Potentially an issue with the NFS mapped drive if it took a reboot to fix it.
My thought too. I've had very little issues with that. If I notice it next time I'll see what it's doing with Mark's command. Thanks for the responses guys.
Post Reply