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

CumulusMX.exe: Index was outside the bounds of the array

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
The Dalek Hunter
Posts: 342
Joined: Wed 05 Aug 2020 11:51 am
Weather Station: Vantage Pro 2, Ecowitt GW2000
Operating System: macOS Sonoma on a Mac Mini M2
Contact:

CumulusMX.exe: Index was outside the bounds of the array

Post by The Dalek Hunter »

I have just updated to the latest 3.10.3 on my installation running on a Raspberry Pi Zero as a service.

I stopped CMX with sudo systemctl stop cumulusmx copied all the new files over the old files and then restarted with a sudo systemctl start cumulusmx.
No updates to my website happen and I am not able to access the Admin Interface.

When checking with sudo systemctl status cumulusmx I get the error -

CumulusMX.exe: Index was outside the bounds of the array

If I try a sudo mono CumulusMX.exe I get the error

[ERROR] FATAL UNHANDLED EXCEPTION: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at CumulusMX.Cumulus..ctor (System.Int32 HTTPport, System.Int32 WSport) [0x01f4e] in <e5374d62bd7e4591847a6042233be333>:0
at CumulusMX.Program.Main (System.String[] args) [0x00205] in <e5374d62bd7e4591847a6042233be333>:0

Because I can't get there admin interface up I can't enable logging.

I will hold off updating the copy I have running on my Windows Micro PC!
User avatar
The Dalek Hunter
Posts: 342
Joined: Wed 05 Aug 2020 11:51 am
Weather Station: Vantage Pro 2, Ecowitt GW2000
Operating System: macOS Sonoma on a Mac Mini M2
Contact:

Re: CumulusMX.exe: Index was outside the bounds of the array

Post by The Dalek Hunter »

As an update - I have copied the working (non updated) version running on the Windows Micro PC to the Pi Zero and it is working fine so I know its not the Pi!
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: CumulusMX.exe: Index was outside the bounds of the array

Post by mcrossley »

That exception doesn't give me a lot to go on, it looks like it may be trying to start the internal web service.

Please run CumulusMX.exe with the -debug command line parameter, then post the resulting MXdiags log file and we'll see if there is any clues in that.
User avatar
philpugh
Posts: 428
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 12 (RPi5)
Location: Antrobus, Cheshire, UK
Contact:

Re: CumulusMX.exe: Index was outside the bounds of the array

Post by philpugh »

Mark,

I'm getting the same on my setup.

Attached is the debug log.

FWIW the :8998 interface is working correctly.

I haven't noticed any GW1000 timeouts before though.
You do not have the required permissions to view the files attached to this post.
Phil Pugh
GW1100 + WH65/WH57/WH31;GW1100 + WS68/WH40A (also with HP25xx console); GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
https://goosegate.uk/
User avatar
philpugh
Posts: 428
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 12 (RPi5)
Location: Antrobus, Cheshire, UK
Contact:

Re: CumulusMX.exe: Index was outside the bounds of the array

Post by philpugh »

Ooops...

Previous version was doing timeouts as well - this may be because I'm running on Pi ZeroW?

Phil
Phil Pugh
GW1100 + WH65/WH57/WH31;GW1100 + WS68/WH40A (also with HP25xx console); GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
https://goosegate.uk/
User avatar
The Dalek Hunter
Posts: 342
Joined: Wed 05 Aug 2020 11:51 am
Weather Station: Vantage Pro 2, Ecowitt GW2000
Operating System: macOS Sonoma on a Mac Mini M2
Contact:

Re: CumulusMX.exe: Index was outside the bounds of the array

Post by The Dalek Hunter »

HMMM.......

Working again now!

I updated the version I had copied from the Windows Machine and it works fine now.
As I have said this version is run on a headless Raspberry Pi Zero W and I presume somewhere along the way between downloading the new version and updating something somewhere got corrupted! Perhaps pushing the Pi Zero a bit too hard???

Anyway all is well!

Now to try updating the Windows Machine!!!!!
User avatar
philpugh
Posts: 428
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 12 (RPi5)
Location: Antrobus, Cheshire, UK
Contact:

Re: CumulusMX.exe: Index was outside the bounds of the array

Post by philpugh »

I have updated my other system (pi zero W and Davis VantageVue) and that is NOT giving the error. It appears to be running correctly.

I will try reloading the Froggit WH3000SE set up next - this is the one giving the errors for me (and also with the previous version of CumulusMX (b3117)

Phil
Phil Pugh
GW1100 + WH65/WH57/WH31;GW1100 + WS68/WH40A (also with HP25xx console); GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
https://goosegate.uk/
User avatar
philpugh
Posts: 428
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 12 (RPi5)
Location: Antrobus, Cheshire, UK
Contact:

Re: CumulusMX.exe: Index was outside the bounds of the array

Post by philpugh »

Full reload of the GW1000/Froggitt pi zerow and still getting the errors. Some sort of time-out issue?
Phil Pugh
GW1100 + WH65/WH57/WH31;GW1100 + WS68/WH40A (also with HP25xx console); GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
https://goosegate.uk/
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: CumulusMX.exe: Index was outside the bounds of the array

Post by mcrossley »

Phil thanks for the log file, I see what is wrong with v3.10.3, I've PM'd a test version for you to try...
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: CumulusMX.exe: Index was outside the bounds of the array

Post by mcrossley »

Version 3.10.4 has been released to address the fatal issue identified by Phil above, it does not address the issue the OP of this thread is having though.

If you have a GW1000 do not install 3.10.3, update to 3.10.4 instead.
User avatar
The Dalek Hunter
Posts: 342
Joined: Wed 05 Aug 2020 11:51 am
Weather Station: Vantage Pro 2, Ecowitt GW2000
Operating System: macOS Sonoma on a Mac Mini M2
Contact:

Re: CumulusMX.exe: Index was outside the bounds of the array

Post by The Dalek Hunter »

Both Windows and Pi Zero copies working perfectly - many thanks
Post Reply