Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Fresh Installation of the docker image fails to launch #282

Closed
AN1MATEK opened this issue May 3, 2023 · 6 comments · Fixed by #301
Closed

[Bug]: Fresh Installation of the docker image fails to launch #282

AN1MATEK opened this issue May 3, 2023 · 6 comments · Fixed by #301
Assignees
Labels
bug Something isn't working status:added-to-develop Feature Request or Bug Fix is in Develop

Comments

@AN1MATEK
Copy link

AN1MATEK commented May 3, 2023

Describe the Bug

After installing the docker image and initializing the configuration file, the main script seems to meet a critical error. It calls an internal function.

Config

commands:
  # The commands defined below will IGNORE any commands used in command line and docker env variables.
  dry_run: true
  cross_seed: false
  recheck: false
  cat_update: false
  tag_update: true
  rem_unregistered: true
  tag_tracker_error: false
  rem_orphaned: true
  tag_nohardlinks: true
  skip_cleanup: false
settings:
  force_auto_tmm: false
  tracker_error_tag: issue
  ignoreTags_OnUpdate: # When running tag-update function, it will update torrent tags for a given torrent even if the torrent has at least one or more of the tags defined here. Otherwise torrents will not be tagged if tags exist.
    - noHL
    - issue
    - cross-seed
  nohardlinks_tag: noHL
cat_change:
tracker:
  # Mandatory
  # Tag Parameters
  # <Tracker URL Keyword>:    # <MANDATORY> This is the keyword in the tracker url
  # <MANDATORY> Set tag name. Can be a list of tags or a single tag
  #   tag: <Tag Name>
  # <OPTIONAL> Will set the torrent Maximum share ratio until torrent is stopped from seeding/uploading. -2 means the global limit should be used, -1 means no limit.
  #   max_ratio: 5.0
  # <OPTIONAL> Will set the torrent Maximum seeding time (min) until torrent is stopped from seeding. -2 means the global limit should be used, -1 means no limit.
  #   max_seeding_time: 129600
  # <OPTIONAL> Will ensure that noHL torrents from this tracker are not deleted by cleanup variable if torrent has not yet met the minimum seeding time (min).
  #   min_seeding_time: 2000
  # <OPTIONAL> Will limit the upload speed KiB/s (KiloBytes/second) (-1 means no limit)
  #   limit_upload_speed: 150
  # <OPTIONAL> Set this to the notifiarr react name. This is used to add indexer reactions to the notifications sent by Notifiarr
  #   notifiarr: <notifiarr indexer>
  torrentleech:
    tag: TorrentLeech
  digitalcore:
    tag: DigitalCore
  empirehost:
    tag: IPTorrents
  cinemaz:
    tag: CinemaZ
  oldtoons:
    tag: Old Toons
  speed.connecting:
    tag: Speed.CD
  other:
    tag: other
apprise:
notifiarr:
webhooks:
bhd:
qbt:
  host: 10.1.1.5:8180  # Port is indeed 8180
  user: qbt
  pass: %PASSWORD%
directory:
  # Do not remove these
  # Cross-seed var: </your/path/here/>  # Output directory of cross-seed
  # root_dir var: </your/path/here/>  # Root downloads directory used to check for orphaned files, noHL, and RecycleBin.
  # <OPTIONAL> remote_dir var: </your/path/here/>  # Path of docker host mapping of root_dir.
  # Must be set if you're running qbit_manage locally and qBittorrent/cross_seed is in a docker
  # <OPTIONAL> recycle_bin var: </your/path/here/>   # Path of the RecycleBin folder. Default location is set to remote_dir/.RecycleBin
  # <OPTIONAL> torrents_dir var: </your/path/here/>  # Path of the your qbittorrent torrents directory. Required for `save_torrents` attribute in recyclebin

  cross_seed: /downloads/.cross-seed
  root_dir: /downloads
  remote_dir: /downloads
  recycle_bin: /downloads/.RecycleBin
  torrents_dir: /BT_Backup
  orphaned_dir: /downloads/orphaned
cat:
  Movies: /downloads/movies
  TV Shows: /downloads/tv
nohardlinks:
  # Tag Movies/Series that are not hard linked
  # Mandatory to fill out directory parameter above to use this function (root_dir/remote_dir)
  # This variable should be set to your category name of your completed movies/completed series in qbit. Acceptable variable can be any category you would like to tag if there are no hardlinks found
  AutoDL:
    exclude_tags:
    cleanup: true
    max_ratio: 10.0
    max_seeding_time: 28.800
    limit_upload_speed: -1
    min_seeding_time: 21600
    resume_torrent_after_untagging_noHL: true
  Movies:
    exclude_tags:
      - cross-seed
    cleanup: false
    resume_torrent_after_untagging_noHL: true
  TV Shows:
    exclude_tags:
      - cross-seed
    cleanup: false
    resume_torrent_after_untagging_noHL: true
