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

[BUG] Error when connecting a new account #38

Open
samuelvaneck opened this issue Oct 22, 2021 · 8 comments
Open

[BUG] Error when connecting a new account #38

samuelvaneck opened this issue Oct 22, 2021 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@samuelvaneck
Copy link

Describe the bug
When connecting a new account to the Dropbox with the docker container I get an error:

Dropbox needs to rename your existing folder or file named Dropbox to finish installing. Please close any open documents and try again.

I was able to get arround the issue by not updating Dropbox as startup using the DROPBOX_SKIP_UPDATE environment variable.

Versions:

  • Docker version`; 20.10.8
  • Docker Compose: v2.0.0
  • Image Name: otherguy/dropbox:1.9.0

Run Command:
Run the container with a docker-compose up:

version: "2.1"
services:
  dropbox:
    image: otherguy/dropbox:1.9.0
    container_name: dropbox
    environment:
      TZ: 'Europe/Amsterdam'
      DROPBOX_GID: 1004
      DROPBOX_UID: 1000
    volumes:
      - '/etc/timezone:/etc/timezone'
      - '/etc/localtime:/etc/localtime'
      - '/Users/user/Dropbox:/opt/dropbox/Dropbox'
      - './settings:/opt/dropbox/.dropbox'
    restart: always
    mem_limit: 4G

Additional context
Add any other context about the problem here.

@samuelvaneck samuelvaneck added the bug Something isn't working label Oct 22, 2021
@tstackhouse
Copy link

Also seeing this issue, the image ships with Dropbox 131.x, downloaded 134.x and got that error, using the SKIP_UPDATE env var got past that as well.

@marqsbla
Copy link

I was able to overcome the problem.
without updateing, I think the problem is different, this one: https://www.dropboxforum.com/t5/Dropbox-installs-integrations/Unable-to-start-dropbox-in-Ubuntu-20-04/td-p/545671

After updating to 135.4.4221, I had the error as in the describtion of the bug.

To make it work, I change the home directory in /etc/passwd for user dropbox to point into /opt/dropbox/Dropbox. It makes that volume you mount has a directory within Dropbox, but the application itself seems to work. I will write Dockerfile for myself that creates a fixed image, but I don't know whether it is actual fix or rather workaround...

Just for the record, I tried also, but didn't work:

  1. mounting different FS volumes to /opt/dropbox/Dropbox
  2. changing the permissions of /tmp (which is non-writable), but helped to get info about the error without update

@samuelvaneck
Copy link
Author

@marqsbla I've added you fix and works fine. I've modified the docker-entrypoint.sh added this line when setting the dropbox account.

usermod -d /opt/dropbox/Dropbox dropbox
chown dropbox:$(id -gn dropbox) /opt/dropbox/Dropbox -R

@marqsbla
Copy link

marqsbla commented Dec 8, 2021

I'm pretty sure, I left my dockerfile here, but it is not here :)

FROM otherguy/dropbox:latest
RUN usermod -d /opt/dropbox/Dropbox dropbox && \
    chmod 777 /tmp/

@normanu
Copy link

normanu commented Dec 30, 2021

Having the same issue as above.
If I make a image with above fix, dropbox keeps restarting itself.
I get the following error in the end,
/docker-entrypoint.sh: line 115: 45 Killed gosu dropbox "$@"

@normanu
Copy link

normanu commented Jan 8, 2022

Mm it seems
/docker-entrypoint.sh: line 115: 45 Killed gosu dropbox "$@"

Is being done every period the polling is set to, in my case 20 seconds
Anyone else having this issue?

@CooleRnax
Copy link

CooleRnax commented Jan 20, 2022

Having the same issue as above. If I make a image with above fix, dropbox keeps restarting itself. I get the following error in the end, /docker-entrypoint.sh: line 115: 45 Killed gosu dropbox "$@"

same issue

@samuelvaneck
Copy link
Author

Mm it seems

/docker-entrypoint.sh: line 115: 45 Killed gosu dropbox "$@"

Is being done every period the polling is set to, in my case 20 seconds

Anyone else having this issue?

I had the same issue after a while running the containers. I didn't find any other stable fix. What if done now is use image 1.9.0 at first startup with DROPBOX_SKIP_UPDATE environment variable set. Then stop the container and remove the environment variable to update Dropbox to the latest version.

It's a workaround but is running stable. We are moving to a different overal solution. We have decided yet which solution.

Any suggestions experience with other good dockerized solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants