Nextcloud server 13.0.1 on Ubuntu 16.04.3
Nextcould client 2.3.2 (build 1)
Hi,
My server is part of the local network and I added “SMB / CIFS” to connect it to my shares.
My shares are regular Windows shares on Windows server 2003.
So, I use the Web interface to connect the shares using my AD Domain administrator credentials.
Then I use the Nextcloud client on a Wndows 10 PC to create the Sync connection.
Almost everything works great.
But in some share, some folders don’t sync properly.
What happens is if I delete a “rogue” folder from the local side it immediately comes back instead of deleting it from the server remote share. The folder is empty and does not contain any hidden or system file/folder
Most folders will behave normally.
I tried removing the folder sync connection from the client, delete everything in the local folder including hidden and system files/folders then re-create the same folder sync connection and it rebuilds.
Then the same problem occurs with the same folders.
Now, when I delete those rogue folders from the remote shared folder they disappear normally from both the share and the local folder as intended.
I would really like to understand what is going on. Why some folders and not others.
Thanks for pointing it.
I was hoping that the fact of forcing a sync on the client would trigger the nextcloud server to check for changes.
I went and read the document you linked but this is too advanced for me.
About this line: " To start listening to update notifications, start the occ command like this:"
What is occ? I tried “occ files_external:list” in putty and it gives me occ: command not found
Update (18/05/10) I want to add that the smbclient installed version 2:4.3.11 is installed.
You are missing a few parts of the command. First, you need to specify where to find occ. Easiest way is to first navigate to the root folder for nextcloud and run a command similar to this: (change according to your system. My version is working on FreeNAS). You can also read more about the occ script here
sudo -u www php occ files_external:list
The most probable part you need to change is “www” to “www-data” if you use ubuntu or similar OS. If you wondering what the parts of the command do, read further. If not, I still leave it here in case someone finds use for it
sudo -u www
Means that what is after should be run as the user “www”. occ needs to be run as the webserver user to work properly.
php
Is there since occ is a php script. After those parts, you can write the command as they are described in the documentation.
occ
Is the path to the file. If you have navigated to the correct folder, it is just the file name. Change accordingly