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: @.***>