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

Indexer additions and updates not syncing to Sonarr or Radarr #912

Closed
1 task done
nattycleopatra opened this issue Mar 29, 2022 · 2 comments
Closed
1 task done
Labels
Type: Bug Issue is a bug

Comments

@nattycleopatra
Copy link

nattycleopatra commented Mar 29, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Adding new indexers, or updating existing indexers, does not sync to Sonarr or Radarr despite both being set to full sync.

Expected Behavior

New or updated indexers being synced to the indexers in Sonarr and Radarr when set to full sync.

Steps To Reproduce

Adding an indexer:

  1. Add a new indexer
  2. An entry for the indexer doesn't appear in Sonarr or Radarr (nor does the event history or logging suggest Prowlarr attempting to add it there)

Updating an existing indexer:

  1. Update some value like the indexer priority
  2. The new value does not propagate to Sonarr or Radarr
  3. Event history/logging shows errors from both Sonarr and Radarr saying categories weren't provided in the POST request

Environment

- OS: Ubuntu 20.04
- Prowlarr: 0.2.0.1621 (container image `ghcr.io/linuxserver/prowlarr:0.2.0-nightly`)
- Docker Install: Yes
- Using Reverse Proxy: Yes
- Browser: Firefox ESR

Have been a Prowlarr user since late October 2021. I used to follow develop branch releases, but some time early this year noticed indexer updates weren't synced. Switched to the develop track hoping it would be fixed there, which was not the case.

At this point I believe a couple of months have passed since noticing the issue, but it still remains present, 100% reproducible, and there still is no issue report to be found regarding it. Either I must have hit upon a really rare bug, or your other users are even lazier than me when it comes to reporting issues.

What branch are you running?

Nightly

Trace Logs?

Adding an indexer:

2022-03-29 12:13:04.7|Trace|Http|Req: 228 [POST] /api/v1/indexer (from 172.19.0.7)
2022-03-29 12:13:04.7|Debug|Newznab|Downloading Feed https://feed.newindexer.example.org/api?t=search&extended=1&
2022-03-29 12:13:04.7|Trace|ConfigService|Using default config value for 'logindexerresponse' defaultValue:'False'
2022-03-29 12:13:04.7|Trace|IndexerHttpClient|Req: [GET] https://feed.newindexer.example.org/api?t=search&extended=1&
2022-03-29 12:13:04.7|Trace|ConfigService|Using default config value for 'proxyenabled' defaultValue:'False'
2022-03-29 12:13:04.9|Trace|IndexerHttpClient|Res: [GET] https://feed.newindexer.example.org/api?t=search&extended=1&: 200.OK (233 ms)
[...list of items in feed...]
2022-03-29 12:13:05.0|Trace|EventAggregator|Publishing ProviderAddedEvent<IIndexer>
2022-03-29 12:13:05.0|Trace|EventAggregator|ProviderAddedEvent<IIndexer> ~> ApplicationService
2022-03-29 12:13:05.0|Trace|EventAggregator|Publishing ProviderStatusChangedEvent<IApplication>
2022-03-29 12:13:05.0|Trace|Http|Res: 228 [POST] /api/v1/indexer: 201.Created (257 ms)
2022-03-29 12:13:05.0|Debug|Api|[POST] /api/v1/indexer: 201.Created (257 ms)
2022-03-29 12:13:05.0|Trace|EventAggregator|Publishing ProviderStatusChangedEvent<IApplication>
2022-03-29 12:13:05.0|Trace|EventAggregator|ProviderAddedEvent<IIndexer> <~ ApplicationService
2022-03-29 12:13:05.0|Trace|ServerSideNotificationService|Getting server side health notifications
2022-03-29 12:13:05.0|Trace|HttpClient|Req: [GET] https://prowlarr.servarr.com/v1/notification?version=0.2.0.1621&os=linuxmusl&arch=X64&runtime=netcore&branch=nightly
2022-03-29 12:13:05.0|Trace|ConfigService|Using default config value for 'proxyenabled' defaultValue:'False'
2022-03-29 12:13:05.0|Trace|ServerSideNotificationService|Getting server side health notifications
2022-03-29 12:13:05.0|Trace|HttpClient|Req: [GET] https://prowlarr.servarr.com/v1/notification?version=0.2.0.1621&os=linuxmusl&arch=X64&runtime=netcore&branch=nightly
2022-03-29 12:13:05.0|Trace|ConfigService|Using default config value for 'proxyenabled' defaultValue:'False'
2022-03-29 12:13:05.0|Trace|ServerSideNotificationService|Getting server side health notifications
2022-03-29 12:13:05.0|Trace|HttpClient|Req: [GET] https://prowlarr.servarr.com/v1/notification?version=0.2.0.1621&os=linuxmusl&arch=X64&runtime=netcore&branch=nightly
2022-03-29 12:13:05.0|Trace|ConfigService|Using default config value for 'proxyenabled' defaultValue:'False'
2022-03-29 12:13:05.2|Trace|HttpClient|Res: [GET] https://prowlarr.servarr.com/v1/notification?version=0.2.0.1621&os=linuxmusl&arch=X64&runtime=netcore&branch=nightly: 200.OK (245 ms)
2022-03-29 12:13:05.2|Trace|EventAggregator|Publishing HealthCheckCompleteEvent
2022-03-29 12:13:05.2|Trace|EventAggregator|HealthCheckCompleteEvent -> HealthController
2022-03-29 12:13:05.2|Trace|EventAggregator|HealthCheckCompleteEvent <- HealthController
2022-03-29 12:13:05.2|Trace|EventAggregator|HealthCheckCompleteEvent ~> NotificationService
2022-03-29 12:13:05.2|Trace|EventAggregator|HealthCheckCompleteEvent <~ NotificationService
2022-03-29 12:13:05.2|Trace|Http|Req: 229 [GET] /api/v1/health (from 172.19.0.7)
2022-03-29 12:13:05.2|Trace|Http|Res: 229 [GET] /api/v1/health: 200.OK (0 ms)
2022-03-29 12:13:05.2|Debug|Api|[GET] /api/v1/health: 200.OK (0 ms)
2022-03-29 12:13:05.2|Trace|HttpClient|Res: [GET] https://prowlarr.servarr.com/v1/notification?version=0.2.0.1621&os=linuxmusl&arch=X64&runtime=netcore&branch=nightly: 200.OK (270 ms)
2022-03-29 12:13:05.2|Trace|EventAggregator|Publishing HealthCheckCompleteEvent
2022-03-29 12:13:05.2|Trace|EventAggregator|HealthCheckCompleteEvent -> HealthController
2022-03-29 12:13:05.2|Trace|EventAggregator|HealthCheckCompleteEvent <- HealthController
2022-03-29 12:13:05.2|Trace|EventAggregator|HealthCheckCompleteEvent ~> NotificationService
2022-03-29 12:13:05.2|Trace|EventAggregator|HealthCheckCompleteEvent <~ NotificationService
2022-03-29 12:13:05.2|Trace|HttpClient|Res: [GET] https://prowlarr.servarr.com/v1/notification?version=0.2.0.1621&os=linuxmusl&arch=X64&runtime=netcore&branch=nightly: 200.OK (276 ms)
2022-03-29 12:13:05.2|Trace|EventAggregator|Publishing HealthCheckCompleteEvent
2022-03-29 12:13:05.2|Trace|EventAggregator|HealthCheckCompleteEvent -> HealthController
2022-03-29 12:13:05.2|Trace|EventAggregator|HealthCheckCompleteEvent <- HealthController
2022-03-29 12:13:05.2|Trace|EventAggregator|HealthCheckCompleteEvent ~> NotificationService
2022-03-29 12:13:05.2|Trace|EventAggregator|HealthCheckCompleteEvent <~ NotificationService
2022-03-29 12:13:05.3|Trace|Http|Req: 230 [GET] /api/v1/health (from 172.19.0.7)
2022-03-29 12:13:05.3|Trace|Http|Res: 230 [GET] /api/v1/health: 200.OK (0 ms)
2022-03-29 12:13:05.3|Debug|Api|[GET] /api/v1/health: 200.OK (0 ms)
2022-03-29 12:13:05.3|Trace|Http|Req: 231 [GET] /api/v1/health (from 172.19.0.7)
2022-03-29 12:13:05.3|Trace|Http|Res: 231 [GET] /api/v1/health: 200.OK (0 ms)
2022-03-29 12:13:05.3|Debug|Api|[GET] /api/v1/health: 200.OK (0 ms)
2022-03-29 12:13:11.3|Trace|Http|Req: 232 [GET] /logfile/prowlarr.trace.txt

