aetaric / checkrr

Checkrr Scans your library files for corrupt media and replace the files via sonarr and radarr
MIT License
202 stars 10 forks source link

Gotify missing from notifications.go #56

Closed benniblot closed 1 year ago

benniblot commented 1 year ago

Using the Docker Image I'm able to check files but I'm not getting any notifications on gotify and the log file just stays empty

docker log: image

docker-compose:

version: '3'

networks:
  internal_communication:
    external: true

services:
  checkrr:
    container_name: checkrr
    image: aetaric/checkrr:latest
    restart: unless-stopped
    networks:
      - internal_communication
    ports:
      - 8585:8585
    volumes:
      - /PATH/checkrr/checkrr.yaml:/etc/checkrr.yaml
      - /PATH/checkrr/checkrr.db:/checkrr.db
      - /PATH/checkrr/checkrr.log:/checkrr.log
      - /PATH/data/media:/data

checkerr.yaml

checkrr:
  checkpath:
    - "/data/anime/"
    - "/data/movies/"
    - "/data/music/"
    - "/data/tv/"
    - "/data/xxx/"
  database: ./checkrr.db
  debug: true
  csvfile: "./badfiles.csv"
  logfile: "./checkrr.log"
  logjson: false
  cron: "@daily"
  ignorehidden: true
arr:
  radarr:
    process: true
    service: radarr # should be one of: sonarr radarr lidarr
    address: radarr
    apikey: "APIKEY"
    baseurl: /
    port: 7878
    mappings: # maps directories between docker and arr services
      "/data/media/movies/": "/data/movies/" # what radarr sees: what checkrr sees
  sonarr:
    process: true
    service: sonarr
    address: sonarr
    apikey: "APIKEY"
    baseurl: /
    port: 8989
    mappings:
      "/data/media/tv/": "/data/tv/"
  sonarr_anime:
    process: true
    service: sonarr
    address: sonarr_anime
    apikey: "APIKEY"
    baseurl: /
    port: 8990
    mappings:
      "/data/media/anime/": "/data/anime/"
notifications:
  gotify:
    url: "http://IP:PORT/"
    authtoken: "TOKEN"
    notificationtypes:
      - reacquire
      - unknowndetected
      - startrun
      - endrun
webserver:
  port: 8585
  baseurl: "/"
  trustedproxies:
    - 127.0.0.1
aetaric commented 1 year ago

If you open the web UI, when is the next run time scheduled for?

benniblot commented 1 year ago

in 7 hours

aetaric commented 1 year ago

So, the cron system is working then. What happens if you click the run now button at the top?

aetaric commented 1 year ago

Also, docker DNS names will not work on 3.1.1. See #51 for more info there, will be in 3.1.2.

benniblot commented 1 year ago

Thanks for the notice, until now there hasn't been a error with my files so I didn't notice the problem with the DNS. When I click the run now button it checks everything but still no notification or log

aetaric commented 1 year ago

When I click the run now button it checks everything

Does it check everything? Making the assumption that the stats are showing that files were checked...

As for the logs, you have the log file defined... it's probably writing to that. If it's not, it's likely a permissions issue.

benniblot commented 1 year ago

yeah it's checking everything, the stats show up as well. I'll take a lot at the permissions for the log file. What could be the problem with the gotify notifications tho?

benniblot commented 1 year ago

logging works now, the only issue that persists now are the notifications

aetaric commented 1 year ago

Looks like gotify is missing from notifications/notifications.go, so the client never gets built during a run. I've added it to the list for 3.1.2.

benniblot commented 1 year ago

I'll try it once the new version is out, thanks for your help :)