-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
[BUG] Could not import InfluxDB modules - (you may need to install the JSON::MaybeXS module) #179
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
Can you do |
Done, but now it needs: DBG: Setting up a new InfluxDB connection |
OK, this is going to be fun walking the dependencies. Exec into a shell in the container and do:
And then try again; we'll have to keep going until we find all the deps. With any luck it'll just be that one. |
Looks like Object::Result depends on Method::Signatures which is from 2017 and therefore fails its tests due to deprecated deps. Going to be horribly messy but might be able to do:
|
I was just dealing with it.
Now it starts without errors and any dependencies issues. |
OK, let me put a PR together to add all the bits |
Is there an existing issue for this?
Current Behavior
After configuring the influxdb section, when the container starts it logs:
ERROR: Could not import InfluxDB modules, but InfluxDB host was configured: Can't locate JSON/MaybeXS.pm in @inc (you may need to install the JSON::MaybeXS module) (@inc entries checked: .. /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/local/share/perl5/site_perl/InfluxDB/HTTP.pm line 13.
BEGIN failed--compilation aborted at /usr/local/share/perl5/site_perl/InfluxDB/HTTP.pm line 13.
Compilation failed in require at /usr/share/smokeping/Smokeping.pm line 4169.
Expected Behavior
No response
Steps To Reproduce
*** InfluxDB ***
host = <influxdb_host>
database = <database_name>
timeout = 10
port = <influx_port>
username = <influxdb_username>
password = <influxdb_password>
ERROR: Could not import InfluxDB modules, but InfluxDB host was configured: Can't locate JSON/MaybeXS.pm in @inc (you may need to install the JSON::MaybeXS module) (@inc entries checked: .. /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/local/share/perl5/site_perl/InfluxDB/HTTP.pm line 13.
BEGIN failed--compilation aborted at /usr/local/share/perl5/site_perl/InfluxDB/HTTP.pm line 13.
Compilation failed in require at /usr/share/smokeping/Smokeping.pm line 4169.
Environment
CPU architecture
x86-64
Docker creation
docker run -d \ --name=smokeping \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Etc/UTC \ -e CACHE_DIR=/tmp `#optional` \ -p 80:80 \ -v /local-smokeping-config-path/config:/config \ -v /local-smokeping-data-path/data:/data \ --restart unless-stopped \ lscr.io/linuxserver/smokeping:latest
Container logs
The text was updated successfully, but these errors were encountered: