Page 1 of 3

CumulusUtils divers issues after a crash

Posted: Thu 08 Jun 2023 4:45 pm
by Benji60
Hello everyone!
After a big crash of my SSD, I had to reinstall all Cumulus! Fortunately, 2 times a day I have a backup that saves the whole folder and on another raspberry I have a version of cumulusMX running to have a copy of the data.
In short, I've managed, with more trouble than I thought, to put everything back in place, but a few problems have cropped up:

- The 'toggle' and 'dashbord' tabs no longer work, I have an empty drop-down menu instead.
-The extra probes, I only have "lightning".
-I'm not sure if the records are still updated.
-Older NOAA reports are no longer displayed (only blocked for June 2023)

Maybe there are other problems, but I haven't seen them yet.

I'm attaching the log file that is generated when I run the following command:

Code: Select all

cd /opt/CumulusMX;sudo utils/bin/cumulusutils.exe thrifty website; sudo utils/bin/cumulusutils.exe sysinfo UserAskedData; sudo  utils/bin/cumulusutils.exe ExtraSensors
Since it's been over 1 year since I've touched the Utils configuration, I've probably forgotten a few things about how it works ^^.


Thank !

Utils => https://www.meteo-gournaysuraronde.fr/t ... index.html

Re: CumulusUtils divers issues after a crash

Posted: Thu 08 Jun 2023 5:47 pm
by AndyKF650
Hi there

A few comments on your problems,
1. you only ran a thrifty up date rather than the full website update this may help the lack of movement on the toggle tab
2. your mono version is well out of date, check out the mono project https://www.mono-project.com/download/stable/ for details and download
3. it looks like your reports transfer which should enclose the NOAA reports did not work either see if you can find the correct file or go back to CMX and set the NOAA reports up.
4. it may be helpful to reload the CMX and CUtils downloads to ensure that you have all the correct files.

I hope this helps to get you up and running again. The is nothing like a SSD crash to concentrate the mind!

Re: CumulusUtils divers issues after a crash

Posted: Thu 08 Jun 2023 7:07 pm
by Benji60
thanks for the answer.
I don't remember, but I was sure it was the full version, so what is the full version (and not the minimalist one)?

For mono, I just made a big mistake and broke cumulusmx, I don't dare touch it anymore. I've started all over again with the CumulusMX image, but it seems to be the same version of mono that I have ...

Re: CumulusUtils divers issues after a crash

Posted: Thu 08 Jun 2023 7:43 pm
by AndyKF650
Hi there

The command for the website updates for CUtils from the CumulusMX terminal point: raspberrypi:~/CumulusMX utils/bin/cumulusutils.exe website you do not need the sudo starter.

One comment why is your base CumulusMX folder at the /opt level? The normal point is the /home/name/CumulusMX.

Also personally I do not use the CumulusMX image method as I prefer taking the slightly longer way around and then ensure I get the software I want, so it starts with the Raspbian o/s, add mono, add CMX and transfer the data and reports files in to get CMX working properly and then add in CUtils. I am sure this is all down to preferences but it works for me.

Re: CumulusUtils divers issues after a crash

Posted: Fri 09 Jun 2023 3:35 am
by HansR
@Andy: opt is the directory used by the image afaik.

@benji60: I'll be behind the computer later today or tomorrow and look at the issues.

Re: CumulusUtils divers issues after a crash

Posted: Fri 09 Jun 2023 3:35 pm
by SamiS
AndyKF650 wrote: Thu 08 Jun 2023 7:43 pm One comment why is your base CumulusMX folder at the /opt level? The normal point is the /home/name/CumulusMX.
Mark has recommended to install under /opt/CumulusMX/ for quite a while. I think one reason was that RaspberryOS abandoned the default pi user, so everyone has as different path. Also when running as service, the root user has permissions to /opt by default but not to the user home directories.

Re: CumulusUtils divers issues after a crash

Posted: Fri 09 Jun 2023 3:52 pm
by freddie
SamiS wrote: Fri 09 Jun 2023 3:35 pm
AndyKF650 wrote: Thu 08 Jun 2023 7:43 pm One comment why is your base CumulusMX folder at the /opt level? The normal point is the /home/name/CumulusMX.
Mark has recommended to install under /opt/CumulusMX/ for quite a while. I think one reason was that RaspberryOS abandoned the default pi user, so everyone has as different path. Also when running as service, the root user has permissions to /opt by default but not to the user home directories.
Standard Linux install location for non-system programs is (or at least was) /opt. This dates from the Unix days and was part of the Filesystem Hierarchy Standard (FHS). So it's a good "standard" place to install CumulusMX.

