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] Authentication required issue #283

Closed
1 task done
hendrix04 opened this issue Jan 15, 2024 · 8 comments
Closed
1 task done

[BUG] Authentication required issue #283

hendrix04 opened this issue Jan 15, 2024 · 8 comments

Comments

@hendrix04
Copy link

hendrix04 commented Jan 15, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I am being forced with a modal that says authentication is required and that I need to setup some authentication method.

When I try to add an authentication method, I get a 400 response saying that I need an SSL cert to continue

Expected Behavior

I shouldn't need need an SSL cert to set a password. I trust my internal network and I would like not not have deal with self signed certs or having to install other type of certs

Steps To Reproduce

Install sonarr from community services
don't instal an SSL cert
see that you can't do anything

Environment

- OS: Untraid
- How docker service was installed: Community services

CPU architecture

x86-64

Docker creation

unraid community app

Container logs

[Warn] SonarrErrorPipeline: Invalid request Validation failed: 
 -- SslCertPath: 'Ssl Cert Path' must not be empty.
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@j0nnymoe
Copy link
Member

j0nnymoe commented Jan 15, 2024

We don't set any sort of SSL cert requirement within sonarr. It sounds like you could have a previous install. Could you post the full container start up log please?

Also note, that sonarr itself is forcing users to put authentication on your install, again not something we do.

https://wiki.servarr.com/sonarr/faq-v4#forced-authentication

@hendrix04
Copy link
Author

`[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

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

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

To support the app dev(s) visit:
Sonarr: https://sonarr.tv/donate

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

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

User UID: 99
User GID: 100
───────────────────────────────────────

[custom-init] No custom files found, skipping...
[Info] Bootstrap: Starting Sonarr - /app/sonarr/bin/Sonarr - Version 4.0.0.748
[Info] AppFolderInfo: Data directory is being overridden to [/config]
[Debug] Bootstrap: Console selected
[Info] AppFolderInfo: Data directory is being overridden to [/config]
[Info] AppFolderInfo: Data directory is being overridden to [/config]
[Info] MigrationController: *** Migrating data source=/config/sonarr.db;cache size=-20000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3;busytimeout=100 ***
[Debug] MigrationController: Took: 00:00:00.1391471
[Debug] Microsoft.Extensions.Hosting.Internal.Host: Hosting starting
[Info] MigrationController: *** Migrating data source=/config/logs.db;cache size=-20000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3;busytimeout=100 ***
[Info] Microsoft.Hosting.Lifetime: Now listening on: http://[::]:8989
[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/sonarr/bin
[Error] TaskExtensions: Task Error

[v4.0.0.748] System.NullReferenceException: Object reference not set to an instance of an object.
at NzbDrone.Core.Configuration.ConfigFileProvider.SetValue(String key, Object value) in ./Sonarr.Core/Configuration/ConfigFileProvider.cs:line 307
at NzbDrone.Core.Configuration.ConfigFileProvider.<>c__DisplayClass80_0.b__0() in ./Sonarr.Core/Configuration/ConfigFileProvider.cs:line 297
at NzbDrone.Common.Cache.Cached1.Get(String key, Func1 function, Nullable1 lifeTime) in ./Sonarr.Common/Cache/Cached.cs:line 98 at NzbDrone.Core.Configuration.ConfigFileProvider.GetValue(String key, Object defaultValue, Boolean persist) in ./Sonarr.Core/Configuration/ConfigFileProvider.cs:line 280 at NzbDrone.Core.Configuration.ConfigFileProvider.MigrateConfigFile() in ./Sonarr.Core/Configuration/ConfigFileProvider.cs:line 350 at NzbDrone.Core.Configuration.ConfigFileProvider.HandleAsync(ApplicationStartedEvent message) in ./Sonarr.Core/Configuration/ConfigFileProvider.cs:line 427 at NzbDrone.Core.Messaging.Events.EventAggregator.<>c__DisplayClass6_21.b__2() in ./Sonarr.Core/Messaging/Events/EventAggregator.cs:line 120
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)

[ls.io-init] done.
[Warn] SonarrErrorPipeline: Invalid request Validation failed:
-- SslCertPath: 'Ssl Cert Path' must not be empty.
[Info] RssSyncService: Starting RSS Sync
[Info] DownloadDecisionMaker: Processing 150 releases
[Info] RssSyncService: RSS Sync Completed. Reports found: 150, Reports grabbed: 0`

image

@hendrix04
Copy link
Author

BTW, I resolved this issue for my personal instance by editing my config xml. For some reason True was set (even though I have never used SSL on this server...

I have been using the Linux Server version of Sonarr for 2ish years (at least), though the container says it was created 5 years ago (perhaps due to an automatic update). My guess is that this update is what caused a weird configuration issue in some way.

@LinuxServer-CI
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@zethis
Copy link

zethis commented Mar 22, 2024

Same issue here, if i set <AuthenticationMethod>External</AuthenticationMethod> like it's mentionned here, the config file repop everytime with two other lines added: <AuthenticationMethod>None</AuthenticationMethod> & <AuthenticationRequired>Enabled</AuthenticationRequired>

EDIT: Fixed by removed topmost value in the config.xml file that i don't see <AuthenticationRequired>Forms</AuthenticationRequired>

@aptalca
Copy link
Member

aptalca commented Mar 22, 2024

I had a hard time with this as well. I believe the issue stems from having set a password for the gui a long time ago and later disabling auth. When the wizard shows up in the new versions that require auth, instead of letting you set a new password, it wants you to enter the old one you set ages ago. The password is in the sqlite db so you can't reset it through the config file.

When you modify the config file, make sure that there are no duplicate entries, delete all auth related entries, and then enter the following and restart:

  <AuthenticationRequired>Enabled</AuthenticationRequired>
  <AuthenticationMethod>External</AuthenticationMethod>

That should let you access the gui. Then you can go into gui settings and change things as needed.

With regards to the ssl certpath error, in my case it was a red herring. But to be sure, make sure the EnableSsl setting is set to False in the config file.

Closing as it's solved for op

@aptalca aptalca closed this as completed Mar 22, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Mar 22, 2024
Copy link

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

5 participants