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

Have to reset Sonarr API Key on clean build (Docker) #4822

Closed
Lox1on opened this issue Dec 3, 2022 · 9 comments
Closed

Have to reset Sonarr API Key on clean build (Docker) #4822

Lox1on opened this issue Dec 3, 2022 · 9 comments

Comments

@Lox1on
Copy link

Lox1on commented Dec 3, 2022

Describe the bug
When creating a new Docker build for Ombi, if I use the Setup Wizard and use Plex Authorisation I have to reset the Sonarr API Key or it will not connect. Setup of Radarr and Lidarr work fine in this scenario.

If you run the setup wizard and just create a local Admin logon the problem does not occur.

Note:
When accessing the Sonarr setup in Ombi, if you have setup with Plex Auth the Port field has example text as per the image below with an example. If you setup with a local admin only that field will only have a 0 (zero) in it.

https://ibb.co/brjzgSq

To Reproduce
Steps to reproduce the behavior:

  1. New Docker install created using v4.33
  2. Go through the setup Wizard and use Plex Login / Authentication.
  3. When in Ombi go to Settings > TV > Sonarr
  4. Input Sonarr IP address, Port and API Key (all running locally on the same NAS)
  5. Fails to connect to Sonarr.
  6. Resetting the API Key in Sonarr and re-entering it in Ombi will fix.

Expected behavior
Should just reconnect to Sonarr using the existing API Key.

Screenshots
If applicable, add screenshots to help explain your problem.

Logs (Logs directory where Ombi is located)
Error Log below from a clean Ombi v4.33 Docker install after trying to setup Sonarr

https://pastebin.com/icntppZ

Desktop (please complete the following information):

  • OS: Windows 11 / MS Edge
  • Radarr, Sonarr, Lidarr etc running on an Ubuntu 22.04 VM on QNAP NAS
  • Ombi running in a Docker container within QNAP Container Station.
  • Plex Media Server running directly on the QNAP NAS

Ombi Version (please complete the following information):

  • Version 4.33
  • Media Server Plex
  • Database Type: SQLite

Additional context

@github-actions
Copy link

github-actions bot commented Dec 3, 2022

Hi!

Thanks for the issue report. Before a real human comes by, please make sure you used our bug report format.

Have you looked at the wiki yet? https://docs.ombi.app/

Before posting make sure you also read our FAQ.

Make the title describe your issue. Having 'not working' or 'I get this bug' for 100 issues, isn't really helpful.

If we need more information or there is some progress we tag the issue or update the tag and keep you updated.

Thanks!

Ombi Bot.

@Lox1on
Copy link
Author

Lox1on commented Dec 3, 2022

In addition to this, which may be related.

When setting up a new Docker using a local admin only I am unable to setup Lidarr. The Test Connection and Submit buttons are greyed out. If I setup using Plex Login I can setup Lidarr without a problem.

@jobrien2001
Copy link

same, resetting sonarr api didnt work for me.

fail: Ombi.Api.Api[1000]
      StatusCode: NotFound, Reason: Not Found, RequestUri: http://10.0.3.216:8989/api/profile
fail: Ombi.Api.Api[1000]
      StatusCode: NotFound, Reason: Not Found, RequestUri: http://10.0.3.216:8989/api/rootfolder
fail: Ombi.Api.Api[1000]
      StatusCode: NotFound, Reason: Not Found, RequestUri: http://10.0.3.216:8989/api/rootfolder
fail: Ombi.Api.Api[1000]
      StatusCode: NotFound, Reason: Not Found, RequestUri: http://10.0.3.216:8989/api/profile
fail: Ombi.Api.Api[1000]
      StatusCode: NotFound, Reason: Not Found, RequestUri: http://10.0.3.216:8989/api/series
fail: Ombi.Schedule.Jobs.Sonarr.SonarrSync[2006]
      Exception when trying to cache Sonarr
      System.NullReferenceException: Object reference not set to an instance of an object.
         at Ombi.Api.Sonarr.SonarrApi.GetSeries(String apiKey, String baseUrl) in /home/runner/work/Ombi/Ombi/src/Ombi.Api.Sonarr/SonarrApi.cs:line 48
         at Ombi.Schedule.Jobs.Sonarr.SonarrSync.Execute(IJobExecutionContext job) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Sonarr/SonarrSync.cs:line 52
fail: Ombi.Api.Api[1000]
      StatusCode: NotFound, Reason: Not Found, RequestUri: http://10.0.3.216:8989/api/series
fail: Ombi.Schedule.Jobs.Sonarr.SonarrSync[2006]
      Exception when trying to cache Sonarr
      System.NullReferenceException: Object reference not set to an instance of an object.
         at Ombi.Api.Sonarr.SonarrApi.GetSeries(String apiKey, String baseUrl) in /home/runner/work/Ombi/Ombi/src/Ombi.Api.Sonarr/SonarrApi.cs:line 48
         at Ombi.Schedule.Jobs.Sonarr.SonarrSync.Execute(IJobExecutionContext job) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Sonarr/SonarrSync.cs:line 52
fail: Ombi.Api.Api[1000]
      StatusCode: NotFound, Reason: Not Found, RequestUri: http://10.0.3.216:8989/api/system/status
fail: Ombi.Controllers.V1.External.TesterController[1000]
      Could not test Sonarr
      System.NullReferenceException: Object reference not set to an instance of an object.
         at Ombi.Controllers.V1.External.TesterController.Sonarr(SonarrSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi/Controllers/V1/External/TesterController.cs:line 415
fail: Ombi.Api.Api[1000]
      StatusCode: NotFound, Reason: Not Found, RequestUri: http://10.0.3.216:8989/api/system/status
fail: Ombi.Controllers.V1.External.TesterController[1000]
      Could not test Sonarr
      System.NullReferenceException: Object reference not set to an instance of an object.
         at Ombi.Controllers.V1.External.TesterController.Sonarr(SonarrSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi/Controllers/V1/External/TesterController.cs:line 415

@tidusjar
Copy link
Member

What versions of sonarr and Ombi?

@Lox1on
Copy link
Author

Lox1on commented Dec 11, 2022

Ombi: v4.33 (in Docker) but did see this in some previous version. I stayed on 4.29 for a while until I sorted the work around for me.

Sonarr: v3.0.9.1549 running on an Ubuntu VM.

@tidusjar
Copy link
Member

Wait so it’s working on 4.29?

@Lox1on
Copy link
Author

Lox1on commented Dec 11, 2022

Wait so it’s working on 4.29?

4.29.0 - Works OK
4.29.1 - Works OK
4.30.0 - Initial problem with Plex Auth but after recreating to Docker again it worked OK.
4.32 - Works OK
4.33 - Issue appears as described above.

Apologies for any confusion, I have recently resolved a small issue with my Ubuntu VM which may have been skewing my results previously. I have done a few clean installs with 4.33 and the problem is there everytime I use Plex Auth on the Wizard.

Worth noting the image showing the difference in the default field text only occurs on 4.33 also (if you use Plex Login during the wizard), 4.32 and all previous versions just have a 0 in the Port field. If you just use a local account you get the normal 0.

https://ibb.co/brjzgSq

@sephrat
Copy link
Contributor

sephrat commented May 18, 2023

I suspect this is the same root cause as #4877 which was fixed in v4.35.15.
Can you upgrade and tell us if that fixed it?

@sephrat sephrat closed this as completed May 18, 2023
@Lox1on
Copy link
Author

Lox1on commented May 18, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants