Skip to content

How to start docker with default docker-compose.yml from README.md without issues. #75

@kopax

Description

@kopax

Within the container, I have:

root@0dfdc7f74c83:/config# ls -altr
total 12
-rwxrwxrwx 1 abc  users  183 Sep 21 23:59 config.yml
drwxrwxrwx 2 abc  users 4096 Sep 21 23:59 .

But it crash on startup with:

2020-09-22 00:09:05 DEBUG    manager                       Figuring out config load paths
2020-09-22 00:09:05 CRITICAL manager                       Failed to find configuration file config.yml
2020-09-22 00:09:05 INFO     manager                       Tried to read from: /run/s6/services/flexget, /root/.flexget, /root/.config/flexget
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/flexget/__init__.py", line 18, in main
    manager = Manager(args)
  File "/usr/lib/python3.7/site-packages/flexget/manager.py", line 147, in __init__
    self._init_config(create=False)
  File "/usr/lib/python3.7/site-packages/flexget/manager.py", line 611, in _init_config
    raise OSError('No configuration file found.')
OSError: No configuration file found.
2020-09-22 00:09:06 DEBUG    manager                       Figuring out config load paths
2020-09-22 00:09:06 CRITICAL manager                       Failed to find configuration file config.yml
2020-09-22 00:09:06 INFO     manager                       Tried to read from: /run/s6/services/flexget, /root/.flexget, /root/.config/flexget
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/flexget/__init__.py", line 18, in main
    manager = Manager(args)
  File "/usr/lib/python3.7/site-packages/flexget/manager.py", line 147, in __init__
    self._init_config(create=False)
  File "/usr/lib/python3.7/site-packages/flexget/manager.py", line 611, in _init_config
    raise OSError('No configuration file found.')
OSError: No configuration file found.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
2020-09-22 00:09:07 DEBUG    manager                       Figuring out config load paths
2020-09-22 00:09:07 CRITICAL manager                       Failed to find configuration file config.yml
2020-09-22 00:09:07 INFO     manager                       Tried to read from: /run/s6/services/flexget, /root/.flexget, /root/.config/flexget
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/flexget/__init__.py", line 18, in main
    manager = Manager(args)
  File "/usr/lib/python3.7/site-packages/flexget/manager.py", line 147, in __init__
    self._init_config(create=False)
  File "/usr/lib/python3.7/site-packages/flexget/manager.py", line 611, in _init_config
    raise OSError('No configuration file found.')
OSError: No configuration file found.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
root@master-letort-01:/srv/nas/flexget/config# ls -altr
total 12
drwxrwxrwx 3 root  root  4096 Sep 21 23:26 ..
-rwxrwxrwx 1 kopax kopax  183 Sep 21 23:59 config.yml
-rwxrwxrwx 1 kopax kopax    0 Sep 22 00:07 .password-lock             # <-- created with touch and empty
drwxrwxrwx 2 kopax kopax 4096 Sep 22 00:07 .

This is /config/config.yaml:

web_server: yes

schedules:
  - tasks: '*'
    interval:
      minutes: 1

tasks:
  test task:
    rss: https://rss.example.com/myfeed.rss
    series:
      - My Favorite Show

I expected it to start without errors.

This is the command used to start the container with the following command:

docker \
  -e FLEXGET_LOG_LEVEL=debug \
  -e PUID=1000 \
  -e PGID=1000 \
   -e TORRENT_PLUGIN=transmission \
  -e TZ=Europe/Paris \
  -e WEB_PASSWD=<secret> \
  -v /srv/transmission/downloads:/downloads:rw \
  -v /srv/flexget/config:/config:rw \
   --net bridge \
  -p 31770:5050/tcp \
  --name \
  cpoppema/docker-flexget:latest

Also, in the UI, it says to create the .password-lock using flexget cli:

The Web UI is protected by a login, you need to either set the WEB_PASSWD environment variable or setup a user after starting this docker:

Connect with the running docker:

docker exec -it flexget bash

If your configuration file is named "config.yml" you can setup a password like this:

flexget -c /config/config.yml web passwd <some_password>

I have tried to execute this within the running cpoppema/docker-flexget:latest container and:

bash: flexget: command not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions