cmon crashes on rpi 1 with weewc V5.0.0.a25

43 views
Skip to first unread message

Lucas Heijst

unread,
Mar 26, 2023, 11:34:15 AM3/26/23
to weewx-development
I have weewx version V5.0.0a25 installed on two RPI's.
a. RPI 3b+
b. RPI 1 (yes they do still exist!)

I know the ComputerMonitor program is not part of weewx and thus not supported.

On PI 3b+ with weewx V5.0.0a25 cmon runs without errors
On PI 1 with weewx V4.5.1 cmon also worked ok.
On PI 1 with weewx V5.0.0a25 cmon got the following error:
======
Mar 26 12:17:51 pi11 systemd[1]: Started WeeWX cmon.
Mar 26 12:17:54 pi11 weewx[4823] INFO weewxd: Initializing weewx version 5.0.0a25
Mar 26 12:17:54 pi11 weewx[4823] INFO weewxd: Using Python 3.9.2 (default, Mar 12 2021, 04:06:34) #012[GCC 10.2.1 20210110]
Mar 26 12:17:54 pi11 weewx[4823] INFO weewxd: Located at /usr/bin/python3
Mar 26 12:17:54 pi11 weewx[4823] INFO weewxd: Platform Linux-6.1.19+-armv6l-with-glibc2.31
Mar 26 12:17:54 pi11 weewx[4823] INFO weewxd: Locale is 'en_GB.UTF-8'
Mar 26 12:17:54 pi11 weewx[4823] INFO weewxd: Entry path: /root/.local/lib/python3.9/site-packages/weewxd.py
Mar 26 12:17:54 pi11 weewx[4823] INFO weewxd: Using configuration file /root/weewx-data/weewx_cmon.conf
Mar 26 12:17:54 pi11 weewx[4823] INFO weewxd: Debug is 2
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewxd: Initializing engine
Mar 26 12:17:54 pi11 weewx[4823] INFO weewx.engine: Loading station type Simulator (weewx.drivers.simulator)
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.engine: Finished loading service weewx.engine.StdTimeSynch
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.engine: Loading service weewx.engine.StdConvert
Mar 26 12:17:54 pi11 weewx[4823] INFO weewx.engine: StdConvert target unit is 0x10
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.engine: Finished loading service weewx.engine.StdConvert
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.engine: Loading service weewx.engine.StdCalibrate
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.engine: Finished loading service weewx.engine.StdCalibrate
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.engine: Loading service weewx.engine.StdQC
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.engine: Finished loading service weewx.engine.StdQC
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.engine: Loading service weewx.wxservices.StdWXCalculate
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.wxservices: Calculations for LOOP packets: {'pressure': 'prefer_hardware', 'altimeter': 'prefer_hardware', 'appTemp': 'prefer_hardware', 'barometer': 'prefer_hardware', 'cloudbase': 'prefer_hardware', 'dewpoint': 'prefer_hardware', 'ET': 'prefer_hardware', 'heatindex': 'prefer_hardware', 'humidex': 'prefer_hardware', 'inDewpoint': 'prefer_hardware', 'maxSolarRad': 'prefer_hardware', 'rainRate': 'prefer_hardware', 'windchill': 'prefer_hardware', 'windrun': 'prefer_hardware', 'windDir': 'software', 'windGustDir': 'software'}
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.wxservices: Calculations for archive records: {'pressure': 'prefer_hardware', 'altimeter': 'prefer_hardware', 'appTemp': 'prefer_hardware', 'barometer': 'prefer_hardware', 'cloudbase': 'prefer_hardware', 'dewpoint': 'prefer_hardware', 'ET': 'prefer_hardware', 'heatindex': 'prefer_hardware', 'humidex': 'prefer_hardware', 'inDewpoint': 'prefer_hardware', 'maxSolarRad': 'prefer_hardware', 'rainRate': 'prefer_hardware', 'windchill': 'prefer_hardware', 'windrun': 'prefer_hardware', 'windDir': 'software', 'windGustDir': 'software'}
Mar 26 12:17:54 pi11 weewx[4823] INFO weewx.wxservices: StdWXCalculate will use data binding wx_binding
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.manager: Daily summary version is 4.0
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.engine: Finished loading service weewx.wxservices.StdWXCalculate
Mar 26 12:17:54 pi11 weewx[4823] DEBUG weewx.engine: Loading service user.cmon.ComputerMonitor
Mar 26 12:17:54 pi11 weewx[4823] INFO user.cmon: service version is 0.21
Mar 26 12:17:55 pi11 systemd[1]: weewx_cmon.service: Main process exited, code=killed, status=4/ILL
Mar 26 12:17:55 pi11 systemd[1]: weewx_cmon.service: Failed with result 'signal'.
Mar 26 12:17:55 pi11 systemd[1]: weewx_cmon.service: Consumed 3.183s CPU time.
======

