-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fetchart hangs forever if server doesn't respond #5454
Comments
Interestingly we do set a timeout but it hangs anyway: Lines 271 to 272 in 03f1205
|
Hopefully Trying to $ curl https://coverartarchive.org/release/d0ddc2ca-5300-38ba-bb7d-83053369319c -L
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the webpage mentioned above.
fetchart: downloading image: https://coverartarchive.org/release/d0ddc2ca-5300-38ba-bb7d-83053369319c
fetchart: error fetching art: HTTPSConnectionPool(host='archive.org', port=443): Max retries exceeded with url: /download/mbid-d0ddc2ca-5300-38ba-bb7d-83053369319c/index.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)'))) |
I think I was attempting this whilst archive.org was actively being DDoS'd, so curl would hang at I feel like there's probably still an issue here, as fetchart shouldn't hang if a service never responds. |
I can't reproduce this now even if I try it with a test server that hangs in the same way archive.org did (no ACK). |
I still have this problem, either it makes it through after some (mostly very long) time or just hangs forever. But it never times out. I guess disabling fetchart or using a different source is best for now? |
You can try excluding the fetchart:
sources:
- filesystem
- - coverart
- itunes
- amazon
- albumart
- wikipedia
- google
- fanarttv
- lastfm
- cover_art_url Since I've got $ beet list art_source::.. -f '$art_source' | sort | uniq -c | sort -n
1 fanarttv
7 wikipedia
19 lastfm
22 spotify
118 cover_art_url
320 coverart
386 filesystem
1950 itunes
3985 bandcamp |
Reopening as I can reproduce this again and I think I've found the root cause. We have a timeout set for Lines 364 to 366 in f8b1071
By default, I've also noticed that the Wikipedia source has a timeout of 2500 seconds, which seems a bit high - maybe it was meant to be 2.5s? |
I am having a similar issue:
Interestingly, the link opens just fine in my browser, so the archive server doesn't seem to be down at the moment? |
@jackwilsdon This seems to call class RequestMixin:
"""Adds a Requests wrapper to the class that uses the logger, which
must be named `self._log`.
"""
def request(self, *args, **kwargs):
"""Like `requests.get`, but uses the logger `self._log`.
See also `_logged_get`.
"""
return _logged_get(self._log, *args, **kwargs) |
@snejus yeah you're right - not quite sure where I thought I was going with that one 🤦 |
Problem
Running this command in verbose (
-vv
) mode:$ beet -vvv fetchart album:"TRON: Legacy R3C0NF1GUR3D"
Led to this problem:
https://coverartarchive.org/release/d0ddc2ca-5300-38ba-bb7d-83053369319c redirects to https://archive.org/download/mbid-d0ddc2ca-5300-38ba-bb7d-83053369319c/index.json but archive.org is currently down.
Setup
beet version
reports 1.6.1 because 33ab22d didn't make it into 2.0.0)My configuration is:
The text was updated successfully, but these errors were encountered: