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

Increased Missing root element errors since 10.9.4 #70

Open
Byorun opened this issue Jun 7, 2024 · 5 comments
Open

Increased Missing root element errors since 10.9.4 #70

Byorun opened this issue Jun 7, 2024 · 5 comments
Labels
bug This PR or Issue describes or fixes something that isn't working confirmed This Issue describes a bug that has been confirmed by a org member

Comments

@Byorun
Copy link

Byorun commented Jun 7, 2024

Since the Upgrade from 10.9.2 to 10.9.4 I noticed that my NAS was rather noisy Düring library Scans. It was rescanning a lot of series for unknown reasons. This resulted in an instant ban from anidb.
As soon as you see the message 500 banned in the logs the plugin begins to write empty series.xml files to the cache directory which then result in the missing root element error for consecutive scans.
Maybe I am imagine things, but I seams to me that this error increases with each scan since more and more series will be rescanned because of the missing/broken cache files

@oddstr13 oddstr13 added bug This PR or Issue describes or fixes something that isn't working confirmed This Issue describes a bug that has been confirmed by a org member labels Jun 7, 2024
@nalsai
Copy link
Contributor

nalsai commented Jun 7, 2024

This contains multiple issues:

  1. The internal rate limiter needs to be improved.
    It currently only ensures a high enough interval in between requests if scans run sequentially (-> no parallel scans). If requests get made without enough time in between, you get banned immediately.
    Also, once a ban is detected, no new requests should be made until the ban is over.
  2. Empty series.xml files get written to the cache directory.
    This shouldn't happen and/or be handled better.

Cache files should be refreshed every 7 days (unless you configured it differently in the plugin settings), regardless of if they are correct or broken.

Also, would you mind telling me how big your library is (how many series and how many episodes in total)? As you may know, scanning too many files in a short period of time always gets you banned, so how to ideally handle very large libraries is still an open question.

I don't know why it was rescanning a lot of series, but the anidb plugin shouldn't have anything to do with that.

@Byorun
Copy link
Author

Byorun commented Jun 7, 2024

My library is about 1500 series with about 15000 episodes. As long as only the new episodes are scanned (between 1-7 depending on how good the current season is) everything is more or less fine. But after the upgrade jellyfin for whatever reason decided to (re)scan more than nessesary which bubbled up more than 100 updates per scan which gets me banned almost instantly

@Byorun Byorun closed this as completed Jun 7, 2024
@Byorun Byorun reopened this Jun 7, 2024
@Byorun
Copy link
Author

Byorun commented Jun 7, 2024

Sorry wrong button

@enter-a-random-username
Copy link

enter-a-random-username commented Jul 12, 2024

I got the same issue and it feels like endless requests and it looks like I'm always banned api.anidb.net:9001

 [ERR] [83] MediaBrowser.Providers.TV.EpisodeMetadataService: Error in AniDB
  jellyfin[2791681]: System.Net.Http.HttpRequestException: Connection refused (api.anidb.net:9001)
  jellyfin[2791681]:  ---> System.Net.Sockets.SocketException (111): Connection refused

So many failed requests in log files. Even after waiting some time (hours) it starts with those errors.

Edit: Now anidb is on maintenance mode - maybe it is related

@nille02
Copy link

nille02 commented Aug 30, 2024

i have the same issue and i just deleted all 0 byte serien.xml files.
find /var/cache/jellyfin/anidb/series -size 0
and you ran remove them with
find /var/cache/jellyfin/anidb/series -size 0 -delete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This PR or Issue describes or fixes something that isn't working confirmed This Issue describes a bug that has been confirmed by a org member
Projects
None yet
Development

No branches or pull requests

5 participants