You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
sleepysloth
4 years agoExplorer | Level 3
files missing in synced folders on Linux, but not online or on Windows
I've been using Linux for a few months and the Linux version of Dropbox has been great. Recently, though, I wiped Linux, installed Windows, and then installed Linux again so I can dual-boot. I didn't...
Здравко
Legendary | Level 20
Hi sleepysloth,
I have no idea what exactly you have done in your account, but this isn't resulted by Dropbox application (if everything used correctly). Have you changed permissions in your account (intentionally or not) or some configuration changes? This could be a result of some sophisticated games with the system, without actually aware what exactly you are doing.
Ok, let see what is the actual state (what you have done - we assume unintentionally). What's the result of following commands:
id ls -ld ~/.dropbox*
I have some guesses as to what the reason is. Try following commands:
sudo chown -R naomi ~/.dropbox* chmod -R u+rw ~/.dropbox*
Post the results coming from first code block and if there is some error message coming from second code block. 🤔 Based on results we will step up further.
sleepysloth
4 years agoExplorer | Level 3
Here's the results of the first two:
uid=1000(naomi) gid=1000(naomi) groups=1000(naomi),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),120(lpadmin),131(lxd),132(sambashare),998(nordvpn)
drwx------ 8 naomi naomi 4096 Jan 23 14:11 /home/naomi/.dropbox
drwxrwxr-x 3 naomi naomi 4096 Jan 13 18:26 /home/naomi/.dropbox-dist
And I didn't get any errors from the second.
- Здравко4 years agoLegendary | Level 20
Ok, seems you have proper access rights on the folders (including configuration one). Let see what about the configuration content. Post the following command result:
ls -al ~/.dropbox
What outs the following command too:
cat ~/.dropbox/info.json; echo
🤔
- sleepysloth4 years agoExplorer | Level 3
Thank you for bearing with me with during this process, I really appreciate it!
The output for the first one:
total 48
drwx------ 8 naomi naomi 4096 Jan 27 10:09 .
drwxr-xr-x 26 naomi naomi 4096 Jan 30 10:57 ..
srw------- 1 naomi naomi 0 Jan 27 10:09 command_socket
-rw-rw-r-- 1 naomi naomi 4 Jan 27 10:09 dropbox.pid
drwx------ 2 naomi naomi 4096 Dec 29 19:34 events
-rw-rw-r-- 1 naomi naomi 65 Jan 27 10:12 host.db
srw------- 1 naomi naomi 0 Jan 27 10:09 iface_socket
-rw-rw-r-- 1 naomi naomi 110 Jan 27 10:12 info.json
drwx------ 3 naomi naomi 4096 Jan 30 13:18 instance1
drwx------ 2 naomi naomi 4096 Jan 27 10:12 instance_db
drwxrwxr-x 5 naomi naomi 4096 Dec 29 19:34 logs
drwxrwxr-x 2 naomi naomi 4096 Dec 29 19:34 machine_storage
drwxrwxr-x 2 naomi naomi 4096 Dec 29 19:36 metrics
-rw-rw-r-- 1 naomi naomi 248 Dec 29 19:34 unlink.dbAnd for the second:
{"personal": {"path": "/mnt/sdc1/Dropbox", "host": 68330243136, "is_team": false, "subscription_type": "Pro"}}
- Здравко4 years agoLegendary | Level 20
Hi sleepysloth,
It's really strange! 🤔 There are contradictions in your information. Seems, you have full access, but you're receiving "Permission denied". I have to confess, don't have any explanation to that.
Anyway... We can check a little twisted version. What's the result of the following command:
echo -n "Your Dropbox folder /mnt/sdc1/Dropbox entries approximate count is "; tree -a "/mnt/sdc1/Dropbox" | wc -l; sysctl fs.inotify.max_user_watches; echo -n "Current status is "; dropbox status; stat -f /mnt/sdc1/Dropbox
Let's see.
- sleepysloth4 years agoExplorer | Level 3
Here are the results I got from that:
Your Dropbox folder /mnt/sdc1/Dropbox entries approximate count is 3
fs.inotify.max_user_watches = 65536
Current status is Up to date
File: "/mnt/sdc1/Dropbox"
ID: 4ad9ef1f9c1b76fa Namelen: 255 Type: ext2/ext3
Block size: 4096 Fundamental block size: 4096
Blocks: Total: 1695313369 Free: 1304607246 Available: 1219150652
Inodes: Total: 213635072 Free: 210967477 - Здравко4 years agoLegendary | Level 20
You are using officially unsupported FS type - ext3. Anyway... Dropbox can't make distinction between ext3 and ext4, so this is unlikely be a reason. But this approximate count - 3, seems wrong (suspicious, at least). Are you sure there are some files in the Dropbox folder? Can they be seen using following command:
tree -a /mnt/sdc1/Dropbox
Don't post the above result, if it's Ok. If the above don't have error, post the result of following command:
echo -n "Your Dropbox folder /mnt/sdc1/Dropbox entries approximate count is "; tree -a /mnt/sdc1/Dropbox | wc -l
- sleepysloth4 years agoExplorer | Level 3
I got an error from the first one:
[error opening dir]
0 directories, 0 files
The second one gave me 3, again.
There are definitely files in the Dropbox folder, I use them all the time. Nautilus says there are 200,282 files in there.
I don't know if this is relevant but I was looking again at this page you linked and when I entered
i=0; IFS=$'\n'; for a in `ls -R1 /mnt/sdc1/Dropbox`; do ((++i)); done; echo $i
the result was 211888.
- Здравко4 years agoLegendary | Level 20
🧐🤔 No, no, no... You're killing me. That's impossible. 'ls' and 'tree' both do very similar things. It's impossible for one of them 'error opening dir', but for the other no problem - both need the same access (ls - even a bit more). 🤷 Are you sure the both are execouted in same context - the same local user 'naomi'? 🧐
What's the result of following:
ls -ld /mnt/sdc1; ls -ld /mnt/sdc1/Dropbox; ls -al /mnt/sdc1/Dropbox
PS: Since your max watches border seems not set, we can least set it forcibly. Execute the following:
sudo bash -c 'echo "fs.inotify.max_user_watches=250000" >> /etc/sysctl.conf; sysctl -p'; dropbox stop; dropbox start
- sleepysloth4 years agoExplorer | Level 3
I'm sure I'm using the same local user. For the first one, I got:
drwx------ 17 naomi naomi 77824 Jan 30 17:22 /mnt/sdc1 drwxrwx--- 18 naomi naomi 4096 Jan 30 17:47 /mnt/sdc1/Dropbox total 896 drwxrwx--- 18 naomi naomi 4096 Jan 30 17:47 . drwx------ 17 naomi naomi 77824 Jan 30 17:22 .. drwxr-xr-x 4 naomi naomi 4096 Aug 27 15:07 Apps drwxr-xr-x 16 naomi naomi 4096 Aug 27 15:07 'Art Backup' drwxrwxr-x 6 naomi naomi 4096 Jan 30 17:29 'Audio Files' drwxr-xr-x 2 naomi naomi 491520 Jan 23 14:15 'Camera Uploads' drwxr-xr-x 23 naomi naomi 4096 Jan 30 17:47 Documents drwxrwxr-x 4 naomi naomi 4096 Jan 8 19:17 Downloads -rw-r--r-- 1 naomi naomi 41 Jan 30 17:10 .dropbox drwxr-xr-x 6 naomi naomi 4096 Sep 17 16:32 .dropbox.cache drwxr-xr-x 4 naomi naomi 258048 Jan 8 14:59 FontBase drwxr-xr-x 94 naomi naomi 4096 Sep 17 19:42 'for drawing' drwxr-xr-x 14 naomi naomi 4096 Jan 29 18:02 'In Case of Emergency' drwxr-xr-x 2 naomi naomi 4096 Jun 17 2020 'Mobile Uploads' drwxr-xr-x 5 naomi naomi 4096 Jan 30 17:11 'My PC (DESKTOP-3G3TVJD)' drwxr-xr-x 18 naomi naomi 4096 Jan 9 15:20 Photos drwxrwxr-x 17 naomi naomi 4096 Jan 30 17:08 Pictures drwxr-xr-x 2 naomi naomi 4096 Aug 27 15:13 Public drwxr-xr-x 21 naomi naomi 4096 Jan 30 17:30 Shared
No problems with the 2nd one.
- Здравко4 years agoLegendary | Level 20
Ok, The good news is absence of any access permission issues (as much as could be seens). The bad thing is time lost to we figure out there is something wrong with 'jq' and 'tree' install you have performed. Anyway... You can check out what's done in wrong, if want, and we won't use them here from now on.
Just to make sure there isn't anything previously left from, if you haven't restarted your configuration since last command, restart it now. So, let's check the current state. Post the result from:
i=0; IFS=$'\n'; for a in `ls -R1 /mnt/sdc1/Dropbox`; do ((++i)); done; echo "Your Dropbox folder /mnt/sdc1/Dropbox entries approximate count is $i"; sysctl fs.inotify.max_user_watches
Hope the results will be better now. 😉 By the way, are some visible changes happening - come some (at least) of the missing entries up? 🧐
- sleepysloth4 years agoExplorer | Level 3
I got:
Your Dropbox folder /mnt/sdc1/Dropbox entries approximate count is 211896
fs.inotify.max_user_watches = 250000I'm not sure how many folders aren't syncing properly, but I checked a couple that I know haven't been sycning right and those still have missing files (and none of the missing files have been added). I recently added a bunch of files to Dropbox via Windows, and all of those have synced to the Linux folder. The Linux app says that everything is up to date.
- Здравко4 years agoLegendary | Level 20
Hi sleepysloth,
Now everything seems better. Should be some other issue. Can you post the log on dropbox start? Actually, post the result of:
dropbox stop; rm -rf /mnt/sdc1/Dropbox/.dropbox*; dropbox start
Wait for the moment when startup process finished completely. Let's see if there are some helper messages (sometimes could be when something goes wrong).
You can try following command:
(IFS=$'\n'; for a in `find /mnt/sdc1/Dropbox -type d -print`; do if [[ "$a" =~ "/.dropbox" ]]; then echo "<empty>"; else cd $a; echo "In directory $a:"; dropbox filestatus; fi; done) | grep -vE "<empty>|up to date|\.dropbox|infinite" | grep -B 1 -vE "In directory .+:"
Is the result showing some file or folder "unwatched" or similar unusual state? 🤔 The best case would be nothing. Also can you take a look around places where miss entries? Is there something unusual (containing folder gets out of sync, for example)? 🧐
- sleepysloth4 years agoExplorer | Level 3
For the first one, I got:
Dropbox isn't responding!
Dropbox isn't responding!
Dropbox is already running!For the second one, it listed all my main folders followed by "unwatched," then started listing the files inside with the same result, but then it started saying "Dropbox isn't running!" after each file instead. It was doing this for every file in my entire Dropbox, so I ended the process, started Dropbox, and tried again. I waited over 10 minutes and it didn't produce any visible results, or stop running, so finally I killed the process again.
- Здравко4 years agoLegendary | Level 20
🤔🧐 Strange! Maybe your computer is too slow!? Anyway... Let's try in smaller steps. Try stop the daemon at first, using following:
dropbox stop
dropbox statusExecute above commands one by one. Repeat "dropbox status", if needed, till result "Dropbox isn't running!".
Once the status shows that daemon gets completely stopped, execute following:
rm -rf /mnt/sdc1/Dropbox/.dropbox*
After that, run the daemon back, using following:
dropbox start
Wait for some time to daemon gets running back. Can pass a while. Once prompt comes up, post the result - everything from the last command to the end (the end could be after the prompt).
- sleepysloth4 years agoExplorer | Level 3
Here's what I got:
Starting Dropbox...dropbox: locating interpreter dropbox: logging to /tmp/dropbox-antifreeze-GzHJDj dropbox: initializing dropbox: initializing python 3.7.9 dropbox: setting program path '/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368/dropbox' dropbox: setting python path '/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368:/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368/python-packages.zip' dropbox: python initialized dropbox: running dropbox dropbox: setting args dropbox: enabling allocator metrics dropbox: applying overrides dropbox: running main script dropbox: load fq extension '/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368/cryptography.hazmat.bindings._openssl.cpython-37m-x86_64-linux-gnu.so' dropbox: load fq extension '/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368/cryptography.hazmat.bindings._padding.cpython-37m-x86_64-linux-gnu.so' dropbox: load fq extension '/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368/psutil._psutil_linux.cpython-37m-x86_64-linux-gnu.so' dropbox: load fq extension '/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368/psutil._psutil_posix.cpython-37m-x86_64-linux-gnu.so' dropbox: load fq extension '/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368/apex._apex.cpython-37m-x86_64-linux-gnu.so' dropbox: load fq extension '/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368/tornado.speedups.cpython-37m-x86_64-linux-gnu.so' dropbox: load fq extension '/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368/wrapt._wrappers.cpython-37m-x86_64-linux-gnu.so' dropbox: load fq extension '/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368/PyQt5.QtWidgets.cpython-37m-x86_64-linux-gnu.so' dropbox: load fq extension '/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368/PyQt5.QtCore.cpython-37m-x86_64-linux-gnu.so' dropbox: load fq extension '/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368/PyQt5.QtGui.cpython-37m-x86_64-linux-gnu.so' dropbox: load fq extension '/home/naomi/.dropbox-dist/dropbox-lnx.x86_64-116.4.368/PyQt5.QtDBus.cpython-37m-x86_64-linux-gnu.so' Dropbox isn't running! Done!
Then it said:
(dropbox:8651): LIBDBUSMENU-GLIB-WARNING **: 16:02:29.903: About to Show called on an item wihtout submenus. We're ignoring it.
- Здравко4 years agoLegendary | Level 20
Ok, all seems fine. Let's see the last steps. Check the current status using following:
dropbox status
Post the result and try again the following:
(IFS=$'\n'; for a in `find /mnt/sdc1/Dropbox -type d -print`; do if [[ "$a" =~ "/.dropbox" ]]; then echo "<empty>"; else cd $a; echo "In directory $a:"; dropbox filestatus; fi; done) | grep -vE "<empty>|up to date|\.dropbox|infinite" | grep -B 1 -vE "In directory .+:"
... to see if there is something wrong. Is there something received as a troublesome? 🤔 Hope if there is, the troubles to be less than before. Post such results, if there are some.
- sleepysloth4 years agoExplorer | Level 3
For the first one, it said "Up to date."
The second one took quite awhile. Eventually it produced "bash: cd: too many arguments."
- Здравко4 years agoLegendary | Level 20
sleepysloth wrote:
...The second one took quite awhile. Eventually it produced "bash: cd: too many arguments."
🤔 I confess, can't be sure what this means. If your folders/files count is big, the time for enumerating and evaluating every one is proportional, so it's normal to "took quite awhile". There is single "cd" command that in all calls takes single argument only. Can do you post the part where Eventually it produced "bash: cd: too many arguments."? 🧐
- sleepysloth4 years agoExplorer | Level 3
That's the only thing it displayed. I did it again and it still just displayed "bash: cd: too many arguments" and nothing else.
- Здравко4 years agoLegendary | Level 20
sleepysloth wrote:That's the only thing it displayed. I did it again and it still just displayed "bash: cd: too many arguments" and nothing else.
🤔Hm... The only chance such things to happen is using within file/folder name some unusual symbol, like semicolon, and some very old bash interpreter version. For actual versions this shouldn't be an issue, but... Let's try a bit patched variant of the command:
(IFS=$'\n'; for a in `find /mnt/sdc1/Dropbox -type d -print`; do if [[ "$a" =~ "/.dropbox" ]]; then echo "<empty>"; else echo "In directory $a:"; cd "$a"; dropbox filestatus; fi; done) 2>&1 | grep -vE "<empty>|up to date|\.dropbox|infinite" | grep -B 1 -vE "In directory .+:"
Now even for an old and buggy bash interpreter this should work (no chance the only argument be interpreted as multiple) and even when there is such or other error gonna be clear where exactly (in which directory) it happens. Let's see... 🧐
- sleepysloth4 years agoExplorer | Level 3
This just didn't produce anything for me. I tried it a couple times. It took awhile each time and then just displayed a blank command prompt.
- Здравко4 years agoLegendary | Level 20
sleepysloth wrote:This just didn't produce anything for me. ...
That's a good news generally. 🤷 If there is some result produced, it would be error and the result would direct where particular error comes up. In your case you haven't issues related to OS permission, for example, or similar able to prevent sync. I can't say anything more about your missing entries. Try trace what exactly you are syncing actually and where the discrepancy lies on exactly to fix it by hand. That's it.
About Create, upload, and share
Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.
Need more support
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!