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

Writing cache #4930

Closed
ghost opened this issue Feb 11, 2015 · 3 comments
Closed

Writing cache #4930

ghost opened this issue Feb 11, 2015 · 3 comments

Comments

@ghost
Copy link

@ghost ghost commented Feb 11, 2015

WARNING: Writing cache to u'/root/.cache/youtube-dl/youtube-sigfuncs/js_en_US-vflQkSGin_40.41.json' failed: Traceback (most recent ca$
File "/usr/local/bin/youtube-dl/youtube_dl/cache.py", line 46, in store
os.makedirs(os.path.dirname(fn))
File "/usr/lib/python2.7/os.py", line 150, in makedirs
makedirs(head, mode)
File "/usr/lib/python2.7/os.py", line 150, in makedirs
makedirs(head, mode)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/root/.cache'

root@abcd:~# ls -lah
drwxrwxrwx 6 root root 4.0K Dec 19 03:24 .cache

@phihag
Copy link
Contributor

@phihag phihag commented Feb 11, 2015

Are you running youtube-dl as root? You should not do that. Can you also post the full output you get when you add -v to the command-line, and run id afterwards? What happens if you run mkdir /root/.cache/foo in the command line?

@phihag
Copy link
Contributor

@phihag phihag commented Feb 11, 2015

By the way, you can use the --cache-dir option to specify a cache directory. This may help here.

@ghost
Copy link
Author

@ghost ghost commented Feb 11, 2015

--cache-dir is good idea, is okay to "/tmp" directory. Thanks.

@dstftw dstftw closed this May 20, 2016
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.