Navino16 / Varken

Standalone application to aggregate data from the Plex ecosystem into InfluxDB using Grafana as a frontend
MIT License
0 stars 1 forks source link

Varken won't run #3

Closed Dragonsys closed 1 month ago

Dragonsys commented 1 month ago

I get an error that I have not configured the ini file below is my ini file (I covered data with #####, but these entries were filled out to correct information)

[global]
sonarr_server_ids = 1
radarr_server_ids = 1
lidarr_server_ids = 1
tautulli_server_ids = 1
ombi_server_ids = 1
overseerr_server_ids = false
unifi_server_ids = false
maxmind_license_key = #####

[influxdb]
url = influxdb.domain.tld
port = 8086
ssl = false
verify_ssl = false
username = #####
password = #####
org = #####

[tautulli-1]
url = 192.168.1.6:8181
fallback_ip = 1.1.1.1
apikey = #####
ssl = false
verify_ssl = false
get_libraries = true
get_libraries_run_days = 30
get_activity = true
get_activity_run_seconds = 30
get_stats = true
get_stats_run_seconds = 3600

[sonarr-1]
url = 192.168.1.5:8989
apikey = #####
ssl = false
verify_ssl = false
missing_days = 30
missing_days_run_seconds = 300
future_days = 7
future_days_run_seconds = 300
queue = true
queue_run_seconds = 300

[sonarr-2]
url = sonarr2.domain.tld:8989
apikey = yyyyyyyyyyyyyyyy
ssl = false
verify_ssl = false
missing_days = 7
missing_days_run_seconds = 300
future_days = 1
future_days_run_seconds = 300
queue = true
queue_run_seconds = 300

[radarr-1]
url = 192.168.1.5:7878
apikey = #####
ssl = false
verify_ssl = false
queue = true
queue_run_seconds = 300
get_missing = true
get_missing_run_seconds = 300

[radarr-2]
url = radarr2.domain.tld
apikey = yyyyyyyyyyyyyyyy
ssl = false
verify_ssl = false
queue = true
queue_run_seconds = 300
get_missing = true
get_missing_run_seconds = 300

[lidarr-1]
url = 192.168.1.5:8686
apikey = #####
ssl = false
verify_ssl = false
missing_days = 30
missing_days_run_seconds = 300
future_days = 7
future_days_run_seconds = 300
queue = true
queue_run_seconds = 300

[ombi-1]
url = 192.168.1.10:3579
apikey = #####
ssl = false
verify_ssl = false
get_request_type_counts = true
request_type_run_seconds = 300
get_request_total_counts = true
request_total_run_seconds = 300
get_issue_status_counts = true
issue_status_run_seconds = 300

[overseerr-1]
url = overseerr.domain.tld
apikey = xxxxxxxxxxxxxxxx
ssl = false
verify_ssl = false
get_request_total_counts = true
request_total_run_seconds = 30
get_latest_requests = true
num_latest_requests_to_fetch = 10
num_latest_requests_seconds = 30
num_total_issue_counts = 300

[unifi-1]
url = unifi.domain.tld:8443
username = ubnt
password = ubnt
site = default
usg_name = MyRouter
ssl = false
verify_ssl = false
get_usg_stats_run_seconds = 300

Below is my log file

2024-07-23 11:41:56 : INFO : Varken : Starting Varken...
2024-07-23 11:41:56 : INFO : Varken : Data folder is "/config"
2024-07-23 11:41:56 : INFO : Varken : Linux 4.4.302+ (#69057 SMP Fri Jan 12 17:02:57 CST 2024 - a l p i n e 3 . 1 9 . 1 A l p i n e   L i n u x)
2024-07-23 11:41:56 : INFO : Varken : Python 3.10.13 (main, Mar 16 2024, 05:19:18) [GCC 13.2.1 20231014]
2024-07-23 11:41:56 : INFO : Varken : Varken v0.0.0-dev 1970-01-01
2024-07-23 11:41:56 : DEBUG : iniparser : Reading from varken.ini
2024-07-23 11:41:56 : DEBUG : iniparser : ********n.tld is a valid URL in module [influxdb].
2024-07-23 11:41:56 : INFO : helpers : SONARR_SERVER_IDS : [1]
2024-07-23 11:41:56 : DEBUG : iniparser : ********8.1.5:8989 is a valid URL in module [sonarr-1].
2024-07-23 11:41:56 : INFO : helpers : RADARR_SERVER_IDS : [1]
2024-07-23 11:41:56 : DEBUG : iniparser : ********:7878 is a valid URL in module [radarr-1].
2024-07-23 11:41:56 : INFO : helpers : LIDARR_SERVER_IDS : [1]
2024-07-23 11:41:56 : DEBUG : iniparser : ********:8686 is a valid URL in module [lidarr-1].
2024-07-23 11:41:56 : INFO : helpers : OMBI_SERVER_IDS : [1]
2024-07-23 11:41:56 : DEBUG : iniparser : ********:3579 is a valid URL in module [ombi-1].
2024-07-23 11:41:56 : INFO : iniparser : OVERSEERR_SERVER_IDS disabled.
2024-07-23 11:41:56 : INFO : helpers : TAUTULLI_SERVER_IDS : [1]
2024-07-23 11:41:56 : DEBUG : iniparser : ********8.1.6:8181 is a valid URL in module [tautulli-1].
2024-07-23 11:41:56 : INFO : iniparser : UNIFI_SERVER_IDS disabled.
2024-07-23 11:41:56 : CRITICAL : dbmanager : You have not configured your varken.ini. Please read Wiki page for configuration
Dragonsys commented 1 month ago

I figured this out, the issue was that I didn't have the MaxMind DB file downloaded and in the varken config folder.

Dragonsys commented 1 month ago

I figured this out, the issue was that I didn't have the MaxMind DB file downloaded and in the varken config folder.

Ok, this works if using InfluxDB v1.8, but if trying to use InfluxDB v2 the original error still occurs, and varken won't run. I think it is to do with how the InfluxDB auth is being handled, but since the error is so generic, i can only guess, really.

Navino16 commented 1 month ago

@Dragonsys your URL for influxdb can't be "influxdb.domain.tld"

That's hardcoded in Varken -> https://github.com/Navino16/Varken/blob/74c8f879690ed0508d3ea4a5abaa5f4131dd1678/varken/dbmanager.py#L16

Try another URL and feel free to re-open if you steel have the error