Page 1 of 1

CumulusMX doesn't run

Posted: Wed 18 May 2022 8:56 pm
by SeGo
Hello. I have an error message when starting CumulusMX. It was working without issues:
2022-05-18 11:02:26.547 ========================== Cumulus MX starting ==========================
2022-05-18 11:02:26.789 Command line: /home/pi/CumulusMX/CumulusMX.exe
2022-05-18 11:02:26.790 Cumulus MX v.3.16.1 build 3183
2022-05-18 11:02:26.978 Mono version: 6.8.0.105 (Debian 6.8.0.105+dfsg-3.2 Mon Jul 12 07:04:24 UTC 2021)
2022-05-18 11:02:27.215 Platform: Unix
2022-05-18 11:02:27.338 OS version: Unix 5.15.32.0
2022-05-18 11:02:27.368 Current culture: English (United Kingdom) [en-GB]
2022-05-18 11:02:27.374 Checking required folders
2022-05-18 11:02:29.626 Reading Cumulus.ini file
2022-05-18 11:02:31.465 AvgSpdMins=10 AvgSpdTime=00:10:00
2022-05-18 11:02:31.761 Cumulus start date: 16 May 2022
2022-05-18 11:02:32.643 !!! Unhandled Exception !!!
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00014] in <d22af090bceb4be792f53595cf074724>:0
at CumulusMX.Utils.GetIpWithDefaultGateway () [0x00101] in <97834895e3104302abf6a91184c2a0c5>:0
at CumulusMX.Cumulus.ReadIniFile () [0x019fa] in <97834895e3104302abf6a91184c2a0c5>:0
at CumulusMX.Cumulus..ctor (System.Int32 HTTPport, System.Boolean DebugEnabled, System.String startParms) [0x01a2c] in <97834895e3104302abf6a91184c2a0c5>:0
at CumulusMX.Program.RunAsAConsole (System.Int32 port, System.Boolean debug) [0x00048] in <97834895e3104302abf6a91184c2a0c5>:0
at CumulusMX.Program.Main (System.String[] args) [0x0056b] in <97834895e3104302abf6a91184c2a0c5>:0


I don't know how to make it work again.

Thanks!

Re: CumulusMX doesn't run

Posted: Thu 19 May 2022 1:09 pm
by mcrossley
I'd have a look at your Cumulus.ini file. Is it corrupt? Try restoring it from a back-up.

Re: CumulusMX doesn't run

Posted: Thu 19 May 2022 5:28 pm
by SeGo
mcrossley wrote: Thu 19 May 2022 1:09 pm I'd have a look at your Cumulus.ini file. Is it corrupt? Try restoring it from a back-up.
I restored it and shows the same error. I downloaded a previous version and shows it too. I run it in the first Raspberry Pi (2011 model). May be too old nowadays?

Re: CumulusMX doesn't run

Posted: Thu 19 May 2022 10:45 pm
by mcrossley
Has your rPi got a network interface, and if so is it configured with a default gateway address?

The crash is happening in the code that tries to determine the local IP address of your machine. I'll fix the crash for the next build, but adding a default gateway address should fix it for now?

Re: CumulusMX doesn't run

Posted: Fri 20 May 2022 7:06 am
by SeGo
mcrossley wrote: Thu 19 May 2022 10:45 pm Has your rPi got a network interface, and if so is it configured with a default gateway address?

The crash is happening in the code that tries to determine the local IP address of your machine. I'll fix the crash for the next build, but adding a default gateway address should fix it for now?
I'm going to restore the IP configuration. This will be the problem. Thanks!