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

Error: Download directory does not exist or is not a directory #71

Closed
blackley opened this issue Jul 15, 2016 · 6 comments
Closed

Error: Download directory does not exist or is not a directory #71

blackley opened this issue Jul 15, 2016 · 6 comments
Labels

Comments

@blackley
Copy link

Hi all,

I am having problems with the configuration - i have the download folder set as ~/Downloads (the folder does exist), however I'm getting the error message - "Error: Download directory does not exist or is not a directory"

@mrworf
Copy link
Owner

mrworf commented Jul 15, 2016

Could it be you're running this using sudo? If so, ~ will refer to root's account, not your logged in account. Please try with an absolute path instead if using sudo.

@blackley
Copy link
Author

I have tried both sudo and as user and have put both full path and ~. Also i have been doing further testing and find that if i don't use the .plexupdate file and add the details to the script it works fine, however if using the .plexupdate file it fails everytime.

@mrworf
Copy link
Owner

mrworf commented Jul 15, 2016

Interesting, I'll have a look at it. Thanks

@mrworf mrworf added the bug label Jul 15, 2016
@blackley
Copy link
Author

blackley commented Jul 16, 2016

Some further investigation - If i add the details for additional advanced settings to the .plexupdate file then the download folder setting fail, however if i only have the email, password and download folder - then it appears to accept the download folder, however fails authentication. If i don't use the .plexupdate file and put all the settings in the script - it works fine.

I would prefer to use the .plexupdate file so i can use autoupdate feature and put this into a cron job :-)

@mrworf
Copy link
Owner

mrworf commented Jul 16, 2016

That sounds really odd to me. This is what I have in my .plexupdate

EMAIL=<my email>
PASS="<something secret>"
DOWNLOADDIR="~/"
#AUTOINSTALL=yes
KEEP=yes

And it works...

Check the following on your side:

  1. Make sure EMAIL, PASS and DOWNLOADDIR values are enclosed with quotes
  2. Doublecheck so your .plexupdate isn't in DOS format

An easy way to check for DOS format is:
grep "$(echo -e "\r\n")" .plexupdate

If it prints out all the lines, then your file is in DOS format which will not play nice with bash.

@blackley
Copy link
Author

blackley commented Jul 20, 2016

Thanks for the information - this issue is now resolved.

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

No branches or pull requests

2 participants