Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
holf
6 years agoHelpful | Level 6
Syncing is stuck on my Linux devices, what can I do?
It seems I have the same problem as mentioned in above posts. I am running Dropbox on a pc and laptop, both having Linux-Lubuntu as the os. After a "one time update" on both systems, Dropbox is stuck indexing/uploading/downloading a small number of files. In addition, I noticed that when I rename a file on my hard disk, the name of that file is not always changed in the cloud. I tried the two fix options and did a complete reinstall of the dropbox client, but no success. I would appreciate any help.
Hi holf,
At the beginning you can try fix possible permission errors:
sudo chown -R "$USER" "$HOME/Dropbox" sudo chattr -R -i "$HOME/Dropbox" chmod -R u+rw ~/Dropbox
Also, existing symbolic links could be found using:
ls -alR ~/Dropbox | grep " -> "
If no any change, check the needs for watchable entries:
i=0; IFS=$'\n'; for a in `ls -R1 ~/Dropbox`; do ((++i)); done; echo $i
The above will give you some estimation. The current upper border could be received using:
sysctl fs.inotify.max_user_watches
If the estimation above don't fit in last result, try extend the border using something like:
sudo sysctl -w fs.inotify.max_user_watches=100000
Tune the value according your needs (with some reserve, of course).
If nothing helps yet, try to find out the exact files making troubles (which will give you chance investigate further), using something like:
(IFS=$'\n';for i in `ls -R1 ~/Dropbox`; do if [[ "$i" =~ ":" ]]; then cd `echo "$i" | sed "y/:/\//"`; echo -n "In folder: "; pwd; dropbox filestatus; fi; done) | grep -vi "up to date" | grep -vi ".dropbox:" | grep -vi ".dropbox.cache:"
Last command assume you have installed properly 'dropbox' command, either using debian package or by hand. Otherwise "command not found" will be signaled. Will be enumerated all folders in Dropbox and signaled problematic files inside, if any. Be patient, could take some time, depending on your content size. Once found out problematic entries, you can use different techniques for investigate, like see current file's classic attributes (the simplest one):
ls -l ~/Dropbox/Troublesome/file.ext
Good luck. :wink:
53 Replies
Replies have been turned off for this discussion
- Здравко4 years agoLegendary | Level 20
Hi Jaidan B.,
Hmm... 🤔 That sounds like you have triggered some bug. It's known that Dropbox application isn't the most stable one. 🤷
Try to workaround by downloading missing files while the application is off. In addition you can clear the cache. Start with following in terminal:
dropbox stop rm -rf ~/Dropbox/.dropbox.cache
Above command points to default Dropbox folder place. If you have moved it somewhere else replace tilde (~) to the actual path. Now try to download missing files into proper directories using your web browser. At the end, run Dropbox application anew using:
dropbox start
Is everything Ok now? 🧐
- Jaidan B.4 years agoHelpful | Level 5
Sorry about the multiple posts - it marked them as spam when I first posted them. It looks like that has been fixed.
Thanks again Здравко for your ideas. They are clever ones. I chose 3 files which were missing. I stopped dropbox. Cleared the cache. Checked with `dropbox status` and then downloaded the files to the correct location. They looked like they copied correctly.
Then I started Dropbox. Dropbox renamed the 3 files as conflicted copies. The original files are still not there and Dropbox now says "Uploading 3 files, downloading 87 files". It is stuck again. The 3 new conflicts appear in the web browser also.
When I deleted the three new conflicts form the web browser, they deleted from my PC. Still stuck at "Uploading 3, downloading 87".
This is really puzzling. Do you have more ideas please?
- Здравко4 years agoLegendary | Level 20
Hah.. 🤷 Really puzzling!
Ok, try off repeat the same as above, but just before starting Dropbox application anew remove all already copied to local Dropbox folder files from Dropbox online using your browser. Let's hope when there is only one copy to sync (from local to online), won't be any conflict condition.
Let's see...
- Jaidan B.4 years agoHelpful | Level 5
This is bizarre. I tried as you said and yes that worked however, the number of "Downloding files" did not reduce by the missing number of files I moved across. It was less, but it still reduced.
Interestingly, if I download from web, then delete from web, the "Downloading X files" reduces a little. When I then copy the downloaded files into the local copy, it syncs perfectly.
This will work for me for now however, I won't know if I will stop all stuck downloading files until I make my way through everything. Some folders have 800 photos in them so checking line by line will take some time.
Thanks for your help Здравко .
Do you know what the correct way to report this behavior to Dropbox would be?
Oh and an interesting thing, when I download multiple files from the web, the zip file contains a folder called __MACOSX and files with ._ as the second and third letters. These aren't shown in my Dropbox folder or in the web view.
- Здравко4 years agoLegendary | Level 20
Hi Jaidan B.,
All Dropbox moderators are able to see our conversation and forward to development if they decide to. The only more thing you can try open a support ticket, but... don't rely too much. 🤷 There are almost same persons. Do as you decide.
Dropbox folder ZIP compression isn't consistent and that's why you should be careful! The bug was signaled multiple times, but seems this isn't a Dropbox priority. It's so for years, so don't rely for this also. All actual files are compressed and exist properly, but folder structure does NOT match reliably the real one! May be different "distortions", starting from misscapitalization up to parallel folders structure, as well as the note by you and so on.
Let's hope someday all this will get fixed.
PS: By the way, why are you checking line by line:
Jaidan B. wrote:... Some folders have 800 photos in them so checking line by line will take some time.
...You can filter the `dropbox filestatus` output for the particular folder and... 🤷 it's ready. 😉 (as I have done in my script above)
Another way to check for missing entries in particular folder is using a single line script like:
VAR=`curl -X POST https://api.dropboxapi.com/2/files/list_folder --header 'Authorization: Bearer <your token>' --header 'Content-Type: application/json' --data '{"path":"<path realtive to Dropbox>"}'`; for i in $(seq 0 $((`echo $VAR | jq -r '.entries | length'`-1))); do E=`echo $VAR | jq -r '.entries['$i'].name'`; if [[ -f "$E" || -d "$E" ]]; then echo "E->$E"; else echo "M->$E"; fi; done
To use above script you have to take a short time token from Dropbox API Explorer for example. Click "Get Token" button there and replace <your token> above to the actual token. Get in folder you want to check (i.e. the folder have to be PWD). Replace <path relative to Dropbox> to ... that value (i.e. if you have a folder like "~/Dropbox/My folder" between the quote above should be "/My folder"). All existing entries on the server folder will be listed and prepend with "E->" (i.e. Exists) when particular entry exists locally in PWD or prepend with "M->" (i.e. Missing) otherwise. 🙂
- barefootcoder4 years agoExplorer | Level 3
> The only more thing you can try open a support ticket, but... don't rely too much.
Good advice. Before I found this thread and solved my own problem, I had Dropbox "support" close my ticket 4 times without ever coming remotely close to solving my problem. They should be paying Здравко; they'd solve more issues.
- cnelsonak4 years agoExplorer | Level 4
I had this same issue with my Linux Dropbox (Dropbox daemon version: 144.4.4491, Dropbox command-line interface version: 2020.03.04). Certain files in Linux would not show up even though they were available online and on other computers. Trying to copy them did not resolve and trying to recreate them would cause sync errors. Only downloading, removing from online, and re-uploading seemed to fix. I tried all the other remediation steps (max_user_watches; rm .dropbox folder; complete reinstall) without any luck.
In the end, this post helped me identify the culprit -- all the files in question had a __MACOSX folder when I downloaded and I realized that they were synced from a very old Mac computer. So, I dusted it off and checked the files for extended attributes, and all of the files that were not syncing had a com.apple.ResourceFork as an extended attribute. If I removed the ResourceFork attribute, the file would immediately sync and appear on the Linux Dropbox folder. Since I was missing 3K+ files, I decided to bulk remove the attribute for the entire Dropbox directory and now all my files are showing up again on the Linux workstation. The only downside to removing the attribute this way (using xattr -d) was that it updated the timestamps.
I hope this helps anyone who has this odd issue. It appears that there is a bug or incompatibility between the Linux client and the old Mac ResourceFork file attribute.
- Jaidan B.4 years agoHelpful | Level 5Good find! Come to think of it, all the files I had that were stuck syncing were on an old iBook. Hopefully Dropbox can use this info to provide a permanent fix.
- Walter4 years ago
Dropbox Community Moderator
Hi all - I'm sorry for the late response here. Are you still having issues with this?
If you do, note that files won't sync if the device's filesystem does not support the particular xattr (size) or if doesn't support xattrs at all.
You can take a look at this page for additional details on xattr limitations on Linux filesystems.
I hope this helps!
- tayloredwebsites3 years agoNew member | Level 2
I found the sudo chattr -R -i "$HOME/Dropbox" command very enlightening, as it listed two files as "Operation not supported while reading flags on ..."
When looking at these two files on the dropbox website, I got error 415 on both of them, with an indication that someone will look at them.
So I will wait and see what happens.
Thanks for the instructions
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.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!