[Support] Dropbox by otherguy


Recommended Posts

Overview: Support for otherguy's Dropbox container

Docker: https://hub.docker.com/r/otherguy/dropbox/

Github: https://github.com/otherguy/docker-dropbox

 

Donate if you like:

https://www.paypal.me/marcgutt

https://github.com/sponsors/mgutt

 

Description

This container uses the Debian OS without Frontend and the official Dropbox client to sync your Dropbox with an Unraid share. There is no GUI included. Sync activity can be monitored through the log icon of the container.

 

Known issues

As described on the Github page, Dropbox does not support FUSE filesystems. If it finds this filesystem, it returns a permission error. As Unraid uses FUSE as well, it is NOT POSSIBLE to set the "Dropbox user files" path to "/mnt/user/Dropbox". Instead you MUST use "/mnt/disk1/Dropbox" with Cache set to "No" or "/mnt/cache/Dropbox" with Cache set to "Yes". You COULD use the cache option "Yes" and the path "/mnt/disk1...", but new files will only be uploaded to your Dropbox AFTER Unraid's Mover has been executed.

 

As the client automatically checks for changes in your Dropbox, it writes constantly to a log file. This can wear-out your SSD if you are using BTRFS and a docker.img on your cache. This is not a bug. This is the usual write implification caused through a copy-on-write filesystem like BTRFS. If you are using BTRFS, change your docker installation to a folder.

Link to comment

Manual

  1. Install the container
  2. Optional: Change the user files path to /mnt/disk2/Dropbox or /mnt/cache/Dropbox (/mnt/user/Dropbox is not supported!)
  3. Open the docker tab (378332221_2021-03-2014_26_48.png.466d4d67c8fcda1e260512bf30669140.png) to see all installed docker containers
  4. Open the logs through the icon (1230040584_2021-03-2014_25_46.png.845afb079ce43948703a978a1f4e89e1.png) of the dropbox container
  5. Wait until you are prompted to open a Dropbox URL
  6. Copy & Paste the Dropbox URL into your browser
  7. Link your account

 

44044201_2021-03-2017_09_20.png.cef73772baeb2a83a05f61d7b821ca52.png

Link to comment
  • 1 month later...

is lan sync (--net="host") enabled?

 

and is there a way to see the dropbox sync status on a easy way on a windows client.

(syncin or syncing finished is enough)

 

i see that linux by default watches changes over 10.000 folders. 

how is this in unraid?

Monitoring more than 10,000 folders on Linux
From Troubleshoot Dropbox syncing issues:

The Linux version of the Dropbox desktop app is limited from monitoring more than 10,000 folders by default. Anything more than that is not watched and, therefore, ignored when syncing. There's an easy fix for this. Open a terminal and enter the following:

echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p

This command will tell your system to watch up to 100,000 folders. Once the command is entered and you enter your password, Dropbox will immediately resume syncing.

 

Edited by open_borre
Link to comment
  • 4 months later...

Hi mgutt,

 

I recently got two errors with this docker package.

 

1. Every restart of the docker container or unraid the container is getting a new Id and I have to activate it through the link in the logfile again

2. I am getting an error recently and have no idea where it is coming from:

 

This computer is now linked to Dropbox. Welcome XXX YYY
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_errorsn1t4ito.txt
Couldn't start Dropbox.

image.thumb.png.ec98569af6b48671c11129773019c9f0.png

 

image.png.5104092fb72ab8cbef0678a43e776a64.png

 

image.png.ec86ddf2ee0cd633b567a02c42a35efb.png

 

The owner is the user with the ID 1000 so that is double checked.

Even if I give the folder 777 it does not work.

 

Do you have any idea about my two issues?

Link to comment
On 9/26/2021 at 6:49 PM, jluerken said:

Bitte sehr

It seems you need to force the installation of an old version and disable updates through a variable:

https://github.com/otherguy/docker-dropbox/issues/37

 

This means uninstall the container, delete all files with clean up appdata and use a tag to force an older version.

 

Enable advanced view an change the repo as follows:

otherguy/dropbox:1.9.0

 

And add a variable "DROPBOX_SKIP_UPDATE" with "true" as value.

Link to comment

One more error is coming up in the logfile now:

