Page 1 of 1

Issue running multiple instances b3220

Posted: Sun 01 Jan 2023 7:44 pm
by philpugh
I just downloaded b3220 and started to install.

I run three instances of CumulusMX on my Pi4 each with it's own weather station.

I stopped one instance, copied the b3220 kit over, duplicated the image to be WH65.exe - I like to be able to identify the running process easily. I restarted it and off it went - no issues. So I did the same for the second station, halted CMX, copied the kit over, renamed the image to WS68.exe and restarted - major problem - it detected a second instance of CumulusMX and terminated the application.

I copied the old version (b3215) back and that ran OK - this is how I left it.

Each of the three instances has it's image name changed to reflect the weatherstation (WH65.exe, WS68.exe and GW2001.exe) each with their own port number (8998, 9889, 9898) and they are all started as services.

I attach the log file and a check of the running processes before and after the start of the "failing" service.

Re: Issue running multiple instances b3220

Posted: Sun 01 Jan 2023 7:54 pm
by philpugh
Additional info.

This is the log for the first station changed (WH65).

It is still running normally!

Re: Issue running multiple instances b3220

Posted: Sun 01 Jan 2023 7:55 pm
by Mapantz
This was in the updates file:

- Stop second instance on Linux, this now uses a lock file to prevent a second instance from running

Re: Issue running multiple instances b3220

Posted: Sun 01 Jan 2023 8:34 pm
by mcrossley
Yep, the stop second instance function was not working on previous releases running on Linux (Windows it did work), it is now. So, if you want to run multiple instances you must make sure that option is not enabled in Program Settings

Re: Issue running multiple instances b3220

Posted: Sun 01 Jan 2023 10:22 pm
by philpugh
Ooops. Missed that point. Thanks