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

CMX Hanging

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
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

CMX Hanging

Post by HansR »

Suddenly CMX started spawning a lot of threads. See htop screenshot.
No access to the RPi was possible. Had to pull the plug and restart.

Corresponding logfile attached.
    Schermafbeelding 2022-06-09 155857.jpg
    You do not have the required permissions to view the files attached to this post.
    Hans

    https://meteo-wagenborgen.nl
    CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
    BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
    User avatar
    mcrossley
    Posts: 14388
    Joined: Thu 07 Jan 2010 9:44 pm
    Weather Station: Davis VP2/WLL
    Operating System: Bullseye Lite rPi
    Location: Wilmslow, Cheshire, UK
    Contact:

    Re: CMX Hanging

    Post by mcrossley »

    Hmm, looks like WoW is having problems, every request gets a "too many requests" error even though they are every 5 minutes.

    I suspect that the thread used to perform the WoW update is not getting deleted for some reason and eventually you run out of memory.

    I'll take a look, but I'm pretty sure CMX exits the thread and it's going to be mono that isn't closing it properly for some reason. This could be related to another problem report where the http client seemed to be hanging after an error - but that was a real exception rather than the server returning an error.

    It also looks like you FTP host disconnects the real-time FTP session after an hour and CMX has to reconnect. That happens every hour.
    User avatar
    HansR
    Posts: 6926
    Joined: Sat 20 Oct 2012 6:53 am
    Weather Station: GW1100 (WS80/WH40)
    Operating System: Raspberry OS/Bookworm
    Location: Wagenborgen (NL)
    Contact:

    Re: CMX Hanging

    Post by HansR »

    Wrt the http client, i assume you know MS advised not to dispose of the client but repeatedly use the same http client object for the connection to prevent socket exhaustion? May this be the issue?
    Hans

    https://meteo-wagenborgen.nl
    CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
    BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
    User avatar
    HansR
    Posts: 6926
    Joined: Sat 20 Oct 2012 6:53 am
    Weather Station: GW1100 (WS80/WH40)
    Operating System: Raspberry OS/Bookworm
    Location: Wagenborgen (NL)
    Contact:

    Re: CMX Hanging

    Post by HansR »

    Oh, and btw, this never occurred before, maybe it also has to do with SD card aging?
    Hans

    https://meteo-wagenborgen.nl
    CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
    BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
    User avatar
    mcrossley
    Posts: 14388
    Joined: Thu 07 Jan 2010 9:44 pm
    Weather Station: Davis VP2/WLL
    Operating System: Bullseye Lite rPi
    Location: Wilmslow, Cheshire, UK
    Contact:

    Re: CMX Hanging

    Post by mcrossley »

    HansR wrote: Thu 09 Jun 2022 2:50 pm Wrt the http client, i assume you know MS advised not to dispose of the client but repeatedly use the same http client object for the connection to prevent socket exhaustion? May this be the issue?
    The same client is reused by CMX. A different http client is created for each active upload and reused until CMX is closed.
    User avatar
    HansR
    Posts: 6926
    Joined: Sat 20 Oct 2012 6:53 am
    Weather Station: GW1100 (WS80/WH40)
    Operating System: Raspberry OS/Bookworm
    Location: Wagenborgen (NL)
    Contact:

    Re: CMX Hanging

    Post by HansR »

    It happened again two time this evening. Apparently if there is a network error (outside my control) CMX starts behaving badly. This has not happened before while I did have network errors or disconnects before. When switching the modem off/on CMX just waits until the restart, now it climbs rapidly out of memory with 100% filles swap space. If you need the other logfiles as well let me know. It may be confusing info however because I pulled the plug sooner.

    Currently I switched CMX off and hope Ecowitt catchup works :)
    I'll get back to this issue saturday.
    Hans

    https://meteo-wagenborgen.nl
    CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
    BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
    User avatar
    HansR
    Posts: 6926
    Joined: Sat 20 Oct 2012 6:53 am
    Weather Station: GW1100 (WS80/WH40)
    Operating System: Raspberry OS/Bookworm
    Location: Wagenborgen (NL)
    Contact:

    Re: CMX Hanging

    Post by HansR »

    I created a new SD card (suspected the issue was there) and now I get errors concerning

    Code: Select all

    2022-06-11 20:57:04.475 ProcessData: Error, missing wind chill
    
    I have no idea what is going on here, I have made no change in the config. Then I switched off Windchill in the Graph settings but nothing works.
    What is the issue here, where does this error come from?
    You do not have the required permissions to view the files attached to this post.
    Hans

    https://meteo-wagenborgen.nl
    CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
    BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
    User avatar
    HansR
    Posts: 6926
    Joined: Sat 20 Oct 2012 6:53 am
    Weather Station: GW1100 (WS80/WH40)
    Operating System: Raspberry OS/Bookworm
    Location: Wagenborgen (NL)
    Contact:

    Re: CMX Hanging

    Post by HansR »

    Things seem OK: Timezone was wrong :bash:
    The message pointed me the wrong way.
    Hans

    https://meteo-wagenborgen.nl
    CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
    BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
    User avatar
    mcrossley
    Posts: 14388
    Joined: Thu 07 Jan 2010 9:44 pm
    Weather Station: Davis VP2/WLL
    Operating System: Bullseye Lite rPi
    Location: Wilmslow, Cheshire, UK
    Contact:

    Re: CMX Hanging

    Post by mcrossley »

    You get that message if you have configured CMX to use the station wind chill value and the value is not present in the data sent.
    User avatar
    HansR
    Posts: 6926
    Joined: Sat 20 Oct 2012 6:53 am
    Weather Station: GW1100 (WS80/WH40)
    Operating System: Raspberry OS/Bookworm
    Location: Wagenborgen (NL)
    Contact:

    Re: CMX Hanging

    Post by HansR »

    As said, I created a new SD card and the original problem of creating endless processes seems to have disappeared so it might be related to being unable to write or read a file. It is now running OK for some time and the swap is also not rising rapidly.

    The WindChill error I do not understand but it has disappeared.

    But I do still have an issue : when starting as a service it does not see the primary sensors (logfile attached) and then it simply goes on and reads all sensors as expected. I will not change anything unless you think I should.
    What is wrong (in the service file as below?) ?

    My cumulusmx.service file is as follows:

    Code: Select all

    [Unit]
    Description=CumulusMX service
    Documentation=https://cumuluswiki.org/a/Main_Page
    Wants=network-online.target
    After=network-online.target
    Wants=time-sync.target
    After=time-sync.target
    
    [Service]
    User=pi
    Group=pi
    ExecStart=/usr/bin/mono-service -d:/home/CumulusMX CumulusMX.exe -service
    Type=forking
    ExecStopPost=/bin/rm -f /tmp/CumulusMX.exe.lock
    
    [Install]
    WantedBy=multi-user.target
    
    You do not have the required permissions to view the files attached to this post.
    Hans

    https://meteo-wagenborgen.nl
    CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
    BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
    User avatar
    mcrossley
    Posts: 14388
    Joined: Thu 07 Jan 2010 9:44 pm
    Weather Station: Davis VP2/WLL
    Operating System: Bullseye Lite rPi
    Location: Wilmslow, Cheshire, UK
    Contact:

    Re: CMX Hanging

    Post by mcrossley »

    This message?

    Code: Select all

    2022-06-12 11:47:00.114 Minimum data set of pressure, temperature, and wind is not available and NoSensorCheck is not enabled. Skip processing
    
    It's because the minute has ticked over and no data has yet been received from the station, it's benign but there should really be a check rather than issuing an error message. Just a timing thing.
    User avatar
    HansR
    Posts: 6926
    Joined: Sat 20 Oct 2012 6:53 am
    Weather Station: GW1100 (WS80/WH40)
    Operating System: Raspberry OS/Bookworm
    Location: Wagenborgen (NL)
    Contact:

    Re: CMX Hanging

    Post by HansR »

    OK. Thanks. Than everything is OK again and the issue was a worn out SD card.
    Hans

    https://meteo-wagenborgen.nl
    CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
    BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
    Post Reply