Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

realtime.txt fails in raspberry Pi image

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

dk6
Posts: 19
Joined: Mon 19 Feb 2024 9:14 am
Weather Station: Davis Vantange Pro2 + RPI
Operating System: CUMULUS PI image

realtime.txt fails in raspberry Pi image

Post by dk6 »

Hello everyone!
I am using Cumulus MX with Raspberry Pi image serial connection (custom made cable) to Davis Vantange Pro2. Works great!

now i want to create the realtime.txt file and i am using this simple setting.
interval_settings.jpg
and i have these errors in the log
2024-02-19 09:19:32 - ProcessTemplateFile: Error writing to file 'web/realtimegauges.txt', error was - System.UnauthorizedAccessException: Access to the path "/opt/CumulusMX/web/realtimegauges.txt" 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 <d636f104d58046fd9b195699bcb1a744>: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 <d636f104d58046fd9b195699bcb1a744>: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 <d636f104d58046fd9b195699bcb1a744>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding) [0x00000] in <d636f104d58046fd9b195699bcb1a744>: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 <4f66116639304edd8219956ed2a31d69>:0
2024-02-19 09:19:32 - Error encountered during Realtime file update.
What can i do? :?: :?: :?:

Thank you!
You do not have the required permissions to view the files attached to this post.
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: realtime.txt fails in raspberry Pi image

Post by Mapantz »

Have you installed CumulusMX in C:\Program Files by any chance?
Image
dk6
Posts: 19
Joined: Mon 19 Feb 2024 9:14 am
Weather Station: Davis Vantange Pro2 + RPI
Operating System: CUMULUS PI image

Re: realtime.txt

Post by dk6 »

I am using Raspberry Pi software image! :P
Last edited by dk6 on Mon 19 Feb 2024 11:35 am, edited 1 time in total.
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: realtime.txt

Post by Mapantz »

Apologies. Selective reading this morning! :?
Image
water01
Posts: 3669
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: realtime.txt

Post by water01 »

Did you start CumulusMX with the sudo command as it looks like you do not have the correct permissions to write a file to "/opt/CumulusMX/web/"? If you did I suggest you look at the permissions for "/opt/CumulusMX/web/" and add WRITE permissions to the directory.
David
Image
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: realtime.txt fails in raspberry Pi image

Post by mcrossley »

As the supplied image was used, it sounds like the permissions in the image need fixing as well. @dazza Can you investigate?
dk6
Posts: 19
Joined: Mon 19 Feb 2024 9:14 am
Weather Station: Davis Vantange Pro2 + RPI
Operating System: CUMULUS PI image

Re: realtime.txt

Post by dk6 »

water01 wrote: Mon 19 Feb 2024 11:47 am Did you start CumulusMX with the sudo command as it looks like you do not have the correct permissions to write a file to "/opt/CumulusMX/web/"? If you did I suggest you look at the permissions for "/opt/CumulusMX/web/" and add WRITE permissions to the directory.
is this ok?

from terminal i have this-->
terminal.jpg
what are the correct permissions?
You do not have the required permissions to view the files attached to this post.
Last edited by dk6 on Mon 19 Feb 2024 2:26 pm, edited 1 time in total.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: realtime.txt fails in raspberry Pi image

Post by freddie »

Those permissions mean that anybody can create and delete files in that directory, which would not result in the error that you are seeing. The permissions are actually too generous, which is not always a good thing.

Therefore the permission issue must be related to the files within that directory. Could you supply a listing of that directory that includes the permissions? cd into the directory then use ls -l
Freddie
Image
dk6
Posts: 19
Joined: Mon 19 Feb 2024 9:14 am
Weather Station: Davis Vantange Pro2 + RPI
Operating System: CUMULUS PI image

Re: realtime.txt fails in raspberry Pi image

Post by dk6 »

freddie wrote: Mon 19 Feb 2024 2:24 pm Those permissions mean that anybody can create and delete files in that directory, which would not result in the error that you are seeing. The permissions are actually too generous, which is not always a good thing.

Therefore the permission issue must be related to the files within that directory. Could you supply a listing of that directory that includes the permissions? cd into the directory then use ls -l
please see here!
terminal.jpg
You do not have the required permissions to view the files attached to this post.
water01
Posts: 3669
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: realtime.txt fails in raspberry Pi image

Post by water01 »

Sorry but that is the same, Type in cd /run and then ls -l.
David
Image
dk6
Posts: 19
Joined: Mon 19 Feb 2024 9:14 am
Weather Station: Davis Vantange Pro2 + RPI
Operating System: CUMULUS PI image

Re: realtime.txt fails in raspberry Pi image

Post by dk6 »

water01 wrote: Mon 19 Feb 2024 2:41 pm Sorry but that is the same, Type in cd /run and then ls -l.
terminal2.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: realtime.txt fails in raspberry Pi image

Post by mcrossley »

You have now listed the /run folder.

Try:> ls -l /opt/CumulusMX/web/
dk6
Posts: 19
Joined: Mon 19 Feb 2024 9:14 am
Weather Station: Davis Vantange Pro2 + RPI
Operating System: CUMULUS PI image

Re: realtime.txt fails in raspberry Pi image

Post by dk6 »

mcrossley wrote: Mon 19 Feb 2024 2:54 pm You have now listed the /run folder.

Try:> ls -l /opt/CumulusMX/web/
terminal3.jpg
You do not have the required permissions to view the files attached to this post.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: realtime.txt fails in raspberry Pi image

Post by freddie »

Urgh - symlinks :( You'll have to explain the purpose of those. Unless they are in the cmx image - in that case it'll be over to Dazza.
Freddie
Image
dk6
Posts: 19
Joined: Mon 19 Feb 2024 9:14 am
Weather Station: Davis Vantange Pro2 + RPI
Operating System: CUMULUS PI image

Re: realtime.txt fails in raspberry Pi image

Post by dk6 »

freddie wrote: Mon 19 Feb 2024 3:10 pm Urgh - symlinks :( You'll have to explain the purpose of those. Unless they are in the cmx image - in that case it'll be over to Dazza.
i am using this image->

https://www.cumuluswiki.org/Downloads/r ... 3.28.0.zip

i did not change anything!
Post Reply