hassio-addons: šŸ› [qbittorrent] Unable to get qbitmanage to run

Description

Hi there, thanks for incorporating qbitmange into the addon. Iā€™m struggling to get it to run however (Iā€™m aware of the apprise connection failing but thatā€™s a non-issue). Itā€™s giving me ā€˜expected str, bytes or os.PathLike object, not NoneTypeā€™ at the end of itā€™s logs before ending the scheduled run (doesnt even attempt to do what Iā€™ve asked of it).

Reproduction steps

Configure qbitmanage and attempt to run it.

Addon Logs

|====================================================================================================|
|                           _     _ _                                                                |
|                          | |   (_) |                                                               |
|                      __ _| |__  _| |_   _ __ ___   __ _ _ __   __ _  __ _  ___                     |
|                     / _` | '_ \| | __| | '_ ` _ \ / _` | '_ \ / _` |/ _` |/ _ \                    |
|                    | (_| | |_) | | |_  | | | | | | (_| | | | | (_| | (_| |  __/                    |
|                     \__, |_.__/|_|\__| |_| |_| |_|\__,_|_| |_|\__,_|\__, |\___|                    |
|                        | |         ______                            __/ |                         |
|                        |_|        |______|                          |___/                          |
|     Version: 4.0.6 (Docker)                                                                        |
[08:32:57] INFO: Starting NGinx...
|     Platform: Linux-6.1.63-haos-x86_64-with                                                        |
|     Scheduled Mode: Running every 24 Hours.                                                        |
|      Startup Delay: Initial Run will start after 30 seconds                                        |
|====================================================================================================|
|                                            Starting Run                                            |
|====================================================================================================|
| Locating config...                                                                                 |
| Using /config/qbit_manage/qbit_manage.yml as config                                                |
| Commands found in /config/qbit_manage/qbit_manage.yml, ignoring env variables and using config commands instead. |
| Connecting to Apprise...                                                                           |
| Config Error: apprise sub-attribute notify_url not found                                           |
| apprise sub-attribute notify_url added to config                                                   |
| Apprise Connection Failed                                                                          |
| Connecting to Notifiarr...                                                                         |
| Notifiarr Connection Successful                                                                    |
| Connecting to BHD API...                                                                           |
| BHD Connection Successful                                                                          |
| |====================================================================================================|
|                           _     _ _                                                                |
|                          | |   (_) |                                                               |
|                      __ _| |__  _| |_   _ __ ___   __ _ _ __   __ _  __ _  ___                     |
|                     / _` | '_ \| | __| | '_ ` _ \ / _` | '_ \ / _` |/ _` |/ _ \                    |
|                    | (_| | |_) | | |_  | | | | | | (_| | | | | (_| | (_| |  __/                    |
|                     \__, |_.__/|_|\__| |_| |_| |_|\__,_|_| |_|\__,_|\__, |\___|                    |
|                        | |         ______                            __/ |                         |
|                        |_|        |______|                          |___/                          |
|     Version: 4.0.6 (Docker)                                                                        |
[08:32:57] INFO: Starting NGinx...
|     Platform: Linux-6.1.63-haos-x86_64-with                                                        |
|     Scheduled Mode: Running every 24 Hours.                                                        |
|      Startup Delay: Initial Run will start after 30 seconds                                        |
|====================================================================================================|
|                                            Starting Run                                            |
|====================================================================================================|
| Locating config...                                                                                 |
| Using /config/qbit_manage/qbit_manage.yml as config                                                |
| Commands found in /config/qbit_manage/qbit_manage.yml, ignoring env variables and using config commands instead. |
| Connecting to Apprise...                                                                           |
| Config Error: apprise sub-attribute notify_url not found                                           |
| apprise sub-attribute notify_url added to config                                                   |
| Apprise Connection Failed                                                                          |
| Connecting to Notifiarr...                                                                         |
| Notifiarr Connection Successful                                                                    |
| Connecting to BHD API...                                                                           |
| BHD Connection Successful                                                                          |
| expected str, bytes or os.PathLike object, not NoneType                                            |
| Exiting scheduled Run.                                                                             |
|====================================================================================================|
|                                            Finished Run                                            |
|                                         Run Time: 0:00:03                                          |
|                     Current Time: 08:33 | 24 Hours until the next run at 08:33                     |
|====================================================================================================|                                         |
| Exiting scheduled Run.                                                                             |
|====================================================================================================|
|                                            Finished Run                                            |
|                                         Run Time: 0:00:03                                          |
|                     Current Time: 08:33 | 24 Hours until the next run at 08:33                     |
|====================================================================================================|

Architecture

No response

OS

HAos

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 20 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Hi, there is a big list of environment variables : https://github.com/StuffAnThings/qbit_manage/wiki/Docker-Installation

You can add them (QBT_SCHEDULE for your need) in the /addon_configs/xxx-qbittorrent/config.yaml file. It should be read and passed at boot to qbit_manage according to https://github.com/alexbelgium/hassio-addons/wiki/Addā€ons-feature-:-add-env-variables

Works perfectly now, thank you

Should be good in test2

reopening because it seems like the latest update removed the scheduled run feature? Now has ā€œRun Mode: Script will exit after completion.ā€ instead of what used to be running every 24 hours

Algood, thereā€™s no rush. Was just making sure the bot didnā€™t make as stale is all

On Fri, 22 Dec 2023, 07:03 Alexandre, @.***> wrote:

Iā€™m pushing the reverted version of the add-on soon, but although mullvad vpn was working for me on the new version, it is not working on the reverted oneā€¦ Trying to understand why

ā€” Reply to this email directly, view it on GitHub https://github.com/alexbelgium/hassio-addons/issues/1131#issuecomment-1866722821, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUMWJOCC3WPUMWTZF7PUZPTYKR2WZAVCNFSM6AAAAABATWOEPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRWG4ZDEOBSGE . You are receiving this because you authored the thread.Message ID: @.***>

Well from a quick Google search it looks like a misconfigured python element which should be on the addonā€¦ But first iā€™ll have to revert the addon to itā€™s previous state before reimplementing this features (bit it should be fast)

Thatā€™s algood, I can upload my add-on settings and the config for qbitmanage is still the same as Iā€™ve already uploaded so itā€™ll be easier to replicate. I assume itā€™s more something to do with my machine than the addon to be fair.

On Sat, 16 Dec 2023, 10:16 Alexandre, @.***> wrote:

Iā€™m currently unavailable for a couple days but Iā€™ll check when Iā€™ll have reverted the upstream version to the Linuxserver one. The key element is that to really solve it I would need to find a way my to replicate it. Iā€™ll check when Iā€™m back

ā€” Reply to this email directly, view it on GitHub https://github.com/alexbelgium/hassio-addons/issues/1131#issuecomment-1858498394, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUMWJOABDI2DDAK3GYCIVUDYJS4ZDAVCNFSM6AAAAABATWOEPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYGQ4TQMZZGQ . You are receiving this because you authored the thread.Message ID: @.***>