Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.1.3 (build 4028) - 20 August 2024

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

Problems with new installation

Discussion specific to Fine Offset and similar rebadged weather stations
Post Reply
Joe Curtis
Posts: 44
Joined: Sun 07 Jun 2009 2:07 pm
Weather Station: W-8681
Operating System: RPI Bookworm MX 4023
Contact:

Problems with new installation

Post by Joe Curtis »

20240825-172136.txt
I have recently had to reinstall my system due to my micro SSD card going on the blink.
When I restart the new system it appears to continually restart.

Any insights would be more than welcome


cmx@Pi3SOS:~ $ cd /opt/CumulusMX
cmx@Pi3SOS:/opt/CumulusMX $ dotnet CumulusMX.dll
Cumulus MX v.4.1.3 build 4028
Working Dir: /opt/CumulusMX/

Cumulus running at: http://localhost:8998/
http://127.0.1.1:8998/
http://192.168.1.107:8998/

Open the admin interface by entering one of the above URLs into a web browser.

Opening station type 5 - Fine Offset
Last update: 2024-08-24T07:10:00
Looking for Fine Offset station
Fine Offset station found
Looking for Fine Offset station
Fine Offset station found
Looking for Fine Offset station
Fine Offset station found
Looking for Fine Offset station
Fine Offset station found
etc.

Apart from the date the dashboard entries are missing
You do not have the required permissions to view the files attached to this post.
Joe Curtis
User avatar
PaulMy
Posts: 4028
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Problems with new installation

Post by PaulMy »

Hi,
A few things in the MXdiags...

Code: Select all

2024-08-25 17:21:40.369 TestPhpUploadCompression: Error - 
2024-08-25 17:21:40.373 TestPhpUploadCompression: Error -  - Exception Type: System.AggregateException
Message: One or more errors occurred. (Connection refused (192.168.1.107:443))
Inner Exception... 
Exception Type: System.Net.Http.HttpRequestException
Message: Connection refused (192.168.1.107:443)
Inner Exception... 
Exception Type: System.Net.Sockets.SocketException
Message: Connection refused
Others may know better, but first, if you are uploading to website using the PHP method have you copied the PHP Upload secret: code in your \webfiles\upload.php file and then FTP that file to your website?

Code: Select all

2024-08-25 17:21:43.122 ERROR: Duplicate entry in dayfile for 22/08/2024
2024-08-25 17:21:43.122 ERROR: Duplicate entry in dayfile for 23/08/2024
2024-08-25 17:21:43.127 LoadDayFile: Loaded 94 entries to recent daily data list
2024-08-25 17:21:43.129 LoadDayFile: Found 34 duplicate entries, please correct your dayfile and try again
2024-08-25 17:21:43.142 Monthly log file data/202408log.txt Checked OK
2024-08-25 17:21:43.161 GetRainCounter: Nothing to do
2024-08-25 17:21:43.166 GetRainFallTotals: Getting rain totals, rain season start = 1
2024-08-25 17:21:43.167 GetRainFallTotals: Today = 25/08/24
2024-08-25 17:21:43.169 GetRainFallTotals: Rainthismonth from dayfile: 1.04
2024-08-25 17:21:43.169 GetRainFallTotals: Rainthisyear from dayfile: 4.949999999999998
2024-08-25 17:21:43.174 Checking SQLite integrity...
2024-08-25 17:21:43.256 SQLite integrity check OK
As noted, the dayfile has errors. Where you able to correct the dayfile from your issue a couple months ago?

Code: Select all

2024-08-25 17:21:43.274 FO synchronise reads: True
2024-08-25 17:21:43.274 FO synchronise avoid time: 3
2024-08-25 17:21:43.274 FO last station time: 2024-08-16T01:20:00
2024-08-25 17:21:43.274 FO last sensor time : 2024-08-16T01:18:39
2024-08-25 17:21:43.280 Looking for Fine Offset station, VendorID=0x1941 ProductID=0x8021
2024-08-25 17:21:43.451 Fine Offset station found
2024-08-25 17:21:43.488 Stream open failed
2024-08-25 17:21:45.472 This Cumulus MX instance is running the latest release version
2024-08-25 17:21:53.489 Looking for Fine Offset station, VendorID=0x1941 ProductID=0x8021
2024-08-25 17:21:53.507 Fine Offset station found
2024-08-25 17:21:53.510 Stream open failed
2024-08-25 17:22:03.511 Looking for Fine Offset station, VendorID=0x1941 ProductID=0x8021
2024-08-25 17:22:03.525 Fine Offset station found
2024-08-25 17:22:03.528 Stream open failed
2024-08-25 17:22:13.528 Looking for Fine Offset station, VendorID=0x1941 ProductID=0x8021
2024-08-25 17:22:13.543 Fine Offset station found
2024-08-25 17:22:13.547 Stream open failed
Have you entered the correct settings for your station type?

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
SamiS
Posts: 456
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Problems with new installation