Using Europe/Berlin timezone (11:14:37 local time)

Current default time zone: 'Europe/Berlin'
Local time is now: Tue Sep 28 11:14:38 CEST 2021.
Universal Time is now: Tue Sep 28 09:14:38 UTC 2021.

Starting dropboxd (125.4.3474)...
dropbox: locating interpreter
!! dropbox: failed to create log file (Permission denied)!
 

Link to comment

I'm having a small issue with this. I'm logged in but its been stuck on indexing files. I know I have a lot of files in my dropbox, 300,000appx. It's stuck indexing at the same number with 24 hours.

 

It eventually stops with this error:
 

RUST PANICKING -- "queue became corrupt while running: Custom { kind: Other, error: \"io error: failed to fill whole buffer\" }" at "desktop/app/lib/apex/rust/analytics/src/queue.rs":284

Edited by muttly.irl
Link to comment
  • 2 weeks later...

Hi,

 

Have installed dropbox as per instructions.  Im using a direct link /mnt/disk2/Dropbox as I have cache turned off for the directory.

 

After I link my account I keep getting this error:-

 

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

 

db2.thumb.jpg.53972cbb23575daeb060fb18c87cb35c.jpg

 

db1.thumb.PNG.d67371017c410b22fc984ed218c2e5ec.PNG

 

Link to comment

Yep that worked and its now syncing, thank you!

 

New problem, it wont let me access the directory from windows and says that I do not have permission to view the share.  Ive checked the SMB status and its set to public.  I tried mapping a drive and a network location and that didnt help.

 

Only thing Ive done different is change the repo and add the do not upgrade variable as instructed. 

 

Do I just need to let it finish syncing or do some chmod stuff to the container?

Edited by MendipMan
typos
Link to comment

Is there anyway to get this to accept the files already in my folder. As back ground, I had a Windows install and my dropbox folder was fully in sync. I'm moved to unraid and added this docker. I moved the full dropbox folder to a drive in my array with a dedicated share. The full folder is intact. Once the docker was running, pointed to the right folder and linked it attempts to sync and begins to download all files overwriting all existing files. I have a 5mb connection and its trying to download 1.5TB of data that is already there. Any idea whats going on and how to stop it downloading all existing files? There will be a few updates to upload and a few new files to download but 200 of each, max. Maybe about 50 files to update.

Link to comment
On 10/6/2021 at 5:03 PM, muttly.irl said:

I'm having a small issue with this. I'm logged in but its been stuck on indexing files. I know I have a lot of files in my dropbox, 300,000appx. It's stuck indexing at the same number with 24 hours.

 

It eventually stops with this error:
 

RUST PANICKING -- "queue became corrupt while running: Custom { kind: Other, error: \"io error: failed to fill whole buffer\" }" at "desktop/app/lib/apex/rust/analytics/src/queue.rs":284

Did you ever find the fix for this?  On my server the app has been shutting down roughly once an hour while syncing.  Its now finally finished but is still erroring out every 6 or so hours.

Link to comment
On 10/28/2021 at 4:32 PM, MendipMan said:

Did you ever find the fix for this?  On my server the app has been shutting down roughly once an hour while syncing.  Its now finally finished but is still erroring out every 6 or so hours.

No I haven't. There is a ticket open for it with 10 days #39 but there hasn't been a response on it yet.

 

What I've done is edit the docker, gone to advanced and added the following to the "Extra Parameters" section.

--restart unless-stopped

 

While it does not resolve the issue it does relaunch the docker. This has helped with my general syncing issue but I'm still no where near my initial sync being complete after almost a month.

  • Like 1
Link to comment
  • 1 month later...
On 9/28/2021 at 10:16 AM, jluerken said:


Starting dropboxd (125.4.3474)...
dropbox: locating interpreter
!! dropbox: failed to create log file (Permission denied)!
 

 

Fixed this by going into the docker console and typing

 

cd /

chmod -R 755 ./tmp

 

The tmp directory is where it stores the log file.

 

HTH

Link to comment
  • 3 months later...

My Dropbox container is syncing forever and the logfile does not help

Is there a way to check which files are synced and where the problem is?

 

