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

🐛 [readarr] addon not starting #1083

Closed
PubDeer opened this issue Nov 21, 2023 · 13 comments
Closed

🐛 [readarr] addon not starting #1083

PubDeer opened this issue Nov 21, 2023 · 13 comments
Labels
bug Something isn't working

Comments

@PubDeer
Copy link

PubDeer commented Nov 21, 2023

Description

Readarr gives an error after installing and opening. I'm on a Home Assistant Yellow and this is my first time using HA, so please forgive me if I made any obvious errors.

Reproduction steps

1. Install add-on
2. Start add-on
3. Check the log

Addon Logs

Starting...
/etc/cont-init.d/00-banner.sh: executing

-----------------------------------------------------------
 Add-on: Readarr
 Book manager and automation
-----------------------------------------------------------
 Add-on version: 0.3.10.2287-5
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.1  (aarch64 / yellow)
 Home Assistant Core: 2023.11.2
 Home Assistant Supervisor: 2023.11.3
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons 
-----------------------------------------------------------
 Defining permissions for main user : 
User UID: 0
User GID : 0
-----------------------------------------------------------
/etc/cont-init.d/00-config_location.sh: executing
[20:51:44] INFO: Config stored in /config/addons_config/readarr
sed: /etc/services.d/readarr/run: No such file or directory
Error : /etc/cont-init.d/00-config_location.sh exiting 1
/etc/cont-init.d/00-global_var.sh: executing
CONFIG_LOCATION='/config/addons_config/readarr'
PGID='0'
PUID='0'
/etc/cont-init.d/00-local_mounts.sh: executing
/etc/cont-init.d/00-smb_mounts.sh: executing
/etc/cont-init.d/01-config_yaml.sh: executing
Watch-out: your CONFIG_LOCATION should end by config.yaml, and instead it is readarr
Load environment variables from /config/addons_config/readarr if existing
---------------------------------------------------------
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables
... no config file, creating one from template. Please customize the file in /config/addons_config/readarr before restarting.
curl: (23) Failure writing output to destination
Error : /etc/cont-init.d/01-config_yaml.sh exiting 23
/etc/cont-init.d/01-custom_script.sh: executing
Execute /config/addons_autoscripts/readarr-nas.sh if existing
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation
---------------------------------------------------------
... no script found, exiting
/etc/cont-init.d/20-folders.sh: executing
/etc/cont-init.d/32-nginx_ingress.sh: executing
[20:51:47] WARNING: ---------------------------
[20:51:47] WARNING: Ingress is enabled, authentification will be disabled and should be managed through HA itself. If you need authentification, please disable ingress in addon options
[20:51:47] WARNING: ---------------------------
/etc/cont-init.d/90-disable_ingress.sh: executing
 
Starting the upstream container
 
[migrations] started
[migrations] no migrations found
───────────────────────────────────────

Architecture

No response

OS

HAos

@PubDeer PubDeer added the bug Something isn't working label Nov 21, 2023
@alexbelgium
Copy link
Owner

alexbelgium commented Nov 21, 2023

Hi, perhaps i'll need to adapt this add-on! Have you tried starting a second time? The first start basically installs a config.yaml file in /config/addons_config/readarr then stops the add-on. Thanks

I've also corrected a small typo and pushed a new version that should be shown in your ha instance for update

@PubDeer
Copy link
Author

PubDeer commented Nov 21, 2023

Hi! Thanks for your swift response. I have tried a couple of stops/starts and also reinstalls. But the error persists. I installed Filebrowser and there is no readarr folder found in /config/addons_config

@airtonix
Copy link
Contributor

airtonix commented Nov 22, 2023

 Current version: 0.3.10.2287-7

same here, probably different error, but did :

  1. install addon
  2. click start
  3. check logs...
  4. open web ui

and i get a black screen with black text:

{
  "message": "Requested value \u0027external\u0027 was not found.",
  "description": "System.ArgumentException: Requested value \u0027external\u0027 was not found.\n   at System.Enum.TryParseByName(RuntimeType enumType, ReadOnlySpan\u00601 value, Boolean ignoreCase, Boolean throwOnFailure, UInt64\u0026 result)\n   at System.Enum.TryParse(Type enumType, ReadOnlySpan\u00601 value, Boolean ignoreCase, Boolean throwOnFailure, Object\u0026 result)\n   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)\n   at NzbDrone.Core.Configuration.ConfigFileProvider.GetValueEnum[T](String key, T defaultValue, Boolean persist) in ./api/hassio_ingress/rxQdkphP9DRvsZ-eOsA7IT8nVPpZ2a3Drv2Ap3UdUD8/readarr.Core/Configuration/ConfigFileProvider.cs:line 258\n   at NzbDrone.Core.Configuration.ConfigFileProvider.get_AuthenticationMethod() in ./api/hassio_ingress/rxQdkphP9DRvsZ-eOsA7IT8nVPpZ2a3Drv2Ap3UdUD8/readarr.Core/Configuration/ConfigFileProvider.cs:line 189\n   at NzbDrone.Http.Authentication.UiAuthorizationPolicyProvider.GetPolicyAsync(String policyName) in ./api/hassio_ingress/rxQdkphP9DRvsZ-eOsA7IT8nVPpZ2a3Drv2Ap3UdUD8/readarr.Http/Authentication/UiAuthorizationPolicyProvider.cs:line 31\n   at Microsoft.AspNetCore.Authorization.AuthorizationPolicy.CombineAsync(IAuthorizationPolicyProvider policyProvider, IEnumerable\u00601 authorizeData)\n   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.\u003CInvoke\u003Eg__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)"
}

