Giter Club home page Giter Club logo

Comments (8)

zxarr avatar zxarr commented on June 11, 2024

+1 for this. I've just installed fresh... issue persists for any channel I try.

EDIT:

Scratch that. I removed the config and video folder and redeployed. I think it's just due to a really large channel and TubeSync trying to download EVERYTHING. I hadn't set it to a 7 day limit.

After the re-deploy I got the same issue, but only when I set it to download EVERYthing on a massive channel.

After setting it to a 7 day limit, which seemed to require me to re-dploy as I found no way to cancel all the downloads that were occurring, it seems to be working.

I'd suggest the default be '7 days' when setting up a new channel and not No Cap, or a defaults section that would allow you to specify custom defaults, so it's then safe to just add channels without going through the list of options.

from tubesync.

romale23 avatar romale23 commented on June 11, 2024

I just put in a palylist with 7 videos, still get same issues. https://www.youtube.com/playlist?list=PLPe5oHlbIf0z5_wzsSn8ySWuNttCH7P-f

from tubesync.

romale23 avatar romale23 commented on June 11, 2024

I'm going to try deleting everything and bringing it in fresh

from tubesync.

meeb avatar meeb commented on June 11, 2024

@romale23 First please make sure you're running the latest release from yesterday (v0.13.4). Given the channel you've pasted works fine for me if that still isn't working your error basically means "YouTube returned a 404 when it shouldn't have" which might be something like YouTube has limited or otherwise blocked your IP.

There are some tools to debug this, in a shell type this:

$ docker exec -ti tubesync python3 /app/manage.py youtube-dl-info "https://www.youtube.com/channel/UCF-uND-dn42ty_EEGBHy_9w/videos"

If this is working correctly it should return a huge blob of JSON to the terminal, which is the index of the media on the channel. If something else happens (like a 404) then it's not tubesync or yt-dlp but likely an issue with your connection to YouTube itself.

from tubesync.

romale23 avatar romale23 commented on June 11, 2024

I'm guessing this means youtube is somehow blocking mean.

Showing information for URL: https://www.youtube.com/channel/UCF-uND-dn42ty_EEGBHy_9w/videos
2024-02-27 12:36:24,708 [tubesync/WARNING] [youtube:tab] <urllib3.connection.HTTPSConnection object at 0x7fd83722a290>: Failed to establish a new connection: [Errno 111] Connection refused. Retrying (1/3)...
2024-02-27 12:36:24,709 [tubesync/WARNING] [youtube:tab] <urllib3.connection.HTTPSConnection object at 0x7fd837228650>: Failed to establish a new connection: [Errno 111] Connection refused. Retrying (2/3)...
2024-02-27 12:36:24,710 [tubesync/WARNING] [youtube:tab] <urllib3.connection.HTTPSConnection object at 0x7fd83724c410>: Failed to establish a new connection: [Errno 111] Connection refused. Retrying (3/3)...
2024-02-27 12:36:24,710 [tubesync/WARNING] [youtube:tab] Unable to download webpage: <urllib3.connection.HTTPSConnection object at 0x7fd83724dbd0>: Failed to establish a new connection: [Errno 111] Connection refused (caused by TransportError('<urllib3.connection.HTTPSConnection object at 0x7fd83724dbd0>: Failed to establish a new connection: [Errno 111] Connection refused')). Giving up after 3 retries
2024-02-27 12:36:24,712 [tubesync/WARNING] [youtube:tab] <urllib3.connection.HTTPSConnection object at 0x7fd83724d990>: Failed to establish a new connection: [Errno 111] Connection refused. Retrying (1/3)...
2024-02-27 12:36:24,713 [tubesync/WARNING] [youtube:tab] <urllib3.connection.HTTPSConnection object at 0x7fd83724f210>: Failed to establish a new connection: [Errno 111] Connection refused. Retrying (2/3)...
2024-02-27 12:36:24,714 [tubesync/WARNING] [youtube:tab] <urllib3.connection.HTTPSConnection object at 0x7fd83724dd50>: Failed to establish a new connection: [Errno 111] Connection refused. Retrying (3/3)...
2024-02-27 12:36:24,719 [tubesync/ERROR] ERROR: [youtube:tab] UCF-uND-dn42ty_EEGBHy_9w: Unable to download API page: <urllib3.connection.HTTPSConnection object at 0x7fd837b15790>: Failed to establish a new connection: [Errno 111] Connection refused (caused by TransportError('<urllib3.connection.HTTPSConnection object at 0x7fd837b15790>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
File "/app/manage.py", line 18, in
main()
File "/app/manage.py", line 14, in main
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.11/dist-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.11/dist-packages/django/core/management/init.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/dist-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/dist-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/sync/management/commands/youtube-dl-info.py", line 17, in handle
info = get_media_info(url)
^^^^^^^^^^^^^^^^^^^
File "/app/sync/youtube.py", line 89, in get_media_info
raise YouTubeError(f'Failed to extract_info for "{url}": No metadata was '
sync.youtube.YouTubeError: Failed to extract_info for "https://www.youtube.com/channel/UCF-uND-dn42ty_EEGBHy_9w/videos": No metadata was returned by youtube-dl, check for error messages in the logs above. This task will be retried later with an exponential backoff.

from tubesync.

meeb avatar meeb commented on June 11, 2024

No that's nothing to do with YouTube, that log shows your tubesync container can't access the internet at all with a connection refused error. Check your firewalls and other likely networking options.

from tubesync.

romale23 avatar romale23 commented on June 11, 2024

So, feedback: GOT IT!!!!
meeb: Thank you so much for you help. I hate bothering people like yourself because i don't know how all this works well enough. Your last post told me what to look for and i found it :D
it was the dns server in /etc/resolv.conf
For anyone else looking this up this is what i put in there instead of the 127.whatever.whatever.whatever (i don't remember)
GNU nano 7.2 /etc/docker/daemon.json {
"dns": ["10.1.2.3", "8.8.8.8"]
}

from tubesync.

meeb avatar meeb commented on June 11, 2024

Heh, absolutely no problem at all. Thanks for posting the solution in case others stumble over this. The default resolver was probably 127.0.0.53. Having this fail could either be an issue with your Docker setup, or with systemd-resolved on the host machine which you might want to investigate further.

from tubesync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.