Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perl error on Raspberry pi bullseye 64-bit #393

Open
racedowling opened this issue Mar 27, 2022 · 3 comments
Open

Perl error on Raspberry pi bullseye 64-bit #393

racedowling opened this issue Mar 27, 2022 · 3 comments

Comments

@racedowling
Copy link

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.

@mushu999
Copy link

mushu999 commented Jan 18, 2024

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
Copy link

Also, see this issue which shows it works in Bullseye: #385

@Vyacheslav-S
Copy link

Vyacheslav-S commented Apr 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants