Page 1 of 1

Sudden error on startup, does it think it's on Windows?

Posted: Sat 08 Apr 2023 12:27 pm
by jpsc

Code: Select all

2023-04-08 11:34:01.890  ========================== Cumulus MX starting ==========================
2023-04-08 11:34:01.904 Command line: /home/cumulus/Cumulus3/CumulusMX.exe -port 8998 
2023-04-08 11:34:01.905 Cumulus MX v.3.24.2 build 3235
2023-04-08 11:34:01.922 Mono version: 6.8.0.105 (Debian 6.8.0.105+dfsg-3.2 Mon Jul 12 07:04:24 UTC 2021)
2023-04-08 11:34:01.929 Platform: Unix
2023-04-08 11:34:01.929 OS version: Unix 5.15.84.7
2023-04-08 11:34:01.930 Current culture: English (United Kingdom) [en-GB]
2023-04-08 11:34:01.930 Running as a 32 bit process
2023-04-08 11:34:01.930 Error: cannot find the file: x86/sqlite3.dll
I swear I didn't change anything, but I did have a crash the other night

Running on raspbian Bullseye, previous good startup:

Code: Select all

2023-03-26 15:33:53.744  ========================== Cumulus MX starting ==========================
2023-03-26 15:33:53.764 Command line: /home/cumulus/Cumulus3/CumulusMX.exe -port 8998 
2023-03-26 15:33:53.764 Cumulus MX v.3.24.2 build 3235
2023-03-26 15:33:53.781 Mono version: 6.8.0.105 (Debian 6.8.0.105+dfsg-3.2 Mon Jul 12 07:04:24 UTC 2021)
2023-03-26 15:33:53.788 Platform: Unix
2023-03-26 15:33:53.789 OS version: Unix 5.15.84.7
2023-03-26 15:33:53.789 Current culture: English (United Kingdom) [en-GB]
2023-03-26 15:33:53.789 Running as a 32 bit process
2023-03-26 15:33:53.877 Checking required folders
2023-03-26 15:33:54.272 Reading Cumulus.ini file
2023-03-26 15:33:54.341 AvgSpdMins=5 AvgSpdTime=00:05:00
2023-03-26 15:33:54.372 Cumulus start date: 1/11/2015  Parsed: 2015-11-01
2023-03-26 15:33:54.735 Reading Cumulus.ini file completed
2023-03-26 15:33:54.749 Creating lock file /tmp/cumulusmx-8998.lock
2023-03-26 15:33:54.827 Stop second instance: No other running instances of Cumulus found
2023-03-26 15:33:54.828 Directory separator=[/] Decimal separator=[.] List separator=[,]
2023-03-26 15:33:54.828 Date separator=[/] Time separator=[:]
2023-03-26 15:33:54.828 Standard time zone name:   GMT
2023-03-26 15:33:54.829 Daylight saving time name: BST
2023-03-26 15:33:54.840 Daylight saving time? True
2023-03-26 15:33:54.840 26/03/2023 15:33:54
2023-03-26 15:33:54.840 No start-up delay - disabled
2023-03-26 15:33:54.841 No start-up PING
2023-03-26 15:33:54.857 Data path = data/
2023-03-26 15:33:55.186 BackupData: Creating backup folder backup/20230326153355/
2023-03-26 15:33:55.270 Created backup folder backup/20230326153355/
2023-03-26 15:33:55.270 Debug logging :enabled
2023-03-26 15:33:55.270 Data logging  :disabled
2023-03-26 15:33:55.270 FTP logging   :enabled
2023-03-26 15:33:55.271 Email logging :disabled
2023-03-26 15:33:55.271 Spike logging :disabled

Re: Sudden error on startup, does it think it's on Windows?

Posted: Sat 08 Apr 2023 1:00 pm
by freddie
When you installed/upgraded did you copy all the files from the distribution zip? Your log file shows that MX couldn't find something in the x86 directory - which just happens to be a new directory introduced in a recent release.

Re: Sudden error on startup, does it think it's on Windows?

Posted: Sat 08 Apr 2023 3:56 pm
by jpsc
Ah, I have an x64 directory with sqlite3.dll in it

Re: Sudden error on startup, does it think it's on Windows?

Posted: Sat 08 Apr 2023 5:26 pm
by freddie
Yes that'll be for the 64bit version of MX. From your logfile you're using the 32bit version.

Re: Sudden error on startup, does it think it's on Windows?

Posted: Sat 08 Apr 2023 7:35 pm
by jpsc
Right, thanks. I've copied it in and it's going

I'm running on a Pi 3, how does it decide which one to run?

Re: Sudden error on startup, does it think it's on Windows?

Posted: Sat 08 Apr 2023 9:03 pm
by freddie
I'm not completely sure - possibly down to your OS version, maybe your mono version? @mcrossley will know for sure.

Re: Sudden error on startup, does it think it's on Windows?

Posted: Sat 08 Apr 2023 9:42 pm
by mcrossley
It is the OS that determines it - unless you force the install of a 32bit version of mono on a 64bit OS!

Re: Sudden error on startup, does it think it's on Windows?

Posted: Sat 08 Apr 2023 10:12 pm
by jpsc
I thought it was, 64bit on Pu3 latest OS, but it seems I have some sort of hybrid.

I'll unzip the distribution over it avain

Re: Sudden error on startup, does it think it's on Windows?

Posted: Sun 09 Apr 2023 12:05 am
by jpsc
My mistake, the 64bit OS is on another Pi. This one has been upgraded in place from Jessie so cannot be. Still does not explain how it was running though.

There is a dll in the program directory

Code: Select all

pi@WeatherServerB:/home/cumulus/Cumulus3 $ ls -hls sqlite3.dll
1.1M -rwxrw-rw- 1 root root 1.1M Feb 20 22:53 sqlite3.dll

Re: Sudden error on startup, does it think it's on Windows?

Posted: Sun 09 Apr 2023 5:52 am
by freddie
Release 3.24.0 (build 3231) introduced the x86/x64 subdirectories for libraries on 8th March 2023. So you must've performed a full upgrade at some point and it has since lost some files/directories.

Re: Sudden error on startup, does it think it's on Windows?

Posted: Sun 09 Apr 2023 6:39 am
by jpsc
I went straight from 3043 to 3235 on 26/3 and it ran for 10 days. On 7/4 there was an event which crashed the Pi and I had to remove power to get it back again, and when it restarted the x86 directory was gone.

So far I have only reinstated the sqlite dll, I will re-unzip the entire distribution next to make sure that nothing else has gone missing.

Thank you for your help