Page 1 of 1

filebot watcher looping

Posted: 02 Nov 2022, 01:34
by turtlejay
for some reason watcher is running over and over with no changes to the files. the following happens on repeat:

Code: Select all

Waiting 60 seconds for changes to settle down...
Run script [fn:amc] at [Wed Nov 02 01:29:46 GMT 2022]
Parameter: excludeList = .excludes
Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Argument[0]: /volume1/complete/tv
Use excludes: /volume1/media/.excludes (1053)
File does not exist: /volume1/complete/tv/Bluey.2018.S03E28.Stories.720p.WEB-IPT.mp4
File does not exist: /volume1/complete/tv/Bluey.2018.S03E35.Smoochy.Kiss.720p.WEB-IPT.mp4
File does not exist: /volume1/complete/tv/Welcome.to.Wrexham.S01E03.Rebuilding.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv
File does not exist: /volume1/complete/tv/Welcome.to.Wrexham.S01E06.Hamilton.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv
File does not exist: /volume1/complete/tv/Welcome.to.Wrexham.S01E04.Home.Opener.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv
File does not exist: /volume1/complete/tv/Bluey.2018.S03E27.Musical.Statues.720p.WEB-IPT.mp4
File does not exist: /volume1/complete/tv/Bluey.2018.S03E32.Tradies.720p.WEB-IPT.mp4
File does not exist: /volume1/complete/tv/Welcome.to.Wrexham.S01E01.Dream.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv
File does not exist: /volume1/complete/tv/Bluey.2018.S03E30.Turtleboy.720p.WEB-IPT.mp4
File does not exist: /volume1/complete/tv/Bluey.2018.S03E23.Family.Meeting.720p.WEB-IPT.mp4
File does not exist: /volume1/complete/tv/Bluey.2018.S03E29.Puppets.720p.WEB-IPT.mp4
File does not exist: /volume1/complete/tv/Bluey.2018.S03E33.Granny.Mobile.720p.WEB-IPT.mp4
File does not exist: /volume1/complete/tv/Bluey.2018.S03E37.The.Decider.720p.WEB-IPT.mp4
File does not exist: /volume1/complete/tv/Bluey.2018.S03E34.Space.720p.WEB-IPT.mp4
File does not exist: /volume1/complete/tv/Welcome.to.Wrexham.S01E02.Reality.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv
File does not exist: /volume1/complete/tv/Bluey.2018.S03E36.Dirt.720p.WEB-IPT.mp4
File does not exist: /volume1/complete/tv/Bluey.2018.S03E31.Onesies.720p.WEB-IPT.mp4
Skip short video: /volume1/complete/tv/Bluey.S01E49.1080p.WEB.h264-SALT/bluey.s01e49.1080p.web.h264-salt/Bluey.S01E49.1080p.WEB.h264-SALT/Bluey.S01E49.1080p.WEB.h264-SALT.mkv [PT7M17.984S]
Skip short video: /volume1/complete/tv/Bluey.S01E50.1080p.WEB.h264-SALT/bluey.s01e50.1080p.web.h264-salt/Bluey.S01E50.1080p.WEB.h264-SALT/Bluey.S01E50.1080p.WEB.h264-SALT.mkv [PT7M17.984S]
Skip short video: /volume1/complete/tv/Bluey.S01E51.1080p.WEB.h264-SALT/bluey.s01e51.1080p.web.h264-salt/Bluey.S01E51.1080p.WEB.h264-SALT/Bluey.S01E51.1080p.WEB.h264-SALT.mkv [PT7M8S]
No files selected for processing
Done ¯\_(ツ)_/¯
Waiting 60 seconds for changes to settle down...
script had been working fine.

Code: Select all

services:
  filebot:
    container_name: filebot-watcher
    image: rednoah/filebot:watcher
    restart: unless-stopped
    volumes:
      - /share/Download/FileBot:/data
      - /share/Download:/volume1
    command: /volume1/complete/tv --output /volume1/media --action duplicate --conflict auto

edit- ive tried deleting the excludes file and its still looking for these files that dont exist. ive even rebuilt the docker from scratch

Re: filebot watcher looping

Posted: 02 Nov 2022, 05:15
by rednoah
:?: Why does inotifywait continuously detect changes in your watch folder? Are you continuously making changes in the watch folder?


:idea: File does not exist suggests that the given file was there when the amc script started running but was then moved or deleted by another process, or is just invisible / inaccessible due to permissions. The filebot-watcher bash script notably calls the amc script on the complete input folder (and not just a specific newly added file) for each run, so the given file path that "does not exist" must have been in the directory listing of its parent folder.


:idea: Please read [DOCS] How do I use the rednoah/filebot:watcher docker container? for general help and usage information.

Re: filebot watcher looping

Posted: 02 Nov 2022, 11:20
by turtlejay
i had made no changes to this folder at all during this loop. in fact before setting up the watch folders i had just deleted the entire folder and .excludes file in order to try to eliminate the loop. is there another file somewhere it pulls info from?

Re: filebot watcher looping

Posted: 02 Nov 2022, 13:55
by rednoah
You could modify the bash script in the container and add additional debug logging so that you can see what files trigger inotifywait repeatedly:

Code: Select all

inotifywait -m "$1" -e create -e moved_to -e modify --exclude '/[.@]' --format '%w%f' $INOTIFYWAIT_OPTS | stdbuf -oL uniq | while read -r FILE; do
    echo "$FILE"
done