recyclebin:
  # Recycle Bin method of deletion will move files into the recycle bin (Located in /root_dir/.RecycleBin) instead of directly deleting them in qbit
  # By default the Recycle Bin will be emptied on every run of the qbit_manage script if empty_after_x_days is defined.
  enabled: true
  empty_after_x_days: 14
  save_torrents: true
  split_by_category: true
orphaned:
  # Orphaned files are those in the root_dir download directory that are not referenced by any active torrents.
  # Will automatically remove all files and folders in orphaned data after x days. (Checks every script run)
  # If this variable is not defined it, the orphaned data will never be emptied.
  # WARNING: Setting this variable to 0 will delete all files immediately upon script run!
  empty_after_x_days: 60
  exclude_patterns:
    - '**/.DS_Store'
    - '**/Thumbs.db'
    - '**/@eaDir'
    - '**/*.!qB'
    - '**/_unpackerred'

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

networks:
  default:
    name: download
    ipam:
      config:
        - subnet: 10.1.3.0/24
services:
  pia:
    networks:
      default:
        ipv4_address: 10.1.3.20
    image: thrnz/docker-wireguard-pia:latest
    container_name: pia
    volumes:
      # Auth token
      - ./pia/config:/pia/config
      # Forwarded port
      - ./pia/shared:/pia-shared
    cap_add:
      - NET_ADMIN
    environment:
      - TZ=${TZ}
      - UMASK=${UMASK}
      # Region (swiss|de-frankfurt)
      - LOC=de-frankfurt
      - USER=${OPENVPN_USER}
      - PASS=${OPENVPN_PASSWORD}
      - PORT_FORWARDING=1
      - PORT_FILE=/pia-shared/new_port
      - LOCAL_NETWORK=10.1.1.0/24
    healthcheck:
      test: ping -c 1 https://www.quad9.net/ || exit 1
      interval: 30s
      timeout: 10s
      retries: 3
    ports:
      - 8180:8180
    restart: unless-stopped

  sabnzbd:
    image: lscr.io/linuxserver/sabnzbd:latest
    container_name: nzb
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
      - UMASK=${UMASK}
    volumes:
      - ./nzb:/config
      - /mnt/WD/nzb:/nzb
      - /mnt/Backup/sabnzbd:/backup
    ports:
      - 8080:8080
    networks:
      default:
        ipv4_address: 10.1.3.11
    restart: unless-stopped

  qbittorrent:
    image: linuxserver/qbittorrent:latest        #libtorrentv1-release-4.5.0_v1.2.18-ls7
    container_name: qbt
    environment:
        - PUID=${PUID}
        - PGID=${PGID}
        - TZ=${TZ}
        - UMASK=${UMASK}
        - WEBUI_PORT=8180
    volumes:
        - ./qbt/config:/config
        - ./qbt/initd.qbt:/custom-cont-init.d
        - ./qbt/scripts:/scripts
        - ./pia/shared:/shared
        - /mnt/WD/torrent:/downloads
    restart: unless-stopped
    network_mode: service:pia

  cross-seed:
    image: crossseed/cross-seed:latest
    container_name: cs
    user: ${PGID}:${PUID}
    networks:
      default:
        ipv4_address: 10.1.3.12
    volumes:
      - ./cs:/config
      - /mnt/WD/torrent/.torrents:/torrents:ro # note that this volume can and should be mounted read-only
      - /mnt/WD/torrent/.cross-seed:/output
    command: daemon # this enables the daemon
    restart: unless-stopped

  autobrr:
    container_name: autobrr
    image: ghcr.io/autobrr/autobrr:latest
    restart: unless-stopped
    user: ${PGID}:${PUID}
    environment:
      - TZ=${TZ}
      - UMASK=${UMASK}
    volumes:
      - ./autobrr/config:/config
      - ./autobrr/logs:/logs
    ports:
      - 7474:7474
    networks:
      default:
        ipv4_address: 10.1.3.13

  qbit_manage:
    container_name: qbm
    image: bobokun/qbit_manage:latest
    user: ${PGID}:${PUID}
    volumes:
      - /home/pi/Containers/download/qbm:/config
      - /home/pi/Containers/download/qbm/config/qBittorrent/BT_backup:/BT_Backup
      - /mnt/WD/torrent:/downloads
    environment:
      - TZ=${TZ}
      - UMASK=${UMASK}
      - QBT_LOG_LEVEL=DEBUG
