Docker filebot-watcher not working

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
foo
Posts: 14
Joined: 04 Mar 2019, 08:33

Docker filebot-watcher not working

Post by foo »

Hi,

I've gone to https://github.com/filebot/filebot-docker and converted the docker instructions for filebot-watcher to docker-compose.

This is what I've got:

Code: Select all

version: '3'
services:
  filebot:
    image: rednoah/filebot:watcher
    container_name: filebot
    volumes:
      - ./config:/data
      - /home/$USER/files:/files
      - /home/$USER/plex:/plex
    command: /files --output /plex --action symlink --conflict skip -no-xattr -non-strict --encoding utf8 --def seriesDB="TheMovieDB::TV" movieFormat="{plex}" seriesFormat="{plex}" animeFormat="{plex}" musicFormat="{plex}" music=y unsorted=y
    environment:
      - PUID=1000
      - PGID=1000

When run, all I get is

Code: Select all

$ docker-compose up
Creating network "filebot_default" with the default driver
Creating filebot ... done
Attaching to filebot
filebot    | Setting up watches.
filebot    | Watches established.

When changing files in the watch directory, there is no action taken by filebot.

Any idea what could be causing this?

Thanks!
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker filebot-watcher not working

Post by rednoah »

Well, you could go through the script to see what it's doing / not doing:
https://github.com/filebot/filebot-dock ... ot-watcher


:idea: You can replace #!/bin/sh with #!/bin/sh -xu to make the shell print each command before executing. That way you can see what it's doing.


:idea: Note that the filebot-watcher is not supposed to act immediately on changes, but wait SETTLE_DOWN_TIME (default: 10 minutes) to see if there's any files that are in the process of being written, meaning it will only process files once they have been not-modified for a little while.
:idea: Please read the FAQ and How to Request Help.
foo
Posts: 14
Joined: 04 Mar 2019, 08:33

Re: Docker filebot-watcher not working

Post by foo »

//EDIT: Will wait for 10 minutes first, thanks for that
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker filebot-watcher not working

Post by rednoah »

Might not be obvious without looking at the code. I'll add additional logging for next release.
:idea: Please read the FAQ and How to Request Help.
foo
Posts: 14
Joined: 04 Mar 2019, 08:33

Re: Docker filebot-watcher not working

Post by foo »

What I'm confused about is that there are no logs displaying at all (license etc), except for

Code: Select all

filebot    | Setting up watches.
filebot    | Watches established.
I'm assuming this won't be working, and I'm unfortunately not technical enough to review shell scripts.
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker filebot-watcher not working

Post by rednoah »

The filebot-watcher is not suitable for non-technical end-users. It's just ~5 lines of shell script, starting with inotifywait (standard Linux command unrelated to FileBot) which prints the messages you see:

Code: Select all

Setting up watches.
Watches established.

No FileBot-specific code is executed until filebot is executed:
https://github.com/filebot/filebot-dock ... atcher#L18
:idea: Please read the FAQ and How to Request Help.
foo
Posts: 14
Joined: 04 Mar 2019, 08:33

Re: Docker filebot-watcher not working

Post by foo »

I set up https://github.com/jlesage/docker-filebot and after changing the amc interval from 1800 seconds to 10 seconds it started to work exactly as I had wanted it to--wouldn't have been possible without you pointing me in the right direction, so thank you!

filebot-watcher shows no signs of life even after 10 minutes, so I am assuming that I stuffed up the configuration in a non-trivial way.
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker filebot-watcher not working

Post by rednoah »

Yes, the https://github.com/jlesage/docker-filebot container is a completely different beast. Probably your best choice if you need an all-in-one solution.
:idea: Please read the FAQ and How to Request Help.
Post Reply