hassio-addons: ๐Ÿ› [unpackerr] Unable to change default Folder path

Which addon?

  • Addon name : unpackerr
  • Addon version : 0.10.1

Describe the bug

I am unable to change the default watch folders according to the official unpackerr instructions. My config file is in /config/unpackerr.conf and I took the example file from the parent repo, and only changed the folder.path and folder.extract_path options, which are both set to /media.

My theory is that the addon environmental variables of UN_FOLDER_0_PATH and UN_FOLDER_0_EXTRACT_PATH are overriding the config file, since the log shows the config file is read. The way the addon is currently setup, there is no way to change the default values without a fork.

To Reproduce

  1. Save config file
  2. Start addon
  3. View log

Expected: Logs to show config file read, and folder /media to be scanned. Actual: Logs show config file read, but folder still remains set to default Env values of /share/โ€ฆ

Full addon log

022/10/04 09:56:36.872149 start.go:128: Unpackerr v0.10.0 Starting! (PID: 7) 2022-10-04 09:56:36.869420559 -0400 EDT m=+0.002993323
2022/10/04 09:56:36.872312 logs.go:210: ==> GoLift Discord: https://golift.io/discord <==
2022/10/04 09:56:36.872333 logs.go:211: ==> Startup Settings <==
2022/10/04 09:56:36.872365 sonarr.go:87:  => Sonarr Config: 0 servers
2022/10/04 09:56:36.872382 radarr.go:88:  => Radarr Config: 0 servers
2022/10/04 09:56:36.872397 lidarr.go:87:  => Lidarr Config: 0 servers
2022/10/04 09:56:36.872412 readarr.go:87:  => Readarr Config: 0 servers
2022/10/04 09:56:36.872485 folder.go:69:  => Folder Config: 1 path: /share/downloads_packed, extract to: /share/downloads_unpacked (delete after:0s, delete orig:false, log file: true, move back:false, event buffer:20000)
2022/10/04 09:56:36.872511 logs.go:217:  => Using Config File: /config/unpackerr.conf
2022/10/04 09:56:36.872527 logs.go:218:  => Parallel: 1
2022/10/04 09:56:36.872541 logs.go:219:  => RAR Passwords: 0
2022/10/04 09:56:36.872558 logs.go:220:  => Interval: 2m
2022/10/04 09:56:36.872591 logs.go:221:  => Start Delay: 1m
2022/10/04 09:56:36.872616 logs.go:222:  => Retry Delay: 5m, max: 3
2022/10/04 09:56:36.872630 logs.go:223:  => Debug / Quiet: true / false
2022/10/04 09:56:36.872689 logs.go:226:  => Directory & File Modes: 0755 & 0644
2022/10/04 09:56:36.872708 webhook.go:229:  => Webhook Configs: 0 URLs
2022/10/04 09:56:36.872724 cmdhook.go:124:  => Command Hook Configs: 0 cmds
2022/10/04 09:56:36.873120 folder.go:199: [ERROR] Folder (cannot watch): stat /share/downloads_packed: no such file or directory
2022/10/04 09:57:36.875959 logs.go:143: [Unpackerr] Queue: [0 waiting] [0 queued] [0 extracting] [0 extracted] [0 imported] [0 failed] [0 deleted]

Full addon config

N/A this addon has no HA config, but here is my /config/unpackerr.conf file.

##      Unpackerr Example Configuration File      ##
## The following values are application defaults. ##
## Environment Variables may override all values. ##
####################################################

# [true/false] Turn on debug messages in the output. Do not wrap this in quotes.
# Recommend trying this so you know what it looks like. I personally leave it on.
debug = true

# Disable writing messages to stdout. This silences the app. You should set a log
# file below if you set this to true. Recommended when starting with systemctl.
quiet = false

# Setting activity to true will silence all app queue log lines with only zeros.
# Set this to true when you want less log spam.
activity = false

# The application queue data is logged on an interval. Adjust that interval with this setting.
# Default is a minute. 2m, 5m, 10m, 30m, 1h are also perfectly acceptable.
log_queues = "1m"

