RPi-Monitor icon indicating copy to clipboard operation
RPi-Monitor copied to clipboard

Perl error on Raspberry pi bullseye 64-bit

Open racedowling opened this issue 2 years ago • 3 comments

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.

racedowling avatar Mar 27 '22 14:03 racedowling

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.

mushu999 avatar Jan 18 '24 20:01 mushu999

Also, see this issue which shows it works in Bullseye: https://github.com/XavierBerger/RPi-Monitor/issues/385

mushu999 avatar Jan 18 '24 21:01 mushu999

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

Vyacheslav-S avatar Apr 10 '24 07:04 Vyacheslav-S