We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
mike _.
8 years agoHelpful | Level 6
Linux - Unable to change Dropbox directory
I'm using Fedora Workstation 25 with GNOME.
Trying to change the Dropbox directory results in the utterly useless message "Unexpected errors occurred. Your Dropbox is ok!".
Steps to recreate problem:
- Dropbox directory is currently ~/Dropbox
- Start Dropbox application by running ~/.dropbox-dist/dropboxd
- Right click sys tray icon and select Preferences.
- Click "Move…" button under Account > Location
- Select directory /local on which my user has write permissions.
- The message "Unexpected errors occurred. Your Dropbox is ok!" appears.
Observations:
- The directory /local/Dropbox is sucesfully created.
- One of the directories in ~/Dropbox is created in /local/Dropbox/ It's empty. Deleting that directory from ~/Dropbox before attempting the move doesn't help.
- Selecting other directories on which my user has write permissions results in the same behaviour.
- Permissions and ownership of my Dropbox directory and user's home directory are OK. (Troubleshooting advice for Linux at https://help.dropbox.com/desktop-web/move-dropbox-folder is pooly written. sudo is not needed on all those commands. "Internet menu" is not a thing in all (any?) desktop environments.)
- There's a log file in ~/.dropbox/logs/1 but it's a binary blob so useless without something to make it human readable and I can't locate such a thing.
- Deleting all my files from ~/Dropbox/ waiting for sync to complete and then attempting the move doesn't help.
- When attemping the move after deleting all my files from ~/Dropbox/ /local/Dropbox/.dropbox.cache/ is succesfully created. It's empty.
- Pausing syncing before attempting the move doesn't help.
- There don't seem to be any options that can be passed to ~/.dropbox-dist/dropboxd to get more info. (Adding --help prevents it running!)
I was having this same issue. I found a fix in creating a Dropbox folder in my home directory prior to connecting my account. This caused the installer to throw an error about a Dropbox folder already existing that prompted me to either delete the Dropbox folder or select a different location. Eureka! (for me at least...)
Guys solved, and the solution was the easiest and logic.
I expose my situation:
sda1 300GB --> /
sda5 8TB --> /home
As I explained, I wanted to install Dropbox below /home directory, but playing as "root" user, by default, it forced the installation on /root
So I just installed the daemon using the user who owns the home directory I want and it works properly, just remember to add the "user" to the root group.
If you need more details, don't hesitate to ask.
wrote:I was having this same issue. I found a fix in creating a Dropbox folder in my home directory prior to connecting my account. This caused the installer to throw an error about a Dropbox folder already existing that prompted me to either delete the Dropbox folder or select a different location. Eureka! (for me at least...)
This didn't work for me, but I did find a similar solution! I created a "work" dropbox account and set up a fresh installation of dropbox with that account, which places the "work" Dropbox folder in the defaut ~/Dropbox. I then deleted everything in ~/.dropbox* (with rm -rf ~/.dropbox* ), reinstalled dropbox and set it up using my personal account. Now since the folder in ~/Dropbox already contains the dropbox for the work account, I got the prompt that allowed me to either delete the Dropbox folder or select a different location for my personal account. Somehow this worked when simply moving the folder within dropbox wouldn't... I hope this helps somebody! (using Fedora 27 btw)
- gwiesenekkerNew member | Level 2
Hi,
The following workaround applies to Ubuntu 18.04 and 16.04. I am using a Dropbox account that is SAML federated with a business account. In that case you have to logon to the Dropbox website with the business account first from a browser. Install the Dropbox client for Ubuntu. The Dropbox client will install the Dropbox daemon and open a URL to login to Dropbox. If that opens in a different browser (as in my case) copy/paste the URL into the browser that you used to logon to the Dropbox website. The Dropbox client will login and start to synchronize with a folder in your home directory. If you try to change that location you get the error. Quit the Dropbox client and launch a terminal:
#cd to your home directory $ cd ~ #Remove all permissions on the just created Dropbox folder in your home directory: $ chmod a-rwx <name-of-the-Dropbox-folder-in-your-home-directory, say ./Dropbox> #Remove the Dropbox configuration folder from your home directory: $ rm -rf .dropbox #The Dropbox client will not merge folders so you have to remove an existing Dropbox folder in the target location #As always double check the path before a sudo rm -rf! $ sudo rm -rf <absolute-path-to-the-Dropbox-folder-in-the-target-location, say /tmp2/user/Dropbox>
Launch the Dropbox client again. After login it will now raise an error because the Dropbox folder in your home directory is not accessible, and it will let you choose the target location.
Regards,
Gijsbert
- dumonExplorer | Level 4
Thank you, nice try, gwiesenekker, but it does not work for, after the giving an error message it closes the application
- hrvigNew member | Level 2I'm getting this exact error. Did you find a solution?
- JaneDropbox Staff
Hey mike _.,
Thanks for reaching out on the Dropbox Community! Let's follow some steps together to work on that.As a first step, please make sure that you don't have any locations Symlinked to the Dropbox folder. If you aren't sure about whether you have used Symlinks, please have a look at the steps here:#1. Open your Terminal app (Located at /Applications/Utilities/Terminal). You can also search for "Terminal" using the magnifying glass at the top of your screen.#2. Copy and paste the following line into the Terminal:(NOTE: If your Dropbox account is located on "/Users/JaneA/Dropbox", then fill in the command line as below)find "/Users/JaneA/Dropbox" -type l -exec ls -lah {} \;The above should give you a list of symlinks in your Dropbox folder and where they point to. Please remove these Symlinks and allow Dropbox to sync correctly.If you don't find any Symlinks there, please let me know here and I'd glad to work on that more with you.Kind regards,JaneA- mike _.Helpful | Level 6
Your reply is written as though I'm using macOS when I clearly stated I'm using Linux.
I stated in my post that I had tried deleting everything in ~/Dropbox/ prior to attempting to change the Dropbox direcory locaton and the error still occurs. The presence of symlinks in ~/Dropbox/ can't be the cause of the error if the error occurs when ~/Dropbox/ is empty.I don't have any symlinks in ~/Dropbox. I avoid using symlinks in stuff that I backup in Dropbox because I know symlinks won't be preserved.
Is there any way to get the Dropbox client to produce detailed error messages?
Is there any way to change the Dropbox directory location except using the GUI?
I've tried modifying the path value in ~/.dropbox/info.json (having first made sure no Dropbox processes were running), and then putting a copy of ~/Dropbox at the path I'd specified. On starting the Dropbox client the value of path in ~/.dropbox/info.json got changed back to what it was before. The only other suggestion of how to move the directory without using the GUI I can find online is to move the directory then create ~/Dropbox as a symlink, which is basically a bodge and not an acceptable solution.- JaneDropbox Staff
Hey mike _.,
I appreciate your swift and timely reply!
Seems that it would be better for you to troubleshoot this specific case via our official support channel, so that a specialised member of our team troubleshoots and advises on how to have this issue resolved. If it's not too much trouble for you, please raise a ticket with our team that may help us determine the case and let me know here, so that I search for your email internally and transfer our discussion there.Looking forward to hearing back from you!Warm regards,JaneA
- deltasonecaNew member | Level 2
Same issue here. I am on Fedora and want to move the Dropbox folder from the default location at my SSD (with only 128gb) to another internal HDD. I use the Dropbox Desktop App graphical interface, it actually creates the Dropbox folders and the first level folders insided it, but do not move any file and show the error "Error moving Dropbox: Unexpected errors occurred"
By this time I am sure it is a bug. I just opened a ticket.
- 6GeMiNi9Helpful | Level 5
Hello fellows:)
My question is about Linux OS (Debian in this case) and I'm trying to figured out how to change the default directory (that right now is root ˜ )
I followed this official guide: https://www.dropbox.com/install-linux
And downloaded the dropbox.py to handle it. It works everything.
Now the issue: how can I move everything to "/home/user"? Symlinks is not a solution because I set home directories to a raid partition of 8TB, so I need it there. Actually root is only 300GB and I have more data than that.
I've been looking for a relaiable solution but nothing..
Please help <3
Thanks in advance
- JaneDropbox StaffAs we currently fully support the following Linux distros: “Ubuntu 10.04 or higher & Fedora 19 or higher", I’ve made sure to move your post here, in order to check the workarounds posted previously that have fixed the issue in some cases.Keep us updated on how these options work for you & any progress you’ve made. Thanks & I hope you have a wonderful rest of the day ahead!
- 6GeMiNi9Helpful | Level 5Hello Jane,
thanks but seems that neither Mike could solve it at all.
About Apps and Installations
Have a question about a Dropbox app or installation? Reach out to the Dropbox Community and get solutions, help, and advice from members.
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!