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
caconym
4 years agoHelpful | Level 6
Can't un-exclude directories with `dropbox.py exclude remove <directory>` on Ubuntu 20.04.2
I have a Linux machine (running Ubuntu 20.04.2 LTS, "Focal Fossa") upon which I am running a "headless" Dropbox daemon as per here: https://www.dropbox.com/install-linux
The Dropbox daemon is u...
caconym
Helpful | Level 6
I tried a full reinstall (including removal of the entire Dropbox directory), and this time I didn't change any selective sync settings until the initial sync was finished, but I'm still having the same problem. I probably should have clarified that this is a relatively fresh and clean Ubuntu installation (of the latest LTS distro, compliant with the listed Dropbox requirements) and a totally fresh and clean "headless" Dropbox daemon installation (as of this afternoon an hour or two before I posted here):
```
$ cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
[...]
$ wget https://www.dropbox.com/download?dl=packages/dropbox.py
```
As I mentioned above, everything else seems to work, including the initial `dropbox.py exclude add <directory>`. It's worth noting that on my earlier installation `dropbox.py exclude` did show excluded directories until the daemon finished removing them; I tried to reproduce this after the second install, but this time I think the daemon was faster than me since it wasn't busy with sync tasks.
Since the last nautilus-dropbox release (of which the Python CLI script is a part) was over a year ago, I was wondering if some more recent change in the daemon might have broken compatibility, so I tried talking to the daemon's command socket directly using the "protocol" documented by the open-source CLI code. I was able to reproduce the same bad (or at least unexpected) behavior without running the CLI at all.
First, check the status of an existing, synced directory (with a file in it):
```
<redacted>@<redacted>:~/.dropbox$ nc -U command_socket
icon_overlay_file_status
path /home/<redacted>/Dropbox/test_dir_3
done
ok
status up to date
done
```
(Everything up to and including the first "done" is my input; the rest is the response from the socket, with the first line ("ok" in this case) being the overall response status.)
Next, add that directory to the ignore set:
```
ignore_set_add
paths /home/<redacted>/Dropbox/test_dir_3
done
ok
ignored /home/<redacted>/Dropbox/test_dir_3
unrecognized
done
```
The "ok" status is a good sign, and the "ignored" line indicates that the directory has been added to the ignore set. However, the daemon claims the ignore set is still empty:
```
get_ignore_set
done
ok
ignore_set
done
```
But the directory has been removed:
```
icon_overlay_file_status
path /home/<redacted>/Dropbox/test_dir_3
done
notok
The 'path' argument does not exist
done
```
`ls` in the shell confirms the same.
The command socket obviously isn't an officially documented API (confirmed by your team here), but all I'm doing here is imitating the commands the Python CLI sends to it. The socket is accepting these commands and giving sensible responses that match what I get when I use the CLI to do the same things (and don't return any error statuses), so my guess is that this is a bug in the daemon. A permissions or other configuration problem seems unlikely given that all the other features I've tested are working fine.
sarke
4 years agoHelpful | Level 5
Same issue here, very frustrating. We've been paying Business Team account for almost a decade.
@caconym, do you (or anyone else) know what the correct syntax is for ignore_set_remove on the command socket? Specifically the paths argument, is there a certain array/list format?
ignore_set_remove
paths /opt/dropbox/Dropbox/somefolder
done
ok
removed
unrecognized /opt/dropbox/Dropbox/somefolder
done
EDIT: So the paths are tab separated. ignore_set_add seems to work but not ignore_set_add.
- sarke4 years agoHelpful | Level 5
Reverting to 123.4.4832 fixes the problem. It seems 124.4.4912 introduced the bug.
- lassamaria4 years agoNew member | Level 2
Thank you sarke! Reverting to 123.4.4832 fixed it for me. It's sad that Dropbox won't fix the bug they introduced at that point, but at least old versions are still available. No idea what new features were added after that version but they don't seem to be worth this serious bug.
- iqvoice4 years agoNew member | Level 2
I also have this problem. Would be nice to see a fix.
About Delete, edit, and organize
Solve issues with deleting, editing, and organizing files and folders in your Dropbox account with support 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!