today at 19:51:22Using Europe/Berlin timezone (19:51:22 local time)
today at 19:51:22
today at 19:51:22Current default time zone: 'Europe/Berlin'
today at 19:51:22Local time is now:      Sat Mar 19 19:51:22 CET 2022.
today at 19:51:22Universal Time is now:  Sat Mar 19 18:51:22 UTC 2022.
today at 19:51:22
today at 19:51:23Starting dropboxd (125.4.3474)...
today at 19:51:23dropbox: locating interpreter
today at 19:51:23dropbox: logging to /tmp/dropbox-antifreeze-l9UeLt
today at 19:51:23dropbox: initializing
today at 19:51:23dropbox: initializing python 3.8.10
today at 19:51:23dropbox: setting program path '/opt/dropbox/bin/dropbox-lnx.x86_64-125.4.3474/dropbox'
today at 19:51:23dropbox: setting python path '/opt/dropbox/bin/dropbox-lnx.x86_64-125.4.3474:/opt/dropbox/bin/dropbox-lnx.x86_64-125.4.3474/python-packages.zip'
today at 19:51:23dropbox: python initialized
today at 19:51:23dropbox: setting args
today at 19:51:23dropbox: running dropbox
today at 19:51:23dropbox: applying overrides
today at 19:51:23dropbox: enabling allocator metrics
today at 19:51:23dropbox: running command
today at 19:51:23dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-125.4.3474/cryptography.hazmat.bindings._openssl.cpython-38-x86_64-linux-gnu.so'
today at 19:51:23dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-125.4.3474/cryptography.hazmat.bindings._padding.cpython-38-x86_64-linux-gnu.so'
today at 19:51:23dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-125.4.3474/psutil._psutil_linux.cpython-38-x86_64-linux-gnu.so'
today at 19:51:23dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-125.4.3474/psutil._psutil_posix.cpython-38-x86_64-linux-gnu.so'
today at 19:51:23dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-125.4.3474/apex._apex.cpython-38-x86_64-linux-gnu.so'
today at 19:51:23dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-125.4.3474/tornado.speedups.cpython-38-x86_64-linux-gnu.so'
today at 19:51:24dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-125.4.3474/wrapt._wrappers.cpython-38-x86_64-linux-gnu.so'
today at 19:51:25dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-125.4.3474/PyQt5.QtWidgets.cpython-38-x86_64-linux-gnu.so'
today at 19:51:25dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-125.4.3474/PyQt5.QtCore.cpython-38-x86_64-linux-gnu.so'
today at 19:51:25dropbox: load fq extension '/opt/dropbox/bin/dropbox-lnx.x86_64-125.4.3474/PyQt5.QtGui.cpython-38-x86_64-linux-gnu.so'
today at 19:51:28Syncing 44 files • 9 secs
today at 19:51:28Indexing 38 files (9 secs)
today at 19:51:28Uploading 6 files...
today at 19:51:33Syncing 1,706 files • 1 min
today at 19:51:33Indexing 1,700 files (1 min)
today at 19:51:33Uploading 6 files...
today at 19:51:38Syncing 1,706 files • 2 mins
today at 19:51:38Indexing 1,700 files (2 mins)
today at 19:51:38Uploading 6 files...
today at 19:51:43Syncing 1,706 files • 3 mins
today at 19:51:43Indexing 1,700 files (3 mins)
today at 19:51:43Uploading 6 files...
today at 19:51:48Syncing 1,706 files • 6 mins
today at 19:51:48Indexing 1,700 files (6 mins)
today at 19:51:48Uploading 6 files...
today at 19:51:53Syncing 1,706 files • 10 mins
today at 19:51:53Indexing 1,700 files (10 mins)
today at 19:51:53Uploading 6 files...
today at 19:51:58Syncing 1,706 files • 16 mins
today at 19:51:58Indexing 1,700 files (16 mins)
today at 19:51:58Uploading 6 files...
today at 19:52:03Syncing 1,706 files • 27 mins
today at 19:52:03Indexing 1,700 files (27 mins)

 

Link to comment
  • 3 weeks later...

Quick question. Is there a way to setup this client so that files will never get removed? IOW, if I have folders or files in my Windows Dropbox and I erase files or loose rights (work account) to certain folders, the files from the unRAID docker are NOT erased from my server.

 

thank you.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.