Updating an existing indexer entity:

2022-03-29 12:10:56.9|Trace|EventAggregator|Publishing ProviderUpdatedEvent<IIndexer>
2022-03-29 12:10:56.9|Trace|EventAggregator|ProviderUpdatedEvent<IIndexer> ~> ApplicationService
2022-03-29 12:10:56.9|Trace|Http|Res: 206 [PUT] /api/v1/indexer/6: 202.Accepted (841 ms)
2022-03-29 12:10:56.9|Debug|Api|[PUT] /api/v1/indexer/6: 202.Accepted (841 ms)
2022-03-29 12:10:56.9|Trace|HttpClient|Req: [GET] http://radarr:7878/api/v3/indexer
2022-03-29 12:10:56.9|Trace|ConfigService|Using default config value for 'proxyenabled' defaultValue:'False'
2022-03-29 12:10:56.9|Trace|ConfigService|Using default config value for 'uilanguage' defaultValue:'1'
2022-03-29 12:10:56.9|Trace|ServerSideNotificationService|Getting server side health notifications
2022-03-29 12:10:56.9|Trace|HttpClient|Req: [GET] https://prowlarr.servarr.com/v1/notification?version=0.2.0.1621&os=linuxmusl&arch=X64&runtime=netcore&branch=nightly
2022-03-29 12:10:56.9|Trace|ConfigService|Using default config value for 'proxyenabled' defaultValue:'False'
2022-03-29 12:10:56.9|Trace|HttpClient|Res: [GET] http://radarr:7878/api/v3/indexer: 200.OK (8 ms)
2022-03-29 12:10:56.9|Debug|Radarr|Updating indexer GenericIndexerName [6]
2022-03-29 12:10:56.9|Trace|HttpClient|Req: [GET] http://radarr:7878/api/v3/indexer/7
2022-03-29 12:10:56.9|Trace|ConfigService|Using default config value for 'proxyenabled' defaultValue:'False'
2022-03-29 12:10:56.9|Trace|HttpClient|Res: [GET] http://radarr:7878/api/v3/indexer/7: 200.OK (11 ms)
2022-03-29 12:10:56.9|Debug|Radarr|Remote indexer found, syncing with current settings
2022-03-29 12:10:56.9|Trace|HttpClient|Req: [PUT] http://radarr:7878/api/v3/indexer/7
2022-03-29 12:10:56.9|Trace|ConfigService|Using default config value for 'proxyenabled' defaultValue:'False'
2022-03-29 12:10:56.9|Trace|HttpClient|Res: [PUT] http://radarr:7878/api/v3/indexer/7: 400.BadRequest
[
  {
    "isWarning": false,
    "propertyName": "",
    "errorMessage": "\u0027Categories\u0027 must be provided",
    "severity": "error"
  }
] (8 ms)
2022-03-29 12:10:56.9|Warn|HttpClient|HTTP Error - Res: [PUT] http://radarr:7878/api/v3/indexer/7: 400.BadRequest
[
  {
    "isWarning": false,
    "propertyName": "",
    "errorMessage": "\u0027Categories\u0027 must be provided",
    "severity": "error"
  }
]
2022-03-29 12:10:56.9|Trace|EventAggregator|Publishing ProviderStatusChangedEvent<IApplication>
2022-03-29 12:10:56.9|Warn|ApplicationService|NzbDrone.Core.Applications.ApplicationService HTTP request failed: [400:BadRequest] [PUT] at [http://radarr:7878/api/v3/indexer/7]
2022-03-29 12:10:56.9|Trace|HttpClient|Req: [GET] http://sonarr:8989/api/v3/indexer
2022-03-29 12:10:56.9|Trace|ConfigService|Using default config value for 'proxyenabled' defaultValue:'False'
2022-03-29 12:10:56.9|Trace|ServerSideNotificationService|Getting server side health notifications
2022-03-29 12:10:56.9|Trace|HttpClient|Req: [GET] https://prowlarr.servarr.com/v1/notification?version=0.2.0.1621&os=linuxmusl&arch=X64&runtime=netcore&branch=nightly
2022-03-29 12:10:56.9|Trace|ConfigService|Using default config value for 'proxyenabled' defaultValue:'False'
2022-03-29 12:10:57.0|Trace|HttpClient|Res: [GET] http://sonarr:8989/api/v3/indexer: 200.OK (30 ms)
2022-03-29 12:10:57.0|Debug|Sonarr|Updating indexer GenericIndexerName [6]
2022-03-29 12:10:57.0|Trace|HttpClient|Req: [GET] http://sonarr:8989/api/v3/indexer/7
2022-03-29 12:10:57.0|Trace|ConfigService|Using default config value for 'proxyenabled' defaultValue:'False'
2022-03-29 12:10:57.0|Trace|HttpClient|Res: [GET] http://sonarr:8989/api/v3/indexer/7: 200.OK (5 ms)
2022-03-29 12:10:57.0|Debug|Sonarr|Remote indexer found, syncing with current settings
2022-03-29 12:10:57.0|Trace|HttpClient|Req: [PUT] http://sonarr:8989/api/v3/indexer/7
2022-03-29 12:10:57.0|Trace|ConfigService|Using default config value for 'proxyenabled' defaultValue:'False'
2022-03-29 12:10:57.0|Trace|HttpClient|Res: [PUT] http://sonarr:8989/api/v3/indexer/7: 400.BadRequest
[
  {
    "isWarning": false,
    "propertyName": "",
    "errorMessage": "Either 'Categories' or 'Anime Categories' must be provided",
    "severity": "error"
  }
] (22 ms)
2022-03-29 12:10:57.0|Warn|HttpClient|HTTP Error - Res: [PUT] http://sonarr:8989/api/v3/indexer/7: 400.BadRequest
[
  {
    "isWarning": false,
    "propertyName": "",
    "errorMessage": "Either 'Categories' or 'Anime Categories' must be provided",
    "severity": "error"
  }
]
2022-03-29 12:10:57.0|Trace|EventAggregator|Publishing ProviderStatusChangedEvent<IApplication>
2022-03-29 12:10:57.0|Warn|ApplicationService|NzbDrone.Core.Applications.ApplicationService HTTP request failed: [400:BadRequest] [PUT] at [http://sonarr:8989/api/v3/indexer/7]

AB#2877

@nattycleopatra nattycleopatra added Status: Needs Triage New Issue needing triage Type: Bug Issue is a bug labels Mar 29, 2022
@bakerboy448
Copy link
Contributor

Are your indexers showing the categories they support on the indexer page or are they saying None? Should be able to fix it with disabling / re-enabling them.

Since it's a PUT it's trying to update the existing indexers in *Arr and cannot as they don't have any categories. Manually removing the bad entries from *arr and letting prowlarr do another sync should work as well - assuming the first cause is resolved.

Also censored tracelogs typically are not helpful and hurt more than they help. If it's unmentionable - then just replace the name

@nattycleopatra
Copy link
Author

Are your indexers showing the categories they support on the indexer page or are they saying None? Should be able to fix it with disabling / re-enabling them.

The list of supported categories shows up for each indexer in Prowlarr. If I disable one, the value under Categories changes to None. If I enable it again, the values reappear.

Sorry about the trace logs, the only thing I removed from there was the list of anime releases that appeared when adding the "AnimeTosho (Usenet)" indexer which was first in Prowlarr's list.

I'll have to make some backups first, but I'll test removing everything from Sonarr and Radarr and seeing if I can somehow make it sync up afterwards, and worst case I'll try to wipe the Prowlarr configuration and redo the setup. If this isn't a known issue it sounds likely something wonky has happened with my DB during one of many software upgrades months ago.

@Qstick Qstick closed this as completed in 302ed91 Apr 16, 2022
@bakerboy448 bakerboy448 added Area: Indexers and removed Status: Needs Triage New Issue needing triage labels Apr 16, 2022
bakerboy448 pushed a commit that referenced this issue May 2, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Issue is a bug
Projects
None yet
Development

No branches or pull requests

2 participants