It seems that sync fails when a file or directory contains a comma (error message in the desktop client: operation cancelled)
The client log contains errors like this (partly in french but clear):
||Books/calibre/Brussolo,Serge|INST_ERROR|Up|1462090105||4096||6|Cet élément n'a pas été synchronisé en raison des erreurs précédentes : Error downloading https://<mydomain>/nextcloud/remote.php/dav/files/<myemail>/Books/calibre/Brussolo,Serge - server replied: Forbidden|0|0|0|||INST_NONE| 2725
||Books/calibre/Brussolo,Serge/Baignade accompagnee (1748)|INST_NEW|Up|1462101425||4096||1|Operation canceled|0|0|0|||INST_NONE| 2726
||Books/calibre/Brussolo,Serge/Captain Suicide (1792)|INST_NEW|Up|1462101429||4096||1|Operation canceled|0|0|0|||INST_NONE| 2727
If I rename the file/directory and just remove the comma, then it starts working again…
No answer to this? I think it’s a real bug!
I checked again and as soon as you put a comma in the name of a file or directory, you get a 403 return from the server.
To check, just try to go to this link in your browser (after replacing the path to the server and the user, the file does not ned to exist on the server): https://path/to/nextcloud/remote.php/dav/files/your_account/dir/file,test.jpg
==> this leads for me to a 403 error
If you juste replace the comma in file,test.jpg by a dot: https://path/to/nextcloud/remote.php/dav/files/your_account/dir/file.test.jpg
==> I get the authentication window!
Hi @tflidd, thanks for replying
I searched the forum for the problem but did not find anything, you’re better than me at that task
Our common point with the second one is raspberry pi but I can create files with commas, and I also have a seafile server on this pi (currently migrating from seafile to nextcloud) and seafile has no problem with commas…
I also have the same kind of trouble (403) with all files that end with .sql although I have no filter on this.
Which webserver do you use? Do you use the config from the documentation? Could be that the webserver is filtering such filenames by default, same thing with certain extensions. Seafile spins up their own webserver…
Or run apache in debug mode to see where exactly the error is coming from. 403 could also be permission issues or the file system where you save does not support commas. Please provide more information, perhaps you are running a very old version of Nextcloud, we don’t even know which kind of operating system you are using, neither the modules or apps that are used. You could probably also block some extensions with the file access control app. Also don’t only try the client, try the interface as well. Also keep an eye on your security products (firewalls, virus scanner, …).
Like this we can’t help you. I could argue that I run also apache and Nextcloud and don’t have any problems with commas, also there are only very few users with this problem, so it is neither a problem with apache nor with Nextcloud.
Sorry, I’m running the latest version of NC (220.127.116.11) on a raspbian stretch up to date.
I can create files with commas in my file system and files in the same directories where I have problems are correctly synced by the desktop app so not a right …
I will put the LogLevel at Debug and come back with more information
What OS are you using? If you put a file into your DocumentRoot, can you download it when it contains a comma in the file name (not inside the Nextcloud-folder), or take a different virtual host. If in a different folder, you have the same problem, then it is likely somewhere in your apache config. If you are using CentOS, take a look into SELinux, this often blocks things and is hard to find out.
As I said in previous messages, my NC runs on Raspbian Stretch.
Finally, I suspect the problem comes from the desktop client. It says “server said forbidden” but I can’t find any trace of the request on the server side… And the desktop client contains starnge messages “keep on blacklist: Error downloading xxx, Server replied: Forbidden” as if it had the file name in cache and it didn’t try any more…
When I mount the webdav address of my nextcloud in Nemo on my Linux Mint laptop, I can create files that contain commas…
So, it’s not an apache issue, the webdav goes through the apache…
Perfect, so the server can handle it. However, we don’t know why the client fails. Can you try a webdav client on the client that has the problem (for Win e.g. Cyberduck or WinSCP)?
For the client software, I still use the original ownCloud client version 2.3.4 (NC currently only provides their own theme, for NC 13 they announced their own client). And keep an eye on your security products (firewall, anti-virus) …
I mounted the webdav in Nemo on the client machine where I have upload problems and it works.
So both the server and the client machines seem to be able to handle it and there is no security issue…
I tried to upload a file name xxx.sql (as I said, I have also problems on these sql files) through the web interface and it also failed with the message “forbidden” the first time. Then, I tried again and it succeeded!
I then tried with a directory and a file with a comma in their name (trough the web site) and, it worked from the first time…
I’m a bit lost…
Well, I finally installed the owncloud 2.3.4 client on my machine and it started to work…
Still working on my 15GB, but all files passed already have been correctly uploaded to the server.
I didn’t change anything in the client directory (didn’t remove the sqlite files, …).
Puzzled. Probably a bug fixed between 2.3.2 and 2.3.4…