@airtonix
Copy link
Contributor

airtonix commented Nov 22, 2023

 Current version: 0.3.10.2287-7

config.yaml file in /config/addons_config/readarr t

This is also a problem since what it actually does is create a directory called /config/addons_config/readarr/config.yaml which contains the config.xml.

So on first install this fails, because readarr actually wants: /config/addons_config/readarr/config.xml, but instead this is stored at /config/addons_config/readarr/config.yaml/config.xml

only reason i worked this out was after first boot, and looking at the logs, i got a bunch of spam saying BASEURL is incorrect or something..., look in the config.xml and there is <BaseUrl></BaseUrl>.

@alexbelgium
Copy link
Owner

Thanks, I've pushed a new version that should solve this

@PubDeer
Copy link
Author

PubDeer commented Nov 23, 2023

Current version: 0.3.10.2287-10

Thanks! The newest version no longer gives errors in the log. However, I do still get this error when opening the WEB-UI. Also, there is still no folder/file created in config/addons_config for me.

  "message": "Requested value \u0027external\u0027 was not found.",
  "description": "System.ArgumentException: Requested value \u0027external\u0027 was not found.\n   at System.Enum.TryParseByName(RuntimeType enumType, ReadOnlySpan\u00601 value, Boolean ignoreCase, Boolean throwOnFailure, UInt64\u0026 result)\n   at System.Enum.TryParse(Type enumType, ReadOnlySpan\u00601 value, Boolean ignoreCase, Boolean throwOnFailure, Object\u0026 result)\n   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)\n   at NzbDrone.Core.Configuration.ConfigFileProvider.GetValueEnum[T](String key, T defaultValue, Boolean persist) in ./api/hassio_ingress/4_ENFUhIqrpWc-cdDVOmBTEuzIYBFnhq684fJ55cIKA/readarr.Core/Configuration/ConfigFileProvider.cs:line 258\n   at NzbDrone.Core.Configuration.ConfigFileProvider.get_AuthenticationMethod() in ./api/hassio_ingress/4_ENFUhIqrpWc-cdDVOmBTEuzIYBFnhq684fJ55cIKA/readarr.Core/Configuration/ConfigFileProvider.cs:line 189\n   at NzbDrone.Http.Authentication.UiAuthorizationPolicyProvider.GetPolicyAsync(String policyName) in ./api/hassio_ingress/4_ENFUhIqrpWc-cdDVOmBTEuzIYBFnhq684fJ55cIKA/readarr.Http/Authentication/UiAuthorizationPolicyProvider.cs:line 31\n   at Microsoft.AspNetCore.Authorization.AuthorizationPolicy.CombineAsync(IAuthorizationPolicyProvider policyProvider, IEnumerable\u00601 authorizeData)\n   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.\u003CInvoke\u003Eg__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)"```

alexbelgium added a commit that referenced this issue Nov 23, 2023
alexbelgium added a commit that referenced this issue Nov 23, 2023
@alexbelgium
Copy link
Owner

Hi, I've pushed a version 11 to avoid the error you have encountered. Could you please after updating post your full log? It's strange that the folders doesn't get created if readarr still detects that the "external" setting is defined. Thanks!

@PubDeer
Copy link
Author

PubDeer commented Nov 23, 2023

Current version: 0.3.10.2287-11

Hi, sure thing! Here you go:

/etc/cont-init.d/00-banner.sh: executing

-----------------------------------------------------------
 Add-on: Readarr
 Book manager and automation
-----------------------------------------------------------
 Add-on version: 0.3.10.2287-11
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.1  (aarch64 / yellow)
 Home Assistant Core: 2023.11.3
 Home Assistant Supervisor: 2023.11.3
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons 
-----------------------------------------------------------
 Defining permissions for main user : 
User UID: 0
User GID : 0
-----------------------------------------------------------
/etc/cont-init.d/00-config_location.sh: executing
[13:55:45] INFO: Config stored in /config/addons_config/readarr
/etc/cont-init.d/00-global_var.sh: executing
CONFIG_LOCATION='/config/addons_config/readarr'
PGID='0'
PUID='0'
/etc/cont-init.d/00-local_mounts.sh: executing
/etc/cont-init.d/00-smb_mounts.sh: executing
/etc/cont-init.d/01-config_yaml.sh: executing
Load environment variables from /config/addons_config/readarr/config.yaml if existing
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables
---------------------------------------------------------
... no env variables found, exiting
/etc/cont-init.d/01-custom_script.sh: executing
Execute /config/addons_autoscripts/readarr-nas.sh if existing
---------------------------------------------------------
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation
... no script found, exiting
/etc/cont-init.d/20-folders.sh: executing
/etc/cont-init.d/32-nginx_ingress.sh: executing
[13:55:49] WARNING: ---------------------------
[13:55:49] WARNING: Ingress is enabled, authentification will be disabled and should be managed through HA itself. If you need authentification, please disable ingress in addon options
[13:55:49] WARNING: ---------------------------
/etc/cont-init.d/90-disable_ingress.sh: executing
 
Starting the upstream container
 
[migrations] started
[migrations] no migrations found
───────────────────────────────────────
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support the app dev(s) visit:
Readarr: https://opencollective.com/readarr

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    0
User GID:    0
───────────────────────────────────────

[custom-init] No custom files found, skipping...
[Info] Bootstrap: Starting Readarr - /app/readarr/bin/Readarr - Version 0.3.10.2287 
[Debug] Bootstrap: Getting windows service status 
[Info] AppFolderInfo: Data directory is being overridden to [/config/addons_config/readarr] 
[Debug] Bootstrap: Console selected 
[Info] AppFolderInfo: Data directory is being overridden to [/config/addons_config/readarr] 
[Trace] EventAggregator: Publishing ApplicationStartingEvent 
[Info] AppFolderInfo: Data directory is being overridden to [/config/addons_config/readarr] 
[Info] MigrationController: *** Migrating data source=/config/addons_config/readarr/readarr.db;cache size=-20000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3;busytimeout=100 *** 
[Debug] MigrationController: Took: 00:00:00.8629879 
[Info] MigrationController: *** Migrating data source=/config/addons_config/readarr/cache.db;cache size=-20000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3;busytimeout=100 *** 
[Debug] MigrationController: Took: 00:00:00.0294632 
[Trace] EventAggregator: ApplicationStartingEvent -> InstallUpdateService 
[Trace] EventAggregator: ApplicationStartingEvent <- InstallUpdateService 
[Info] MigrationController: *** Migrating data source=/config/addons_config/readarr/logs.db;cache size=-20000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3;busytimeout=100 *** 
[Info] Microsoft.Hosting.Lifetime: Now listening on: http://[::]:8787 
[Info] Microsoft.Hosting.Lifetime: Application started. Press Ctrl+C to shut down. 
[Info] Microsoft.Hosting.Lifetime: Hosting environment: Production 
[Info] Microsoft.Hosting.Lifetime: Content root path: /app/readarr/bin 
[ls.io-init] done.
[13:56:00] INFO: Starting NGinx...
[Fatal] ReadarrErrorPipeline: Request Failed. GET  

[v0.3.10.2287] System.ArgumentException: Requested value 'external' was not found.
   at System.Enum.TryParseByName(RuntimeType enumType, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, UInt64& result)
   at System.Enum.TryParse(Type enumType, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, Object& result)
   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
   at NzbDrone.Core.Configuration.ConfigFileProvider.GetValueEnum[T](String key, T defaultValue, Boolean persist) in ./Readarr.Core/Configuration/ConfigFileProvider.cs:line 258
   at NzbDrone.Core.Configuration.ConfigFileProvider.get_AuthenticationMethod() in ./Readarr.Core/Configuration/ConfigFileProvider.cs:line 189
   at NzbDrone.Http.Authentication.UiAuthorizationPolicyProvider.GetPolicyAsync(String policyName) in ./Readarr.Http/Authentication/UiAuthorizationPolicyProvider.cs:line 31
   at Microsoft.AspNetCore.Authorization.AuthorizationPolicy.CombineAsync(IAuthorizationPolicyProvider policyProvider, IEnumerable`1 authorizeData)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)


