Cloudbox / autoscan

Autoscan replaces the default Plex and Emby behaviour for picking up changes on the file system.
MIT License
594 stars 49 forks source link

Not Triggering Plex Scan #197

Closed royaltongue closed 1 year ago

royaltongue commented 1 year ago

From docker-compose.yml:

  plexautoscan:
    container_name: plexautoscan
    image: cloudb0x/autoscan
    environment:
      - PUID=1008
      - PGID=1003
      - AUTOSCAN_VERBOSITY=1
    volumes:
      - G:/DockerContainerStorage/plexautoscan:/config
      - G:/data:/data:ro
      - G:/drivepool.anchor:/drivepool.anchor
    ports:
      - 3030:3030
    hostname: plexautoscan
    networks:
      - caddy_net
    restart: unless-stopped
  plex:
    image: linuxserver/plex
    container_name: plex
    environment:
      - TZ=US/New_York
      - PLEX_CLAIM=[redacted]
      - ADVERTISE_IP=http://192.168.1.24:32400/
      - PUID=1001
      - PGID=1003
      - UMASK=002
      - VERSION=docker
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
    volumes:
      - G:/DockerContainerStorage/plex/config:/config
      - G:/data/media:/data/media
      - ~/Documents/plex_transcode:/data/plex_transcode
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]
    ports:
      - 32400:32400
    hostname: plex
    networks:
      - caddy_net
    restart: unless-stopped
  sonarr1080:
    container_name: sonarr1080
    image: linuxserver/sonarr:latest
    environment:
      - PUID=1003
      - PGID=1003
      - UMASK=002
      - TZ=America/New_York
    volumes:
      - G:/DockerContainerStorage/sonarr1080/config:/config
      - G:/data:/data
    ports:
      - 28989:8989
    hostname: sonarr1080
    networks:
      - caddy_net
    restart: unless-stopped

And my config.yml

anchors:
  - /drivepool.anchor

authentication:
  username: [redacted]
  password: [redacted]

port: 3030

minimum-age: 10m

triggers:
  manual:
    priority: 3
  radarr:
    - name: radarr4K
      priority: 2
    - name: radarr1080
      priority: 2
  sonarr:
    - name: sonarr4K
      priority: 1
    - name: sonarr1080
      priority: 2

targets:
  plex:
    - url: [redacted]
      token: [redacted]

And from the logs:

User uid:    1008

User gid:    1003

-------------------------------------

[cont-init.d] 10-adduser: exited 0.

[cont-init.d] done.

[services.d] starting services

[services.d] done.

Feb  6 18:12:46 INF Initialised processor anchors=["/drivepool.anchor"] min_age=10m0s

Feb  6 18:12:46 INF Starting server on port 3030

Feb  6 18:12:46 INF Initialised triggers bernard=0 inotify=0 lidarr=0 manual=1 radarr=2 sonarr=2

Feb  6 18:12:46 DBG Plex version: 1.30.2.6563-3d4dc0cce target=plex url=https://[redacted]

Feb  6 18:12:46 DBG Retrieved libraries libraries=[{"ID":1,"Name":"4K Movies","Path":"/data/media/4K/Movies/"},{"ID":2,"Name":"HDSD Movies","Path":"/data/media/HDSD/Movies/"},{"ID":3,"Name":"4K TV","Path":"/data/media/4K/Shows/"},{"ID":4,"Name":"HDSD Shows","Path":"/data/media/HDSD/Shows/"}] target=plex url=https://[redacted]

Feb  6 18:12:46 INF Initialised targets autoscan=0 emby=0 jellyfin=0 plex=1

Feb  6 18:12:46 INF Initialised version="1.3.0 (5c66ab8@1646220421)"

Feb  6 18:12:46 INF Processor started

Feb  6 18:16:33 DBG Request processed duration=0.034301 id=cfgk80a7b44aufiora6g method=POST status=401 url=/triggers/sonarr1080

Feb  6 18:27:33 DBG Request processed duration=0.0128 id=cfgkd5a7b44aufiora70 method=POST status=401 url=/triggers/sonarr1080

I can start the download in sonarr, watch it go to sabnzbd and finish downloading, then right as the file finishes being processed by sonarr, PAS outputs that the request was processed. Firstly, I thought it was supposed to wait 10 minutes since I specified minimum-age: 10m, but that doesn't seem to have any affect.

Also, no matter how long I wait, Plex never begins a scan and does not pull in the new files.

Any ideas?

royaltongue commented 1 year ago

Turns out this was entirely my fault -.-

At some points AFTER configuring all of the webhooks in Sonarr/Radarr, I mistakenly added an extra character to username: within config.yml. After removing that extra character and recreating the container it was running it, the webhooks work perfectly now