# Write messages to a log file. This is the same data that is normally output to stdout.
# This setting is great for Docker users that want to export their logs to a file.
# The alternative is to use syslog to log the output of the application to a file.
# Default is no log file; this is unset. log_files=0 turns off auto-rotation.
# Default files is 10 and size(mb) is 10 Megabytes; both doubled if debug is true.
# Windows paths must use two backslashes: "C:\\Some\\Path\\Unpacker.log" (true everywhere).
#log_file = "/downloads/unpackerr.log"
log_files = 10
log_file_mb = 10

# How often to poll sonarr and radarr.
# Recommend 1m-5m. Uses Go Duration.
interval = "2m"

# How long an item must be queued (download complete) before extraction will start.
# One minute is the historic default and works well. Set higher if your downloads
# take longer to finalize (or transfer locally). Uses Go Duration.
start_delay = "1m"

# How long to wait before removing the history for a failed extraction.
# Once the history is deleted the item will be recognized as new and
# extraction will start again. Uses Go Duration.
retry_delay = "5m"

# How many files may be extracted in parallel. 1 works fine.
# Do not wrap the number in quotes. Raise this only if you have fast disks and CPU.
parallel = 1

# Use these configurations to control the file modes used for newly extracted
# files and folders. Recommend 0644/0755 or 0666/0777.
file_mode = "0644"
dir_mode = "0755"

##-Notes-#######-READ THIS!!!-##################################################
## The following sections can be repeated if you have more than one Sonarr,   ##
## Radarr or Lidarr, Readarr, Folder, Webhook, or Command Hook.               ##
## You MUST uncomment the [[header]] and api_key at a minimum for Starr apps. ##
################################################################################

#[[sonarr]]
#  url = "http://127.0.0.1:8989"
#  api_key = "0123456789abcdef0123456789abcdef"
## File system path where downloaded Sonarr items are located.
#  paths = ["/downloads"]
## Default protocols is torrent. Alternative: "torrent,usenet"
#  protocols = "torrent"
## How long to wait for a reply from the backend.
#  timeout = "10s"
## If you use this app with NZB you may wish to delete archives after extraction.
## General recommendation is: do not enable this for torrent use.
## Setting this to true deletes the entire original download folder after import.
#  delete_orig = false

#[[radarr]]
#  url = "http://127.0.0.1:7878"
#  api_key = "0123456789abcdef0123456789abcdef"
## File system path where downloaded Radarr items are located.
#  paths = ["/downloads"]
## Default protocols is torrents. Alternative: "torrent,usenet"
#  protocols = "torrent"
## How long to wait for a reply from the backend.
#  timeout = "10s"
## If you use this app with NZB you may wish to delete archives after extraction.
## General recommendation is: do not enable this for torrent use.
## Setting this to true deletes the entire original download folder after import.
#  delete_orig = false

#[[lidarr]]
#  url = "http://127.0.0.1:8686"
#  api_key = "0123456789abcdef0123456789abcdef"
## File system path where downloaded Lidarr items are located.
#  paths = ["/downloads"]
## Default protocols is torrent. Alternative: "torrent,usenet"
#  protocols = "torrent"
## How long to wait for a reply from the backend.
#  timeout = "10s"
## If you use this app with NZB you may wish to delete archives after extraction.
## General recommendation is: do not enable this for torrent use.
## Setting this to true deletes the entire original download folder after import.
#  delete_orig = false

#[[readarr]]
#  url = "http://127.0.0.1:8787"
#  api_key = "0123456789abcdef0123456789abc"
## File system path where downloaded Readarr items are located.
#  paths = ["/downloads"]
## Default protocols is torrent. Alternative: "torrent,usenet"
#  protocols = "torrent"
## How long to wait for a reply from the backend.
#  timeout = "10s"
## If you use this app with NZB you may wish to delete archives after extraction.
## General recommendation is: do not enable this for torrent use.
## Setting this to true deletes the entire original download folder after import.
#  delete_orig = false


##################################################################################
### ###  STOP HERE ### STOP HERE ### STOP HERE ### STOP HERE #### STOP HERE  ### #
### Only using Starr apps? The things above. The below configs are OPTIONAL. ### #
##################################################################################