Post by SamiS »

I think this is yet another FO usb station that does not work due to the ”Stream open failed” error. I think no-one has resolved this yet.
User avatar
mcrossley
Posts: 13293
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Problems with new installation

Post by mcrossley »

It is a permissions problem.

If I run CumulusMX as root it can read the HID device OK. As a regular user it fails.

I have tried adding a new rule file to /etc/udev/rules.d/
with the contents:

Code: Select all

SUBSYSTEM=="usb", ATTR{idVendor}=="1941", ATTR{idProduct}=="8021", MODE="0666"
and adding a new line to the existing 99-com.rules file

Code: Select all

SUBSYSTEM=="usb", GROUP="pi", MODE="0660"
Either of which is supposed to fix this, but even after a reboot (incase "sudo udevadm control --reload" didn't work) my regular user "pi" on an old system still had not access to the HID device.

Any Linux gurus got any more ideas?
User avatar
mcrossley
Posts: 13293
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Problems with new installation

Post by mcrossley »

I also tried changing the file permissions ton the device itself (/dev/usb/hiddev0), still the same problem.
freddie
Posts: 2674
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: Problems with new installation

Post by freddie »

Try adding the pi user to the wheel group.
Freddie
Image
User avatar
mcrossley
Posts: 13293
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Problems with new installation

Post by mcrossley »

I tried using "plugdev" as the group in the udev rules as recommended elsewhere - and the pi user is a member of that group by default. No workie.

Add the pi user to wheel group - "The group "wheel" does not exist.
User avatar
mcrossley
Posts: 13293
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Problems with new installation

Post by mcrossley »

OK fixed! The rule syntax is slightly different from the original source I looked at.

To fix this I did the following (all as root/sudo)...
  1. Create a new udev rule file:

    Code: Select all

    /etc/udev/rules.d/50-usb-cmx.rules
  2. Add the following content:

    Code: Select all

    SUBSYSTEM=="input", GROUP="input", MODE="0666"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="1941", ATTRS{idProduct}=="8021", MODE:="0666", GROUP="plugdev"
    KERNEL=="hidraw*", ATTRS{idVendor}=="1941", ATTRS{idProduct}=="8021", MODE="0666", GROUP="plugdev"
  3. Unplug the stations USB cable
  4. Run the command

    Code: Select all

    sudo udevadm control --reload-rules
  5. Plug the station USB cable back in
  6. Run Cumulus MX as a regular user - now works :D
Joe Curtis
Posts: 44
Joined: Sun 07 Jun 2009 2:07 pm
Weather Station: W-8681
Operating System: RPI Bookworm MX 4023
Contact:

Re: Problems with new installation

Post by Joe Curtis »

Many thanks Mark, that seems to have done the trick although I haven't a clue what is going on!
Joe Curtis
User avatar
dazza1223
Posts: 890
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Problems with new installation

Post by dazza1223 »

mcrossley wrote: Mon 26 Aug 2024 4:19 pm OK fixed! The rule syntax is slightly different from the original source I looked at.

To fix this I did the following (all as root/sudo)...
  1. Create a new udev rule file:

    Code: Select all

    /etc/udev/rules.d/50-usb-cmx.rules
  2. Add the following content:

    Code: Select all

    SUBSYSTEM=="input", GROUP="input", MODE="0666"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="1941", ATTRS{idProduct}=="8021", MODE:="0666", GROUP="plugdev"
    KERNEL=="hidraw*", ATTRS{idVendor}=="1941", ATTRS{idProduct}=="8021", MODE="0666", GROUP="plugdev"
  3. Unplug the stations USB cable
  4. Run the command

    Code: Select all

    sudo udevadm control --reload-rules
  5. Plug the station USB cable back in
  6. Run Cumulus MX as a regular user - now works :D
so i have updated both of the images so can somebody test them before i release them and let me know

https://www.davisworthing.co.uk/downloads.php
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
Bob.Stansfield
Posts: 17
Joined: Tue 02 Aug 2022 10:06 am
Weather Station: Aercus W2085
Operating System: Raspberry

Re: Problems with new installation

Post by Bob.Stansfield »

i have been having issues where no data was received on dashboard after upgrading to v4 with my fine offset station. I have done the above and is now working at long last, thank you Mark :clap:
Post Reply