cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

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.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linux - Unable to change Dropbox directory

Linux - Unable to change Dropbox directory

mike _.
Helpful | Level 6
Go to solution

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!)
66 Replies 66

mike _.
Helpful | Level 6
Go to solution
~/.dropbox/logs/ but you can't read them. Dropbox support have told me "you won't be able to open them, I'm afraid they are encrypted and can only be decrypted here."

tuannv0708
Explorer | Level 4
Go to solution

I've tried to open these log files, and couldn't read, maybe it's encrypted or is binary files.

 

 

mike _.
Helpful | Level 6
Go to solution
Um, did you see the part of my previous post where I said Dropbox support told me "they are encrypted" ?

Jane
Dropbox Staff
Go to solution
Hey tuannv0708
 
Because you mention that you’re unable to move the Dropbox folder only on your NTFS drive”, you may have some files in your folder that have their permissions incorrectly set. That is of course provided that the application is running corrrectly on this drive. If the application doesn’t run, please let me know. 
 
You can fix the permissions for the Dropbox folder with the following steps:
 
#1. - Click on the gear icon in the Notifications panel :gear: and select "Quit Dropbox".
 
#2. Open the Terminal app
 
#3. Copy and paste the following lines into the Terminal, one at a time, and press RETURN after each one. PLEASE make sure you copy and paste these commands (don't type them by hand), as getting them wrong could cause some harm. You'll be prompted for your computer user's password (not your Dropbox password) after entering the first command. Keep in mind that the password field in the terminal will remain blank as you type your password. After you type it, just press ENTER. You'll know that these instructions complete normally once the initial line of text (called prompt) comes up again:
 
sudo chown "$USER" "$HOME"
 
sudo chown -R "$USER" ~/Dropbox ~/.dropbox
 
sudo chattr -R -i ~/Dropbox
 
sudo chmod -R u+rw ~/Dropbox ~/.dropbox
 
Please note that once the prompt displays, the instruction completed the requested task, and is ready for the next command. If the command returns an error, or does not respond after an hour, you may want to try restarting your computer and try these steps again.
 
#4. Restart Dropbox
 
Please bear in mind that if your Dropbox folder or its system files are located in a mounted network drive or a remote location (like roaming profiles), this could cause Dropbox to not have constant access or permissions to operate in those locations. This is especially an issue if other people in the network could be accessing the same data. 
 
Please keep me updated on the results in your reply! 
 
Warm regards, 
JaneA

 


Jane
Community Moderator @ Dropbox
dropbox.com/support

 

Heart Did this post help you? If so please give it a Like below. 
:white_check_mark: Did this post fix your issue/answer your question? If so please press the 'Accept as Best Answer' button to help others find it.
:arrows_counterclockwise: Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

mike _.
Helpful | Level 6
Go to solution

I know those commands are taken from the Dropbox FAQ. Please have someone update the FAQ so it doesn't tell people to use sudo when making modifications to files/directories that they own, as the last two commands do. It is not required and is bad practice.

 

It should not be assumed that someone's usercode has sudo rights.

tuannv0708
Explorer | Level 4
Go to solution

I've tried, but it not work, JaneA.

Jane
Dropbox Staff
Go to solution

Hey @tuannv0708

 

Thanks for your swift reply! 

 

Would you mind sending in some more details on the matter, such as your device configuration (for instance, are you trying to move the Dropbox folder on an NTFS, HFS, ext4 drive?). 

 

Also, are you receiving any error messages? I'd be glad to follow-up if you give me some more information on what you're experiencing. 

  

Looking forward to hearing back from you,

JaneA

 


Jane
Community Moderator @ Dropbox
dropbox.com/support

 

Heart Did this post help you? If so please give it a Like below. 
:white_check_mark: Did this post fix your issue/answer your question? If so please press the 'Accept as Best Answer' button to help others find it.
:arrows_counterclockwise: Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

tharris104
Explorer | Level 3
Go to solution

I have tried this on both NTFS and ext4 and still have issues. This is a clean OS install, other than the NVIDIA drivers that are installed beforehand.

-Installed 64bit Fedora 25 workstation

-Installed 64bit dropbox via https://www.dropbox.com/install-linux 

-Formatted secondary drive (NTFS + ext4), and setup auto mount on fstab

-Opened up all permissions and using chown doesn't seem to make a difference since root is always mounting the drive

-When first opening Dropbox, I go to move the location and it returns "Unexpected errors occured. Your Dropbox is ok!" 

 

One thing I would like to add is that about 6 months ago when I did this exact same process... I didn't have problems and didnt even need to change the permissions. Please help

mike _.
Helpful | Level 6
Go to solution

-Formatted secondary drive (NTFS + ext4), and setup auto mount on fstab

That doesn't make sense. Do you mean you set up the secondary drive with two partitions and formatted one NTFS and one ext4?  Then you tried to move the Dropbox directory to the NTFS partition?

 

 


Please help

C'mon, look at this thread, you may as well write "please help" on a piece of paper, stick it in a bottle and chuck it in the sea.

 

The only solution to this issue is someone at Dropbox figuring it out where the issue is in the client code and fixing it. All we can do is wait for that to happen.

 

The support ticket I have open has now been passed to the engineering team. Hopefully one of them will come up with a fix to incorporate in to a client update.

 

It could be that they issue you're encountering isn't even the same error I am. We're both trying to move the Dropbox directory and we both get the same error message, but it's obviously a generic catch all message that could be displayed in who knows how many circumstances.

tharris104
Explorer | Level 3
Go to solution

I went through the entire process twice. Tried it with ext4 first...then I tried NTFS and same results... as I mentioned in the very first sentence. 

 

I really doubt this issue is beyond Dropbox. I have been able to replicate the exact same error over multiple installations with different medias... I have tried both Fedora 25 + 26 (seperately!!! for those who cant read) and have just gone to a completely different OS to resolve the issue. I did see some people mentioning Arch had similar problems and error codes. 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Jane Dropbox Staff
  • User avatar
    hrvig New member | Level 2
  • User avatar
    0x000000 New member | Level 2
What do Dropbox user levels mean?