This is the container image used lscr.io/linuxserver/swag
Current Behavior
When I start the container with added DOCKER_MODS=linuxserver/mods:universal-docker|linuxserver/mods:swag-geoip2influx|linuxserver/mods:swag-maxmind I get the following errors in the logs:
The expectation is that the mod will connect to the influxdb and will write the necessary data in the influxdb.
It looks like the script is working with influxdb v1 but not with influxdb v2.
As per the InfluxDB2 documentation it looks like they've changed the API and it doesn't require username and password anymore, but a token.
Is there an existing issue for this?
Name of mod
linuxserver/mods:swag-geoip2influx
Name of base container
This is the container image used lscr.io/linuxserver/swag
Current Behavior
When I start the container with added
DOCKER_MODS=linuxserver/mods:universal-docker|linuxserver/mods:swag-geoip2influx|linuxserver/mods:swag-maxmind
I get the following errors in the logs:swag | GEOIP2INFLUX 09/May/2024 17:30:41 :: DEBUG :: Found: /config/log/nginx/access.log swag | GEOIP2INFLUX 09/May/2024 17:30:41 :: DEBUG :: Found: /config/geoip2db/GeoLite2-City.mmdb swag | GEOIP2INFLUX 09/May/2024 17:30:41 :: DEBUG :: Testing InfluxDB connection swag | GEOIP2INFLUX 09/May/2024 17:30:41 :: DEBUG :: Starting new HTTP connection (1): influxdb2:8086 swag | GEOIP2INFLUX 09/May/2024 17:30:41 :: DEBUG :: http://influxdb2:8086 "GET /ping HTTP/1.1" 204 0 swag | GEOIP2INFLUX 09/May/2024 17:30:41 :: DEBUG :: Influxdb version: v2.7.6 swag | GEOIP2INFLUX 09/May/2024 17:30:41 :: DEBUG :: http://influxdb2:8086 "GET /query?q=SHOW+DATABASES&db=geoip2influx HTTP/1.1" 401 48 swag | GEOIP2INFLUX 09/May/2024 17:30:41 :: CRITICAL :: Error getting database list! Please check your InfluxDB configuration. swag | Error: 401: {"code":"unauthorized","message":"Unauthorized"}
Expected Behavior
The expectation is that the mod will connect to the influxdb and will write the necessary data in the influxdb. It looks like the script is working with influxdb v1 but not with influxdb v2. As per the InfluxDB2 documentation it looks like they've changed the API and it doesn't require username and password anymore, but a token.
Steps To Reproduce
Environment
CPU architecture
x86-64
Docker creation
Container logs