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

Permission denied #24

Open
delugach opened this issue Oct 23, 2018 · 1 comment
Open

Permission denied #24

delugach opened this issue Oct 23, 2018 · 1 comment

Comments

@delugach
Copy link

docker logs dropbox shows:

Couldn't start Dropbox.
This is usually because of a permissions error. Storing your home folder on a network share can also cause an error.
Get more help at https://www.dropbox.com/c/help/permissions_error
Please contact Dropbox support with the following info for help:
/var/tmp/dropbox_errorqg7annf1.txt

I presume that I'm supposed to run with -v ~homedir/Dropbox/:/dbox/Dropbox to do the mount. I've tried the run command with various combinations of the uid/gid environment variables, all with the same negative result.

Do I have to re-link the Dropbox account every time I run the container? If so, then I have to manually intervene every time my host is re-started (and thus the container is re-started). Am I missing something?

Since Dropbox dropped support for my O/S, it would be very helpful to actually use Dropbox this way. Thanks!

@bandtank
Copy link

bandtank commented Apr 11, 2019

Which OS are you using?

You don't need to link the account each time if you store the credentials outside the container. My setup looks like this:

/dbox/Projects
/dbox/Public
/dbox/Private

And my containers are started like this:

docker run
   --detach=true
   --volume=/dbox/Projects:/dbox/Dropbox
   --restart=always
   --net=host
   --name=projects
   janeczku/dropbox
docker run
   --detach=true
   --volume=/dbox/Public:/dbox/Dropbox
   --restart=always
   --net=host
   --name=public
   janeczku/dropbox
docker run
   --detach=true
   --volume=/dbox/Private:/dbox/Dropbox
   --restart=always
   --net=host
   --name=private
   janeczku/dropbox

Doing it that way requires linking each docker container to your account, which may or may not be what you want. I do it that way because I am using different accounts for each container. If you want to use the same account for each container, you have to share the credentials.

Sharing credentials is supposed to be done like this:

/dbox/Projects
/dbox/Public
/dbox/Private
/dbox/.dropbox
docker run
   --detach=true
   --volume=/dbox/Private:/dbox/Dropbox
   --volume=/dbox/.dropbox:/dbox/.dropbox
   --restart=always
   --net=host
   --name=public
   janeczku/dropbox

However, that doesn't seem to work for me. If anyone knows how to fix it, please let me know.

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

No branches or pull requests

2 participants