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] Dropbox will rename your existing folder or file named "Dropbox" to finish installing. #60

Open
cristianogregnanin opened this issue Jul 29, 2022 · 15 comments
Assignees
Labels
bug Something isn't working

Comments

@cristianogregnanin
Copy link

Describe the bug
dropbox | [ALERT]: Dropbox needs to rename your existing folder or file named Dropbox to finish installing. Please close any open documents and try again.

Versions:

  • Docker (docker --version): Docker version 20.10.12, build e91ed57
  • Docker Compose (if used) (docker-compose --version): docker-compose version 1.29.2, build 5becea4c
  • Image Name: (docker inspect --format='{{.Config.Image}}' [container name])
  • Image ID: (docker inspect --format='{{.Image}}' [container name])
  • Labels: (docker inspect --format='{{json .Config.Labels}}' [container name])

Run Command:

version: '3'
services:
  dropbox:
    restart: always
    container_name: dropbox
    network_mode: host
    environment:
      - TZ=Europe/Rome
      - DROPBOX_UID=1000
      - DROPBOX_GID=1000
    volumes:
      - ./settings:/opt/dropbox/.dropbox
      - ./data:/opt/dropbox/Dropbox
    image: otherguy/dropbox:latest

Additional context

$ docker-compose up
Creating dropbox ... done
Attaching to dropbox
dropbox    | Checking for latest Dropbox version...
dropbox    | Latest   : 153.4.3932
dropbox    | Installed: 131.4.3968
dropbox    | Downloading Dropbox 153.4.3932...
######################################################################## 100.0%
dropbox    | Installing new version...
dropbox    | Dropbox updated to v153.4.3932
dropbox    | 
dropbox    | Using Europe/Rome timezone (21:24:49 local time)
dropbox    | 
dropbox    | Current default time zone: 'Europe/Rome'
dropbox    | Local time is now:      Fri Jul 29 21:24:50 CEST 2022.
dropbox    | Universal Time is now:  Fri Jul 29 19:24:50 UTC 2022.
dropbox    | 
dropbox    | Starting dropboxd (153.4.3932)...
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/cryptography.hazmat.bindings._openssl.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/cryptography.hazmat.bindings._padding.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/psutil._psutil_linux.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/psutil._psutil_posix.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/apex._apex.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/tornado.speedups.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/wrapt._wrappers.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/cryptography.hazmat.bindings._openssl.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/cryptography.hazmat.bindings._padding.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/psutil._psutil_linux.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/psutil._psutil_posix.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/apex._apex.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/tornado.speedups.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/wrapt._wrappers.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/cryptography.hazmat.bindings._openssl.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/cryptography.hazmat.bindings._padding.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/psutil._psutil_linux.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/psutil._psutil_posix.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/apex._apex.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/tornado.speedups.cpython-38-x86_64-linux-gnu.so'
dropbox    | dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-153.4.3932/wrapt._wrappers.cpython-38-x86_64-linux-gnu.so'
dropbox    | This computer isn't linked to any Dropbox account...
dropbox    | Please visit https://www.dropbox.com/cli_link_nonce?nonce=5c7654f9f58b11bc425d703be2431dc7 to link this device.
dropbox    | This computer isn't linked to any Dropbox account...
dropbox    | Please visit https://www.dropbox.com/cli_link_nonce?nonce=5c7654f9f58b11bc425d703be2431dc7 to link this device.
dropbox    | This computer isn't linked to any Dropbox account...
dropbox    | Please visit https://www.dropbox.com/cli_link_nonce?nonce=5c7654f9f58b11bc425d703be2431dc7 to link this device.
dropbox    | This computer is now linked to Dropbox. Welcome 
**dropbox    | [ALERT]: Dropbox will rename your existing folder or file named "Dropbox" to finish installing.
dropbox    | [ALERT]: Dropbox needs to rename your existing folder or file named Dropbox to finish installing. Please close any open documents and try again.
dropbox    | [ALERT]: Dropbox needs to rename your existing folder or file named Dropbox to finish installing. Please close any open documents and try again.
dropbox    | [ALERT]: Dropbox needs to rename your existing folder or file named Dropbox to finish installing. Please close any open documents and try again.
dropbox    | [ALERT]: Dropbox needs to rename your existing folder or file named Dropbox to finish installing. Please close any open documents and try again.
dropbox    | [ALERT]: Dropbox needs to rename your existing folder or file named Dropbox to finish installing. Please close any open documents and try again.**

I can't find the solution.

@cristianogregnanin cristianogregnanin added the bug Something isn't working label Jul 29, 2022
@m3talstorm
Copy link

I'm getting this aswell

@noygal
Copy link

noygal commented Aug 10, 2022

I'm having this issue as well, if someone finds a work around please share.

@biggeeus
Copy link

I was getting this when a rebuilt my computer, the work around I used was to copy the Dropbox folder from my the backup I took to my home directory. The container then started ok.

@ColColonCleaner
Copy link

Running into this same problem. Has anyone here found the solution? This is on a new install, not a backup, so there isn't an existing file I can copy over to make it work.

@biggeeus
Copy link

Have you tried downloading your files from your Dropbox in the cloud so you have matching folder on your computer ? In essence that all is I did.

@jwueller
Copy link

I tried debugging this, but I came up short so far. It seems that something is locking the folder while Dropbox tries to rename it.

# rmdir /opt/dropbox/Dropbox/
rmdir: failed to remove '/opt/dropbox/Dropbox/': Device or resource busy

After getting lsof running in the container it spits out this:

# lsof /opt/dropbox/Dropbox/
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF     NODE NAME
docker-en    1 root  cwd    DIR    9,1     4096 94504747 /opt/dropbox/Dropbox
sleep     1260 root  cwd    DIR    9,1     4096 94504747 /opt/dropbox/Dropbox

Does the image create the /opt/dropbox/Dropbox/ folder? Maybe then the solution is to just let Dropbox create it instead.

@jlerebours
Copy link

Hi, same error for me.
I have not set UID or GID since I'm running it with my own user.
I even tried to set full permission on folder (777) or try to let the container create it, nothing is working.
Did someone find a solution ?

@kanecko
Copy link

kanecko commented Jan 19, 2023

I am having the same issue. Haven't found a solution yet.

@JonBox
Copy link

JonBox commented Mar 12, 2023

Also encountering this issue

@tuzumkuru
Copy link

Same issue, is there any solution?

@adamkdean
Copy link

Same issue, no solution so far?

@hyzteric
Copy link

hyzteric commented May 4, 2023

Same here on Debian 11

@Jinra
Copy link

Jinra commented May 21, 2023

Same issue on Unraid

@endotronic
Copy link
Contributor

It seems that something is locking the folder while Dropbox tries to rename it.

This image exposes a volume for the Dropbox folder, so it is locked. You probably also had a volume mounted there - can't rename that while the container is running.

I hit this issue and was frustrated enough to work around it. See my PR for a workaround. It just changes the volumes so that Dropbox can create its own Dropbox folder. It's not a clean solution though; you may need to not mount your Dropbox folder on the first run and then recreate the container with that volume after Dropbox has finished setting up.

Hope this helps somebody. I'm up and running again at least. :)

@BoostCookie
Copy link

you may need to not mount your Dropbox folder on the first run and then recreate the container with that volume after Dropbox has finished setting up.

This is exactly what worked for me. First time start the container without mounting the volume. After having the setting-directory all set up, you can start it with the mount point of the download directory.

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