##-Folders-#######################################################################
## This application can also watch folders for things to extract. If you copy a ##
## subfolder into a watched folder (defined below) any extractable items in the ##
## folder will be decompressed. This has nothing to do with Starr applications. ##
##################################################################################
[[folder]]
## Windows paths must use two backslashes: "C:\\Some\\Folder\\To\\Watch"
path = "/media"
## Path to extract files to. The default (leaving this blank) is the same as `path` (above).
extract_path = "/media"
## Delete extracted or original files this long after extraction. Set to 0 to disable all deletes. Uses Go Duration.
#  delete_after = "10m"
## Delete extracted files after successful extraction? true/false, no quotes. Honors delete_after.
#  delete_files = false
## Delete original items after successful extraction? true/false, no quotes. Honors delete_after.
#  delete_original = false
## Disable extraction log (unpackerred.txt) file creation? true/false, no quotes.
#  disable_log = false
## Move extracted files into original folder? If false, files go into an _unpackerred folder.
#  move_back = false


################
### Webhooks ###
################
# Sends a webhook when an extraction queues, starts, finishes, and/or is deleted.
# Created to integrate with notifiarr.com.
# Also works natively with Discord.com, Telegram.org, and Slack.com webhooks.
# Can possibly be used with other services by providing a custom template_path.
###### Don't forget to uncomment [[webhook]] and url at a minimum !!!!
#[[webhook]]
#  url    = "https://notifiarr.com/api/v1/notification/unpackerr/api_key_from_notifiarr_com"
#  name   = ""    # Set this to hide the URL in logs.
#  silent = false # do not log success (less log spam)
#  events = [0]   # list of event ids to include, 0 == all.
## Advanced Optional Webhook Configuration
#  nickname      = ""    # Used in Discord and Slack templates as bot name, in Telegram as chat_id.
#  channel       = ""    # Also passed into templates. Used in Slack templates for destination channel.
#  exclude       = []    # list of apps to exclude, ie. ["radarr", "lidarr"]
#  template_path = ""    # Override internal webhook template for discord.com or other hooks.
#  template      = ""    # Override automatic template detection. Values: notifiarr, discord, telegram, gotify, pushover, slack
#  ignore_ssl    = false # Set this to true to ignore the SSL certificate on the server.
#  timeout       = "10s" # You can adjust how long to wait for a server response.
#  content_type  = "application/json" # If your custom template uses another MIME type, set this.


#####################
### Command Hooks ###
#####################
# Executes a script or command when an extraction queues, starts, finishes, and/or is deleted.
# All data is passed in as environment variables. Try /usr/bin/env to see what variables are available.
###### Don't forget to uncomment [[cmdhook]] and url at a minimum !!!!
#[[cmdhook]]
#  command = "/my/cool/app" # Path to command or script.
#  shell   = false # Runs the command inside /bin/sh ('nix) or cmd.exe (Windows).
#  name    = ""    # Provide an optional name for logging.
#  silent  = false # Hides command output from logs.
#  events  = [0]   # list of event ids to include, 0 == all.
## Optional Command Hook Configuration
#  exclude       = []    # list of apps to exclude, ie. ["radarr", "lidarr"]
#  timeout       = "10s" # You can adjust how long to wait for a server response.

System

Home Assistant 2022.9.7 Supervisor 2022.09.1 Operating System 9.0 Frontend 20220907.2 - latest

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (14 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks!

Perhaps Iโ€™ll switch the upstream image to https://hub.docker.com/layers/hotio/unpackerr to allow it to use bash and change userโ€ฆ

Hi, no sorry, Iโ€™ve moved on from using unpackerr as I couldnโ€™t find a way of working it into my system properly

On Wed, 5 Oct 2022, 16:45 Alexandre, @.***> wrote:

@hacshacdgacs https://github.com/hacshacdgacs hi, are you still using unpackerr? Is it working as expected? Thanks!

โ€” Reply to this email directly, view it on GitHub https://github.com/alexbelgium/hassio-addons/issues/502#issuecomment-1267895758, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUMWJOD35AMDQLS5KH4EM73WBT2UHANCNFSM6AAAAAAQ4TP4HE . You are receiving this because you were mentioned.Message ID: @.***>