-
Notifications
You must be signed in to change notification settings - Fork 6
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
Playlists did not fully download on newly built IIAB or upgraded server — 'NoneType' object cannot be interpreted as an integer — failed to download: Download appears to be stuck. #158
Comments
Thanks @EMG70. I'll get back to you ASAP with a fix. |
@EMG70 Cannot reproduce your issue yet. I'd like to know your yt-dlp version if your vm is still up. Did you have a previously failed video? By the way, it looks like you didn't include PR #151 in your test (it shouldn't prevent you from downloading a playlist though). If ever you decide to give it a try again, please consider also #157, it will prevent a bug that affects redownload when a stuck video is encountered |
@deldesir are you saying the yt-dlp version number is not clearly visible in logs? (If true, please fix this right away — with a separate/tiny PR ideally — thank you!) |
All my servers do not have yt-dlp installed as a seperate package (it seems it was done as part of calibre-web)... ? |
@EMG70 can you please first run...
...to become root? (Just in case |
@deldesir please (also) confirm on a fresh VM that yt-dlp installs properly, and works, and that root can run: (@EMG70 has confirmed that |
FYI @EMG70 has found the symlink to yt-dlp is broken. As his OS or environment has placed the yt-dlp program in:
Whereas the symlink points to:
As a result of: |
Just as a temporary measure, @EMG70 has forced the symlink: |
Please confirm (anybody, but especially @deldesir) if this yt-dlp path problem is a difference between Ubuntu 23.10 and 24.04 ? (And if so, which other OS's have this path problem?) |
I confirm |
The yt-dlp path needs to be verified on these OS's:
|
Can someone please verify this very simple path question on Debian 12 ? |
Just for the record, IIAB changed to the longer |
I will try on Debian 12 and update you. |
IIAB-DIAGNOSTICS -http://sprunge.us/ah4JJU?en |
Confirmed my side as well.It seems the problem is on my 23.10 PC which i was trying with. |
Thanks @EMG70: While running PS Just a reminder for all that Debian 12 VM's can instantly be created as follows:
Of course VM needs to have sufficient cores/RAM/disk and networking...
|
@EMG70 are you sure Ubuntu 23.10 is a problem? It would seem to be proceeding ( to download many-if-not-all videos from playlist https://www.youtube.com/playlist?list=PLX7zbg8RLwZidglkj3jNejTIShI3hXrYc ) for me... iiab-diagnostics: http://sprunge.us/KvdN0j?en
|
@deldesir please help everyone understand why about 1/3 of videos failed to download above. Specifically, here are 12 of 40 videos that failed:
|
@holta these failures are related to #135. The affected videos just cannot be downloaded due to unavailable fragments. Trying to understand this issue, I noticed last month all yt-dlp versions do not behave the same. For example this video downloaded or failed based on the underlying yt-dlp version. https://www.youtube.com/watch?v=fAT52n5Lavg YT-DLP 2023.11.16: ✅ YT-DLP 2024.03.10: ❌ |
@deldesir that's a powerful discovery. Can you post a ticket to https://github.com/yt-dlp/yt-dlp/issues explaining this yt-dlp regression for all? Ideally with a minimal reproducer CLI example, e.g. an actual
|
Documentation https://github.com/iiab/calibre-web/wiki#gear-back-end clarified for @EMG70 and implementers/contributors: |
SUDO IIAB-DIAGNOSTICS - http://sprunge.us/V8a9MF?en I have created a new 23.10 VM and tested as follows.I can now download playlists ,35/40 downloaded OK - https://www.youtube.com/playlist?list=PLX7zbg8RLwZidglkj3jNejTIShI3hXrYc .The 5 failed videos had error ( failed to download:download appears to be stuck) I have no idea why a PC running 23.10 with Calibre-Web upgraded stopped working as before. |
Thank you @EMG70 for another very valuable data point ! Conclusion: Ubuntu 23.10 is not the problem (especially now that PR iiab/iiab#3732 is merged!) |
@nzola is also experiencing a lot of "failed to download: Download appears to be stuck." errors. Is it possibly happening a lot more often among longer videos of 60+ min duration? (Please confirm if you see a distinct pattern!) |
Improvements have been made since. The flash message "This is taking longer than expected" is not an error message. It showed up when no data is received for 30 seconds or more. It generally resumes back to normal. Be aware network issue can trigger this too. |
@EMG70 please retest downloading the above 12 videos if you can?! |
SUDO IIAB-DIAGNOSTICS - https://dpaste.com/7RJ2958HS I have tried to download the whole playlist Bricklaying for beginners |
@deldesir please investigate on Monday, can you? 🙏 |
Short Notice from the maintainer
After 6 years of more or less intensive programming on Calibre-Web, I need a break.
The last few months, maintaining Calibre-Web has felt more like work than a hobby. I felt pressured and teased by people to solve "their" problems and merge PRs for "their" Calibre-Web.
I have turned off all notifications from Github/Discord and will now concentrate undisturbed on the development of “my” Calibre-Web over the next few weeks/months.
I will look into the issues and maybe also the PRs from time to time, but don't expect a quick response from me.
Please also have a look at our Contributing Guidelines
Describe the bug/problem
The previously working IIAB Calibre-Web download feature for playlists no longer works.Individual videos of playlist are however downloading well.Several attempts were made to reset Calibre-Web but could not download any playlist.
A clear and concise description of what the bug is. If you are asking for support, please check our Wiki if your question is already answered there.
To Reproduce
Steps to reproduce the behavior:
2.https://www.youtube.com/playlist?list=PLjqIPx3Kj-fV9Jf1Xl9zV7Ch6MoZDAL_P
The download takes long irrespective of size of playlist,error says "It appears download is stuck" or failed "NonTYpe" ,object cannot be interpreted as an integer
Logfile
SUDO IIAB-DIAGNOSTICS - http://sprunge.us/r4fIkY?en
Add content of calibre-web.log file or the relevant error, try to reproduce your problem with "debug" log-level to get more output.
Expected behavior
A clear and concise description of what you expected to happen.
A successful download of a playlist is expected.
Screenshots

If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
OS: [e.g. Windows 10/Raspberry Pi OS]
Python version: [e.g. python2.7]
Calibre-Web version: [e.g. 0.6.8 or 087c4c5 (git rev-parse --short HEAD)]:
Docker container: [None/LinuxServer]:
Special Hardware: [e.g. Rasperry Pi Zero]
Browser: [e.g. Chrome 83.0.4103.97, Safari 13.3.7, Firefox 68.0.1 ESR]
Additional context
Add any other context about the problem here. [e.g. access via reverse proxy, database background sync, special database location]
The text was updated successfully, but these errors were encountered: