Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.0 (build 4022) - 11 May 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

b3269 - mono error preventing running

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
ExperiMentor
Posts: 214
Joined: Tue 24 Nov 2015 11:30 pm
Weather Station: Fine Offset & Davis Vantage Vue
Operating System: Windows 10; Raspbian Buster
Location: Switzerland

b3269 - mono error preventing running

Post by ExperiMentor »

I just updated from b3245 (Jun 2023) to b3269 (Dec 2023) by replacing the directory then copying in the /data, /backup, Cumulus.ini and twitter.txt as usual. In the version commentary in the wiki, I don't see any need to go via intervening versions, or any mention of manual steos required.

But b3269 repeatedly fails after a few seconds, without really getting started. The message pasted below seems like mono is not finding something it needs.

Code: Select all

Could not load type of field 'CumulusMX.Cumulus:httpServer' (182) due to: Could not load file or assembly 'Swan.Lite, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
So I did a sudo apt update / sudo apt upgrade in which the upgardes did include to mono, but it made no difference.

Reverting to b3245 appears to run properly.

Clues please as to what is wrong / what to try?

Message from systemctl:

Code: Select all

cmx@CumulusMX:/opt/CumulusMXb3245 $ sudo systemctl status cumulusmx
● cumulusmx.service - CumulusMX service
     Loaded: loaded (/etc/systemd/system/cumulusmx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2023-12-22 21:23:00 GMT; 2min 19s ago
       Docs: https://cumuluswiki.org/a/Main_Page
    Process: 8399 ExecStart=/usr/bin/mono-service -d:/opt/CumulusMX CumulusMX.exe -service (code=exited, status=0/SUCCESS)
    Process: 8408 ExecStopPost=/bin/rm -f /tmp/CumulusMX.exe.lock (code=exited, status=0/SUCCESS)
   Main PID: 8400 (code=exited, status=1/FAILURE)
        CPU: 6.485s

Dec 22 21:22:52 CumulusMX systemd[1]: Starting CumulusMX service...
Dec 22 21:22:53 CumulusMX systemd[1]: Started CumulusMX service.
Dec 22 21:22:59 CumulusMX mono[8400]: CumulusMX.exe: Could not load type of field 'CumulusMX.Cumulus:httpServer' (182) due to: Could not load file or assembly 'Swan.Lite, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Dec 22 21:22:59 CumulusMX systemd[1]: cumulusmx.service: Main process exited, code=exited, status=1/FAILURE
Dec 22 21:23:00 CumulusMX systemd[1]: cumulusmx.service: Failed with result 'exit-code'.
Dec 22 21:23:00 CumulusMX systemd[1]: cumulusmx.service: Consumed 6.485s CPU time.
SamiS
Posts: 386
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: b3269 - mono error preventing running

Post by SamiS »

I have not seen that exact error before, but a few suggestions on what to try:

1) Check that your installation has all the correct files, instructions are at the beginning of hashmd5.txt in CumulusMX folder.

2) Check your mono version, current CMX is not guaranteed to work with older than 6.12.x

3) Remove and reinstall mono-complete package on your system. Using purge option may be necessary if the installation is crooked. Unfortunately I cannot write the command example here since my ipad insists to replace dual dashes with a one long dash. :bash:
water01
Posts: 3274
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: b3269 - mono error preventing running

Post by water01 »

Swan.Lite.dll is part of the package release so my guess is you have not copied the complete build into the CumulusMX folder. Important you do this, especially with this release as there were lots of changes to components as well as code.
David
Image
User avatar
mcrossley
Posts: 12828
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: b3269 - mono error preventing running

Post by mcrossley »

The Swan.Lite.dll file comes in the Cumulus MX zip file - @water01 beat me to it! :)
SamiS
Posts: 386
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: b3269 - mono error preventing running

Post by SamiS »

mcrossley wrote: Sat 23 Dec 2023 11:47 am The Swan.Lite.dll file comes in the Cumulus MX zip file - @water01 beat me to it! :)
And I beat you both since running the hash check as instructed would have shown a missing file. :mrgreen:
User avatar
mcrossley
Posts: 12828
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: b3269 - mono error preventing running

Post by mcrossley »

Indeed, and if there, if it is the correct version or not :)
Cortmalaw
Posts: 92
Joined: Sat 26 Dec 2020 2:21 pm
Weather Station: Davis
Operating System: Raspbian
Location: Near Glasgow, Scotland, UK

Re: b3269 - mono error preventing running

Post by Cortmalaw »

Thanks everyone.

The hash check showed DOZENS of missing files, not just that one. So I know what to do!

My Mono JIT compiler is version 6.12.0.200 , so that's OK
Post Reply