linuxserver / docker-smokeping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Perl Module for Radius missing

filou01 opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When adding

  • Radius
    forks = 5
    step = 300
    to the Probes file, following output is shown in "podman logs smokeping"

require Smokeping::probes::Radius failed: Can't locate Authen/Radius.pm in @inc (you may need to install the Authen::Radius module) (@inc contains: .. /usr/share/smokeping /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/share/smokeping/Smokeping/probes/Radius.pm line 19, <$fh> line 255.
BEGIN failed--compilation aborted at /usr/share/smokeping/Smokeping/probes/Radius.pm line 19, <$fh> line 255.
Compilation failed in require at (eval 98) line 1, <$fh> line 255.
require Smokeping::probes::Radius failed: Can't locate Authen/Radius.pm in @inc (you may need to install the Authen::Radius module) (@inc contains: .. /usr/share/smokeping /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/share/smokeping/Smokeping/probes/Radius.pm line 19, <$fh> line 255.
BEGIN failed--compilation aborted at /usr/share/smokeping/Smokeping/probes/Radius.pm line 19, <$fh> line 255.
Compilation failed in require at (eval 98) line 1, <$fh> line 255.
require Smokeping::probes::Radius failed: Can't locate Authen/Radius.pm in @inc (you may need to install the Authen::Radius module) (@inc contains: .. /usr/share/smokeping /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/share/smokeping/Smokeping/probes/Radius.pm line 19, <$fh> line 255.
BEGIN failed--compilation aborted at /usr/share/smokeping/Smokeping/probes/Radius.pm line 19, <$fh> line 255.
Compilation failed in require at (eval 98) line 1, <$fh> line 255.

Expected Behavior

i think the perl module "perl-authen-radius-" or a similar one should be installed inside the container

Steps To Reproduce

1.) add +Radius to Probes config file
2.) podman start smokeping
3.) podman logs smokeping -> see error message

Environment

- OS: RHEL9
- How docker service was installed:

CPU architecture

x86-64

Docker creation

podman run -d   --name=smokeping  -e TZ=Europe/Vienna  -p 1.2.3.4:8080:80   -v /data/smokeping/config:/config:Z   -v /data/smokeping/data:/data:Z  linuxserver/smokeping

Container logs

require Smokeping::probes::Radius failed: Can't locate Authen/Radius.pm in @INC (you may need to install the Authen::Radius module) (@INC contains: .. /usr/share/smokeping /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/share/smokeping/Smokeping/probes/Radius.pm line 19, <$fh> line 255.
BEGIN failed--compilation aborted at /usr/share/smokeping/Smokeping/probes/Radius.pm line 19, <$fh> line 255.
Compilation failed in require at (eval 98) line 1, <$fh> line 255.
require Smokeping::probes::Radius failed: Can't locate Authen/Radius.pm in @INC (you may need to install the Authen::Radius module) (@INC contains: .. /usr/share/smokeping /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/share/smokeping/Smokeping/probes/Radius.pm line 19, <$fh> line 255.
BEGIN failed--compilation aborted at /usr/share/smokeping/Smokeping/probes/Radius.pm line 19, <$fh> line 255.
Compilation failed in require at (eval 98) line 1, <$fh> line 255.
require Smokeping::probes::Radius failed: Can't locate Authen/Radius.pm in @INC (you may need to install the Authen::Radius module) (@INC contains: .. /usr/share/smokeping /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/share/smokeping/Smokeping/probes/Radius.pm line 19, <$fh> line 255.
BEGIN failed--compilation aborted at /usr/share/smokeping/Smokeping/probes/Radius.pm line 19, <$fh> line 255.
Compilation failed in require at (eval 98) line 1, <$fh> line 255.

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

commented

Can you do docker exec smokeping apk add perl-authen-radius and see if that resolves the issue for you? If so I'll get it added to the image.

Hi. Indeed it looks better after installing the apk package and when starting up the container the error is gone while +Radius Probe is activated.