Open racedowling opened 2 years ago
Sorry for the thread necro. You didn't state what version of Perl you have installed but starting with version 5.32 any string argument to vec() containing a codepoint over 0xFF is not going to work. That use case was deprecated beginning in Perl 5.28...that being said, I have not tried to upgrade from Buster to Bullseye so no way to test this and see what the problem is.
Also, see this issue which shows it works in Bullseye: https://github.com/XavierBerger/RPi-Monitor/issues/385
I partially solved this problem by changing rpimonitord.service. Everything is recorded in a log file:
[Unit]
Description=RPi-Monitor daemon
Before=multi-user.target
After=remote-fs.target
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
Restart=on-failure
KillMode=mixed
Nice=19
ExecStart=/usr/bin/rpimonitord
ExecStop=/bin/kill $MAINPID
StandardOutput=append:/var/log/rpimonitor.log
StandardError=append:/var/log/rpimonitor.log
[Install]
WantedBy=multi-user.target
Or without writing errors to disk:
[Unit]
Description=RPi-Monitor daemon
Before=multi-user.target
After=remote-fs.target
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
Restart=on-failure
KillMode=mixed
Nice=19
ExecStart=/usr/bin/rpimonitord
ExecStop=/bin/kill $MAINPID
StandardOutput=append:/var/log/rpimonitor.log
StandardError=append:/dev/null
[Install]
WantedBy=multi-user.target
I get this log error each time rpimonitor runs: Use of uninitialized value in vec at /usr/share/perl5/HTTP/Daemon.pm line 111. sysread() on closed filehandle GEN1405 at /usr/share/perl5/HTTP/Daemon.pm line 344.
I have reinstalled rpi 2.13 and all the perl modules. Rpimonitor is working. I don't know if this is an rpimonitor or a perl issue. Any clues would be appreciated.