Any idea what "'code=killed, status=4/ILL" and "Failed with result 'signal'." mean?
I have no idea where to search for errors.

Luc

Vince Skahan

unread,
Mar 26, 2023, 12:07:11 PM3/26/23
to weewx-development
On Sunday, March 26, 2023 at 8:34:15 AM UTC-7 Lucas Heijst wrote:
On PI 3b+ with weewx V5.0.0a25 cmon runs without errors
On PI 1 with weewx V4.5.1 cmon also worked ok.
On PI 1 with weewx V5.0.0a25 cmon got the following error:

Mar 26 12:17:55 pi11 systemd[1]: weewx_cmon.service: Main process exited, code=killed, status=4/ILL
Mar 26 12:17:55 pi11 systemd[1]: weewx_cmon.service: Failed with result 'signal'.
Mar 26 12:17:55 pi11 systemd[1]: weewx_cmon.service: Consumed 3.183s CPU time.
======

Any idea what "'code=killed, status=4/ILL" and "Failed with result 'signal'." mean?
I have no idea where to search for errors.


Some googling for status=4/ILL has a lot of hits for problems trying to run armv7 binaries (pi3) on armv6 boxes (model-B), but that does not explain how it worked before.  Did you perhaps copy your cmon stuff from the pi3 onto your old pi ?   Maybe delete the .pyc files associated with cmon on the old model pi ?

 

Lucas Heijst

unread,
Mar 26, 2023, 1:27:07 PM3/26/23
to weewx-development
Thanks Vince.

I got similar problems on my RPI 2b model, (both loaded with the latest Raspberry PI OS lite (32-bit), so for now I'm back to the old configurations.

On my RPI 3b+ weewx V5.0.0.a25 and cmon both work fine with the latest Raspberry PI OS lite (64-bit) or ubuntu 22.10 server (64-bit).

Op zondag 26 maart 2023 om 13:07:11 UTC-3 schreef Vince Skahan:

Vince Skahan

unread,
Mar 26, 2023, 5:09:10 PM3/26/23
to weewx-development
Which precise model are you having problems with ?
My old one is:

pi@raspberrypi:~ $ cat /sys/firmware/devicetree/base/model && echo ""
Raspberry Pi Model B Rev 2


I wonder if your new os is what is broken.  Do you have an old SD card with an old image you can try ?

Lucas Heijst

unread,
Mar 27, 2023, 6:30:08 AM3/27/23
to weewx-development
Cmon is now working OK with Weewx V5.0.0.a25  on Debian 10 Buster.
Below are the steps to got it working.

Upgrading to weewx v5.0.0a25 (debian) on Debian 10 (Buster)

Linux pi11 5.4.72+ #1356 Thu Oct 22 13:56:00 BST 2020 armv6l
model name: ARMv6-compatible processor rev 7 (v6l)
Model: Raspberry Pi Model B Rev 2

apt update

apt install python3-pip

apt install gcc python3-dev python3-pip

pip3 install wheel

pip3 install weewx

weectl station create --no-prompt


Read weewx-data to windows

Change the Service part of file weewx_cmon.service

[Service]

ExecStart=/usr/bin/python3 /usr/local/lib/python3.7/dist-packages/weewxd.py /root/weewx-data/weewx_cmon.conf

Read back weewx_cmon/conf of version V4.5.1 to weewx-data

Write the old weewx-data back to linux

Create daemon voor cmon

cd ~/weewx-data

cp util/systemd/weewx_cmon.service /etc/systemd/system

chmod -wx /etc/systemd/system/weewx_cmon.service

systemctl daemon-reload

systemctl enable weewx_cmon


Start cmon

systemctl restart weewx_cmon


The webpage reports the version of weewx and python

station: ComputerMonitor

server: 64178 seconds

weewx: 281 seconds

version: 5.0.0a25

python: 3.7.3


Conclusion: the reported error has to do with the latest version of PI OS (bullseye) which can't be used on RPI 1B (or RPI 2B?)
Op zondag 26 maart 2023 om 18:09:10 UTC-3 schreef Vince Skahan:
Reply all
Reply to author
Forward
0 new messages