Why won't Dropbox sync particular files on my mac?

5

2

I'm using dropbox across several machines - two macs, two linux machines.

All are working happily - except for one mac, where there are 4 files that persistently refuse to update.

In finder, these 4 files have a red X icon. The dropbox menu is stuck on 'syncing' (and has been for about a week now), and has part of an error message saying that it can't write to these files.

In Finder's "Get Info", it says I have read+write access; at the commandline, ls shows that they have -rwxrwxrwx permissions.

James Polley

Posted 2010-01-14T00:07:26.593

Reputation: 5 892

What kind of files are they? Can you execute them without Finder asking the "are you sure?" question, like when you download something from the internet and it warns you first. – Marcin – 2010-01-14T01:03:03.980

Does quitting and relaunching Dropbox help? That was all it took when mine was stuck on "syncing" a while back. If you search your logs for dropbox do you get any useful hits? – ridogi – 2010-01-14T01:17:22.217

@marcin: they're documents. Didn't try to execute them (but it would have been fruitless, they're not executables - I don't know why the x bits were set) – James Polley – 2010-01-14T01:40:41.547

@ridogi Relaunching dropbox didn't help, rebooting didn't help. Logs don't show anything useful. – James Polley – 2010-01-14T01:41:14.417

("didn't" rather than "doesn't" because I've already solved this, but my solution was esoteric; I'm hoping that someone else can come up with a better answer, but if not I'll just have to answer my own question so that the solution is at least documented) – James Polley – 2010-01-14T01:50:37.073

Answers

5

The HFS+ filesystem includes flags, which provide extra permissions on top of the usual Unix permissions. One of the flags is "unchangeable" - which does what the name suggests.

Several files inside my dropbox had been flagged as unchangeable. You can check for this with ls:

Sombrero:directory polleyj$ ls -Ol
total 0
-rwxrwxrwx  1 polleyj  admin  uchg 0 15 Jan 23:29 file1

-0 tells ls to show the extra flags; uchg indicates that this files in unchangeable.

Sombrero:directory polleyj$ rm file1 
override rwxrwxrwx  polleyj/admin uchg for file1? y
rm: file1: Operation not permitted
Sombrero:directory polleyj$ mv file1 ..
mv: rename file1 to ../file1: Operation not permitted
Sombrero:directory polleyj$ 

To fix this, use chflags:

Sombrero:directory polleyj$ chflags nouchg file1 
Sombrero:directory polleyj$ rm file1 
Sombrero:directory polleyj$ ls
Sombrero:directory polleyj$ 

James Polley

Posted 2010-01-14T00:07:26.593

Reputation: 5 892

1

I ran into the same problem and found out one of the directories in Dropbox was owned by a different user. Running chown on that directory cleared up the sync issue.

Robert Hui

Posted 2010-01-14T00:07:26.593

Reputation: 111

Now that you mention it, that makes sense. Having the "unchangeable" bit set means the file can't be modified; having it owned by a different user would have the same effect (and presumably produce the same symptom). – James Polley – 2013-05-14T04:33:32.003

1

I found another hitch that prevents Dropbox from synchronizing specific files and folders, that isn't mentioned anywhere else: If you use certain special characters like for example backslash \ in the Dropbox folder or file name. See: Certain files won’t sync in Dropbox.

buijs

Posted 2010-01-14T00:07:26.593

Reputation: 21

0

Sometimes you just need to wait. Go to the Dropbox icon in the menu bar and check the status ticker. It will tell you what it's doing. I had a video file with a red cross for about an hour while either Dropbox or El Capitan sorted something out preparing it for upload, then it just started of its own accord. An hour later (big file, s-l-o-w internet), it changed to the blue uploading icon, an hour and a half after that, to a green tick.

Betts

Posted 2010-01-14T00:07:26.593

Reputation: 1

0

I had a red cross icon next to a pdf someone else sent me. I saw it for about three days. What I did was copy the pdf in the Desktop, changing its name. In the pdf information, just in case, reduced my privileges to "read only". Then logged off from Dropbox in my three macs, and logged in to Dropbox via the internet. Then permanently deleted the reluctant pdf. Finally, logged in again my laptop to Dropbox, and copied the pdf, from the Desktop to the right Dropbox folder. The red cross disappeared. Now I have logged in to Dropbox via the desktop in my other computers and there are no more red crosses in that famous pdf. Hope it helps.

StellaPilar

Posted 2010-01-14T00:07:26.593

Reputation: 1

0

1) Your Dropbox is on a network share that is disconnecting and reconnecting (restarting may help) 2) You're over your quota. You should remove files (or upgrade :-).

Willy

Posted 2010-01-14T00:07:26.593

Reputation: 78

Nope. 54% of Dropbox quota, and the local copy is on my laptop's hard drive – James Polley – 2010-01-14T02:04:37.367