[23/Nov/2023:13:56:33 +0100] 500 192.168.1.220, 172.30.32.1(172.30.32.2) GET /readarr HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; rv:120.0) Gecko/20100101 Firefox/120.0)```

@alexbelgium
Copy link
Owner

Mmh strange... do you have the config.xml in /config/addons_config/readarr ? Can you stop the addon, remove the line containing "external" then restart ?

@PubDeer
Copy link
Author

PubDeer commented Nov 23, 2023

There is nothing related to readarr in /config/addons_config/. Only folder I have in there is filebrowser, which I installed to be able to investigate the errors I got with readarr. Would a reinstall help? Or is stopping/starting sufficient?

@alexbelgium
Copy link
Owner

Hi see, you need to blame HA devs ;-) with the new logic of mounting addons, the /config folder is actually now mounted in /homeassistant.

So in filebrowser you'll find the folder in /homeassistant/addons_config/readarr...

Sorry for the confusion, I'm not the one having defined that ;-) : https://github.com/alexbelgium/hassio-addons/blob/master/filebrowser/CHANGELOG.md#2230_reverted5-21-11-2023

@PubDeer
Copy link
Author

PubDeer commented Nov 23, 2023

Hi - I'm sorry! Didn't realize I was looking in the wrong /addons_config/ folder. Your suggestion fixed the problem - so stopping, deleting the line and starting again. Thank you for your excellent help, I'll be sure to buy you a cup of coffee :)

@PubDeer PubDeer closed this as completed Nov 23, 2023
@alexbelgium
Copy link
Owner

Thanks very much ! Happy it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants