Page 1 of 1

Updated Mono and now will not run on startup

Posted: Thu 19 May 2022 6:31 am
by The Dalek Hunter
I have two instances of CMX running - one on a Davis Station and the other on an Ecowitt Station. They are both running on a Raspberry Pi with Bullseye and both are the latest version of CMX. There was an update to Mono this morning which I applied to both.

https://longsuttonweather.co.uk

https://longsutton-weather.co.uk

After the update CMX starts on the Davis one after a reboot but not on the Ecowitt (both are started as a service).
If I manually start the Ecowitt one with systemctl restart cumulusmx it works fine.

systemctl status cumulusmx gives a Mono error

May 19 07:19:39 Ecowitt-Pi mono[401]: CumulusMX.exe: Sequence contains no elements

No idea why one is working and the other isn't.

I have a startup delay of 30 second for both of them.

Any ideas.

**EDIT**

I found this post viewtopic.php?t=20382

and added ExecStartPre=/bin/sleep 10 to the service file and it seems to work fine now!
But why the problem on the Ecowitt station and not the Davis?

Re: Updated Mono and now will not run on startup

Posted: Thu 19 May 2022 7:30 am
by freddie
Which version of Mono did you upgrade to? Other Pi users may be interested in this...

Re: Updated Mono and now will not run on startup

Posted: Thu 19 May 2022 8:13 am
by The Dalek Hunter
The one that was offered via the standard update ie sudo apt update && sudo apt upgrade -y

mono -V returns

Mono JIT compiler version 6.12.0.179 (tarball Tue May 17 21:57:31 UTC 2022)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp+hard
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(610)
Suspend: preemptive
GC: sgen (concurrent by default)

Re: Updated Mono and now will not run on startup

Posted: Thu 19 May 2022 8:49 am
by AndyKF650
Hi there

I just ran the mono upgrade from my RPi via the usual method after preparing a backup copy of CMX.

So sudo apt update and sudo apt update, the update is quite slow but mono always does update slowly, then sudo reboot and check CMX restarts OK.

Since my CMX software data was not moved CMX started with no problem, a restart of CUtils produced no unexpected issues and my website looks as expected.

The new version of mono is Mono JIT compiler version 6.12.0.179 (tarball Tue May 17 21:57:31 UTC 2022)

For completeness I run a Davis VP2 console through a RPi 4 model B Rev 1.1 using Raspbian GNU/Linux 11 (bullseye)

Re: Updated Mono and now will not run on startup

Posted: Thu 19 May 2022 9:04 am
by The Dalek Hunter
As I said in my first post - my Davis setup worked fine after the Mono update, it was only the Ecowitt one that failed to restart on boot and needed tweaking.

Interested to know why. Both are running on a Raspberry Pi 4b with the same memory and the latest version of Bullseye with all the latest updates. Both have a 32 gb SD card of the same class. Both are connected via ethernet. Both have a 30 second startup delay in their settings.

The Davis uses a WLL and the Ecowitt uses the GW1000B Gateway.