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...
- 6 years ago
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:
Здравко
6 years agoLegendary | Level 20
MartinHeroux wrote:...
this is why I got a bunch of errors like this:
chattr: Operation not supported while reading flags on [...]Does this mean I need to somehow remove these symbolic links in order to get my Dropbox synching unstuck on my Linux machine?
...
Hi MartinHeroux,
Not actually. If the other 2 line in same code block are working without errors, no problem:
sudo chown -R "$USER" "$HOME/Dropbox" chmod -R u+rw ~/Dropbox
It's important no any link points to a place outside Dropbox folder, which seems covered by your examples (have to be for all).
What about possible unwatched entries? Did you check that? Alternatively you can use something like:
db_path=`jq -r '.personal.path' ~/.dropbox/info.json`; echo -n "Your Dropbox folder $db_path entries approximate count is "; tree -a "$db_path" | wc -l; sysctl fs.inotify.max_user_watches
What's the result? 🤔 The actual entries count should fits in the border (maximum)!
If need, give some time to the entries not in sync yet. Is there some 'move' in result of:
dropbox status
🤔
And finally, is there some "deviation" in the result of:
(IFS=$'\n';for i in `ls -R1 $(jq -r '.personal.path' ~/.dropbox/info.json)`; 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:"
🤔
MartinHeroux
6 years agoNew member | Level 2
Dear Здравко,
Thank you for the quick reply and for helping us linux folks with Dropbox issues.
I went over your previous instructions:
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
I mis-read what was the estimate and what was the upper border.
I did indead have an issue here. I changed the max_user_watches and upon a restart my Dropbox synched everything!
Thank you for the various things to try, and for providing me with what in the end solved my issues.
Incidently, some of the symbolic links do point outside of dropbox, but that does not seem to be a problem as everything synched fine after I fixed the max_user_watces limit.
- Здравко6 years agoLegendary | Level 20
MartinHeroux wrote:....
Incidently, some of the symbolic links do point outside of dropbox, but that does not seem to be a problem as everything synched fine after I fixed the max_user_watces limit.
Be careful, MartinHeroux!
Such links get in sync, but the content they point to not. ☝️ If this is not a problem... 😦 Ok.
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!