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's avatar
sleepysloth
Explorer | Level 3
4 years ago

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 have this problem on Linux before. All the folders and sub-folders are showing up, and some are synced perfectly, but others will have some files in them and not others. All the folders in question are checked on selective sync and should be syncing. 

 

Al the files are showing up correctly in Windows. The files are also present on my online Dropbox. Since setting up the dual-boot, I've added files on Windows, and those have all synced properly to the Linux folder. 

 

All of the missing files I've noticed have been Photoshop files, but there might be other kinds I just haven't noticed yet. Other Photoshop files are there, though! A lot of the new files I added in Windows are Photoshop files, and again, those are all showing up on Linux perfectly. Dropbox on Linux says that everything is synced. 

 

How can I get all the files to show up on Linux again? 

 

I don't know if I explained this very clearly, let me know and I can clarify anything that didn't make sense. 

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi sleepysloth,

    Some more information would be helpful. Can you provide additional information about currently running application and environment? Post the following commands results (executed one by one):

    dropbox version
    dropbox status
    sysctl fs.inotify.max_user_watches

    How many files/folders reside in your Dropbox folder? As an alternative, you can post the result of following command:

    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

    You may need install 'jq' and/or 'tree' if some of them are missing on your system.

    Let's hope the above results will clarify what's going on. 🤔

    • sleepysloth's avatar
      sleepysloth
      Explorer | Level 3

      For the first one, my results were: 

       

      dropbox version
      Dropbox daemon version: 112.4.321
      Dropbox command-line interface version: 2020.03.04

       

      dropbox status
      Up to date

       

      sysctl fs.inotify.max_user_watches
      fs.inotify.max_user_watches = 65536

       

      For the last one, I did have to install jq and tree but after that I got confused. I couldn't figure out where my .dropbox directory should be. My Dropbox folder is in /mnt/sdc1. I found a .dropbox in there, but when I tried ~/mnt/sdc1/Dropbox/.dropbox/info.json, like so

      db_path=`jq -r '.personal.path' ~/mnt/sdc1/Dropbox/.dropbox/info.json`; echo -n "Your Dropbox folder $db_path entries approximate count is "; tree -a "$db_path" | wc -l

      jq gave a "No such file or directory" error. I also tried ~/.dropbox/info.json and ~/mnt/sdc1/.dropbox/info.json and got the same results. What am I doing wrong? Do I need to change another part of the command? 

       

      I don't know if this is the same info you're looking for but I do know that there are over 200,000 files and folders in my Dropbox. I sync the whole 800GB of it on Linux because I have the space (the sdc1 partition is 6TB) and I like to have all my files somewhere other than the cloud. 

      • Здравко's avatar
        Здравко
        Legendary | Level 20

        sleepysloth wrote:

        ...

        sysctl fs.inotify.max_user_watches
        fs.inotify.max_user_watches = 65536

         

        For the last one, I did have to install jq and tree but after that I got confused. I couldn't figure out where my .dropbox directory should be. My Dropbox folder is in /mnt/sdc1. I found a .dropbox in there, but when I tried ~/mnt/sdc1/Dropbox/.dropbox/info.json, like so

        db_path=`jq -r '.personal.path' ~/mnt/sdc1/Dropbox/.dropbox/info.json`; echo -n "Your Dropbox folder $db_path entries approximate count is "; tree -a "$db_path" | wc -l

        jq gave a "No such file or directory" error. I also tried ~/.dropbox/info.json and ~/mnt/sdc1/.dropbox/info.json and got the same results. What am I doing wrong? Do I need to change another part of the command? 

         

        I don't know if this is the same info you're looking for but I do know that there are over 200,000 files and folders in my Dropbox. I sync the whole 800GB of it on Linux because I have the space (the sdc1 partition is 6TB) and I like to have all my files somewhere other than the cloud. 


        Hi sleepysloth,

        I haven't mentioned that you need to change anything in the command and you should avoid such change! ☝️Just copy/paste it. 😉 That's it.

        The number of files/folders in your account should be less than maximum number of watches allowed. Since in your case that isn't true ( 65536 < 200000 ), you have to change this system setting. Figure out exact number of files and folders in your Dropbox folder (together), so be able decide exact value for fs.inotify.max_user_watches update (with some reserve of course).

         

        PS: Take a look here, so we can avoid repeat something already discussed.

        Hope this gives right direction.

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!