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 is unable to read cookies file for some reason, spits "ERROR: unable to open cookie file" #664

Closed
gaurish opened this issue Feb 2, 2013 · 5 comments

Comments

@gaurish
Copy link

@gaurish gaurish commented Feb 2, 2013

youtube-dl is terminating with the error message:
ERROR: unable to open cookie file

But the thing is the file exists, has correct permissions & the path is correct too. please see the log below

$ ls /home/gaurish/cookie.txt 
-rwxr-xr-x 1 gaurish users 1.1K Feb  2 16:02 /home/gaurish/cookie.txt

$ youtube-dl --verbose --cookies /home/gaurish/cookie.txt http://youtube.com/XXXXXXX
ERROR: unable to open cookie file

$ youtube-dl --version
2013.01.13

so I can't think of another reason other than this could be a bug. Thoughts?

@phihag
Copy link
Contributor

@phihag phihag commented Feb 2, 2013

Are you sure the format of the cookie file is correct? Can you post an example file that causes the error? In any case, I added better debugging output in youtube-dl 2013.02.02. What output do you get with

sudo youtube-dl -U
youtube-dl -v BaW_jenozKc --cookies ~/cookie.txt --test
@phihag
Copy link
Contributor

@phihag phihag commented Feb 5, 2013

Sorry, but without any additional information, all we can do is speculate about the contents of the cookie file.

@gaurish
Copy link
Author

@gaurish gaurish commented Feb 5, 2013

The cookie format is wget compatible, generated using cookie.txt export google chrome extension.

Are you able to reproduce the behavior using cookie generated from this extension?

@gaurish
Copy link
Author

@gaurish gaurish commented Oct 7, 2014

Closing this as its too old

@gaurish gaurish closed this Oct 7, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Oct 7, 2014

Sorry, I don't follow. Can you still reproduce the problem? If so, please say so and we'll reopen this issue. It would be nice if you could provide the output of strace, as that should be able to tell us with definitive knowledge whether file opening really fails.

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.