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

Youtube-dl hangs during Cron or remote run #13627

Closed
jackalblood opened this issue Jul 10, 2017 · 5 comments
Closed

Youtube-dl hangs during Cron or remote run #13627

jackalblood opened this issue Jul 10, 2017 · 5 comments

Comments

@jackalblood
Copy link

@jackalblood jackalblood commented Jul 10, 2017

[Log]

System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'-a', u'/home/user/webriplist.txt', u'-o', u'/home/user/Media/Webrips/%(title)s-%(id)s.%(ext)s']
[debug] Batch file urls: [u'http://roosterteeth.com/episode/rt-podcast-2017-podcast-439-post-show-wg94jg', u'http://achievementhunter.roosterteeth.com/episode/off-topic-the-achievement-hunter-podcast-2017-84-jgioyj', u'http://achievementhunter.roosterteeth.com/episode/off-topic-the-achievement-hunter-podcast-2017-last-call-84-diofg4', u'http://funhaus.roosterteeth.com/episode/gameplay-2017-syshack']
[debug] Encodings: locale UTF-8, fs UTF-8, out None, pref UTF-8
[debug] youtube-dl version 2017.07.02
[debug] Python version 2.7.12 - Linux-4.4.0-78-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg git-2017-05-18-e434840, ffprobe git-2017-05-18-e434840, rtmpdump 2.4
[debug] Proxy map: {}
WARNING: unable to extract OpenGraph description; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

[Issue Report}

When running Youtube-dl i will run into this issue however this only occurs if the command is run remotely using ssh user@ip -p 22 /path/to/shscript.sh
or if the same script is run using crontab it will have the same error

however if i ssh into the server and then manually run the script with the same links the error will not occur so it only hangs if run by cron or as part of a ssh command from another server

this has been happening for months and ive always been up to date ive tried install by pip and by ppa repo for Ubuntu

if there is anymore info i can provide please just ask very happy to help fix this issue since the program when run manually is flawless

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 10, 2017

Provide log of a cron task.

@jackalblood
Copy link
Author

@jackalblood jackalblood commented Jul 10, 2017

id like to but it comes up blank hence why i also replicated it using remote connection

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 10, 2017

There is no difference running it locally or remotely. How do you even determine it "hangs", it may be just downloading videos.

@dstftw dstftw closed this Jul 10, 2017
@jackalblood
Copy link
Author

@jackalblood jackalblood commented Jul 10, 2017

because as you can see the error is at the end of the debug log however if you run as the user directly it will complete the download

so like ive shown above if i run ssh user@ip -p 22 /path/to/youtubedl.sh ill get the error

but if i do

ssh user@ip -p 22 (press enter)

/path/to/youtubedl.sh (press enter)

it completes just fine

although they are essentially the same command something is different when run as part of another command

in regards to knowing if it completed or i just check my output folder when run with the breaks to push enter the files download and appear in my output folder delete them run as part of ssh and they wont appear even after hours

@jackalblood
Copy link
Author

@jackalblood jackalblood commented Jul 10, 2017

Solved the issue by first invoking a screen on remote server then running the .sh script

example

screen -dmS (name) /path/to/script.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.