@rayzor i had the same issue where after linking my device it just said:
[ALERT]: Dropbox needs to rename your existing folder or file named Dropbox to finish installing. Please close any open documents and try again.
And if i restarted the container it would have to reconnect again. The way i resolved this was by specifying v1.9.0 of the image which is apparently before the dropbox update that causes the above alert.
dropbox:
image: otherguy/dropbox:1.9.0
container_name: dropbox
network_mode: host
restart: unless-stopped
environment:
- DROPBOX_UID=$PUID
- DROPBOX_GID=$PGID
- POLLING_INTERVAL=20
- DROPBOX_SKIP_UPDATE=true
volumes:
- $USERDIR/dropbox/config:/opt/dropbox/.dropbox
- $USERDIR/dropbox/data:/opt/dropbox/Dropbox
This would start and i could use the link from the logs to successfully link the account and then the logs would just show "Syncing..." over and over but no files would sync. You'll notice that the version of dropbox is very out of date. Stop the container and change the image to be the latest and remove the DROPBOX_SKIP_UPDATE param
dropbox:
image: otherguy/dropbox:latest
container_name: dropbox
network_mode: host
restart: unless-stopped
environment:
- DROPBOX_UID=$PUID
- DROPBOX_GID=$PGID
- POLLING_INTERVAL=20
volumes:
- $USERDIR/dropbox/config:/opt/dropbox/.dropbox
- $USERDIR/dropbox/data:/opt/dropbox/Dropbox
Dropbox should update to the latest version, skip the alert about needing to rename the existing folder, and start syncing