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

Problem with background downloading #15885

Closed
n00b12345 opened this issue Mar 16, 2018 · 2 comments
Closed

Problem with background downloading #15885

n00b12345 opened this issue Mar 16, 2018 · 2 comments

Comments

@n00b12345
Copy link

@n00b12345 n00b12345 commented Mar 16, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.03.14. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.03.14

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

I'm running youtube-dl on a Raspberry Pi.

I have a bash script which enables me to run youtube-dl. It's nothing fancy, just has a simple youtube-dl command.

I am able to download videos perfectly when I run the bash script in the foreground.

However, whenever I run it in the background by initiating it through a cron job, I run into a problem. Everything other than the youtube-dl command gets executed. In order to debug, I tried adding -v to the command and exporting the output to a log file. Unfortunately the script completely skips the youtube-dl command and the log file remains empty.

Like I said, the exact same script runs perfectly when run from the foreground.

The issue I face is similar to #10996 and #10706.

A little help would really be great.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 17, 2018

Most likely youtube-dl is not in PATH for a user cron job is running on behalf of and you did not redirect stderr to a log file.

@dstftw dstftw closed this Mar 17, 2018
@n00b12345
Copy link
Author

@n00b12345 n00b12345 commented Mar 17, 2018

@dstftw thank you so much. Using /usr/local/bin/youtube-dl totally solved the issue. Thanks for helping.

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.