I must take exception to the statement that the root user has access restrictions on any part of the filesystem. In Linux, root is "god" and is free to roam wherever :)

Re: CumulusUtils divers issues after a crash

Posted: Fri 09 Jun 2023 4:28 pm
by SamiS
freddie wrote: Fri 09 Jun 2023 3:52 pm I must take exception to the statement that the root user has access restrictions on any part of the filesystem. In Linux, root is "god" and is free to roam wherever :)
Now that you say I do have to agree.

I was ”hoping” that the system would have changed so that by default you do not have permission, but of course as root you can obtain them when needed anyway. It would give at least a bit of security / privacy if root had to do chown/chmod before getting to user’s homedirectory. Kind of a step to the same direction as in windows you have to explicitly elevate programs to get administrator permissions.

Re: CumulusUtils divers issues after a crash

Posted: Fri 09 Jun 2023 4:46 pm
by HansR
@benji60: I split the topic: you started CUtils in 2021 so you are no longer a beginner :)
Benji60 wrote: Thu 08 Jun 2023 4:45 pm In short, I've managed, with more trouble than I thought, to put everything back in place, but a few problems have cropped up:

- The 'toggle' and 'dashbord' tabs no longer work, I have an empty drop-down menu instead.
I assume you use an old version of the CutilsMenu.def. The ToggleDashboard keyword in that file needs to be one word!
Benji60 wrote: Thu 08 Jun 2023 4:45 pm -The extra probes, I only have "lightning".
For only the lightning sensor I think you need to set the 'Extra Sensor' parameters as follows:

Code: Select all

[ExtraSensors]
ExtraSensors=true
ParticipatesSensorCommunity=false OR true
CleanupExtraSensorslog=false
UserModificationExtraSensorCharts=false
ExternalExtraSensors=
ExtraTemp=
ExtraHum=
ExtraDP=
SoilTemp=
SoilMoisture=
AirQuality=
UserTemp=
LeafWetness=
SoilTemperature=
CO2=
LightningSensor=true

Benji60 wrote: Thu 08 Jun 2023 4:45 pm -I'm not sure if the records are still updated.
Why do you think that?

Benji60 wrote: Thu 08 Jun 2023 4:45 pm -Older NOAA reports are no longer displayed (only blocked for June 2023)
The older NOAA reports will not be generated with a new install. You need to set the Records Began Date (Station Settings=>Advanced Options). If you don't have the backup of the reports in their proper directories you have to move those yourself. The CMX will pick it up from there.

Re: CumulusUtils divers issues after a crash

Posted: Fri 09 Jun 2023 5:09 pm
by freddie
SamiS wrote: Fri 09 Jun 2023 4:28 pm Kind of a step to the same direction as in windows you have to explicitly elevate programs to get administrator permissions.
That is precisely what "sudo" is for - and I rather think Windows borrowed that concept from Linux/Unix as it was originally conceived in the 1980s.

There is no way to bar root from any part of the FS without barring everybody. It's best to never use the root user except when elevated privilege is required - and that's the job of sudo.

Apologies - I've gone way off topic :lol:

Re: CumulusUtils divers issues after a crash

Posted: Fri 09 Jun 2023 6:29 pm
by Benji60
Thank you very much for the answers, I'll try to change all that tomorrow.
I think the records are out of date, because for example I've had more than 20 days without rain (not even 0.1mm) and that's not updated in the records.

Re: CumulusUtils divers issues after a crash

Posted: Fri 09 Jun 2023 6:34 pm
by HansR
That will be solved in the next release to be published shortly.
See viewtopic.php?t=21344

Re: CumulusUtils divers issues after a crash

Posted: Fri 09 Jun 2023 6:53 pm
by Benji60
ah great!

Re: CumulusUtils divers issues after a crash

Posted: Fri 09 Jun 2023 7:45 pm
by Benji60
I've just modified everything and it looks fine.
Thanks a lot!

Re: CumulusUtils divers issues after a crash

Posted: Fri 09 Jun 2023 7:59 pm
by HansR
good :D