#      - QBT_DIVIDER==
#      - QBT_WIDTH=100
    networks:
      default:
        ipv4_address: 10.1.3.14
    restart: unless-stopped

Logs

<script src="https://gist.github.com/AN1MATEK/a8b9c68bcb4402e11ebd2c63eb7ad339.js"></script>

Screenshots

No response

Installation

Docker

Version Number

Ive tried many, but let's say v3.6.2

What branch are you on?

master

@AN1MATEK AN1MATEK added the bug Something isn't working label May 3, 2023
@bakerboy448
Copy link
Collaborator

You need to either populate the notifiarr and webhook sections or comment them out. They cannot be left blank

@AN1MATEK
Copy link
Author

AN1MATEK commented May 3, 2023

If I commend webhooks:, it get auto-added on the next run. The error is the same.

...
#apprise:
#notifiarr:
#webhooks:
#bhd:
...

webhooks:
  error:
  run_start:
  run_end:
  function:
    cross_seed:
    recheck:
    cat_update:
    tag_update:
    rem_unregistered:
    tag_tracker_error:
    rem_orphaned:
    tag_nohardlinks:
    cleanup_dirs:

Probably I should add that yesterday I was already with this topic in discord and couldn't get to a solution. Not that it helps a lot though.

@bobokun
Copy link
Collaborator

bobokun commented May 6, 2023

I can't seem to replicate this issue... I've tried removing everything. Yes it does populate webhooks with blank values but that shouldn't give any error.

Also your logs are not readable.

# apprise:
# notifiarr:
# webhooks:
# bhd:
webhooks:
  error:
  run_start:
  run_end:
  function:
    cross_seed:
    recheck:
    cat_update:
    tag_update:
    rem_unregistered:
    tag_tracker_error:
    rem_orphaned:
    tag_nohardlinks:
    cleanup_dirs:

bobokun added a commit that referenced this issue May 6, 2023
@bobokun bobokun added the status:added-to-develop Feature Request or Bug Fix is in Develop label May 6, 2023
@bobokun
Copy link
Collaborator

bobokun commented May 6, 2023

I've added additional error checking in develop branch. Please send me logs after you run the develop branhc

@AN1MATEK
Copy link
Author

AN1MATEK commented May 8, 2023

Hello bobokun,

Thank you for your time and effort. I actually did get it to work last week, but then I wasn't near my PC the whole weekend to report back.

It seems that the issue was a combination of many small errors. Changes I made:

  • Changed max_seeding_time: 28.800 to max_seeding_time: 28800
  • Added all my categories under cat:
  • apprise:, notifiarr: and bhd: should not be left blank but should be commented out completely/deleted. I get the exact same error when they are there.
  • I use http://10.1.1.5:8180 instead of just 10.1.1.5:8180.

For showing appreciation on your time, I went back and pasted this old config and used the develop branch. It points to the categories thing:

|====================================================================================================|
|                           _     _ _                                                                |
|                          | |   (_) |                                                               |
|                      __ _| |__  _| |_   _ __ ___   __ _ _ __   __ _  __ _  ___                     |
|                     / _` | '_ \| | __| | '_ ` _ \ / _` | '_ \ / _` |/ _` |/ _ \                    |
|                    | (_| | |_) | | |_  | | | | | | (_| | | | | (_| | (_| |  __/                    |
|                     \__, |_.__/|_|\__| |_| |_| |_|\__,_|_| |_|\__,_|\__, |\___|                    |
|                        | |         ______                            __/ |                         |
|                        |_|        |______|                          |___/                          |
|     Version: 3.6.2                                                                                 |
|     Scheduled Mode: Running every 24 Hours.                                                        |
|====================================================================================================|
|                                            Starting Run                                            |
|====================================================================================================|
| Locating config...                                                                                 |
| Using /config/config.yml as config                                                                 |
| Commands found in config.yml, ignoring env variables and using config commands instead.            |
| Config Error: Category AutoDL is defined under nohardlinks attribute                               |
| Exiting scheduled Run.                                                                             |
|====================================================================================================|
|                                            Finished Run                                            |
|                                         Run Time: 0:00:02                                          |
|                     Current Time: 10:36 | 24 Hours until the next run at 10:36                     |
|====================================================================================================|

It seems that the problem is solved. It is nice to see that thanks to this extra error-checking, other people will have an easier time. Huge thanks to all of you, but special thanks to bobokun :)

@AN1MATEK AN1MATEK closed this as completed May 8, 2023
@bakerboy448
Copy link
Collaborator

| Config Error: Category AutoDL is defined under nohardlinks attribute |

presumably had a category in noHL that was not in your category list in the config

@bobokun bobokun mentioned this issue May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status:added-to-develop Feature Request or Bug Fix is in Develop
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants