Open kiv57 opened 5 days ago
I do have the same problem, but on different platforms as well (win10, win11, ubuntu24). The error started as 499, but changed to 299 by now. The symptoms are exactly the same, only the networkerror number shown changed. There are a few forum entries regarding this error from a few years ago, but there never was a concrete solution. Really appreciate @kiv57 opening the issue!
For me the syncing start to fail after the first 100 files as well, then it jumps to syncing file 200 and after this 400, 600, by then i usually restart the sync. Hope this helps identifiying the bug! 😃
Edit: The error just changed back to 499
I think I found a solution (also read my post in the help nextcloud forum).
Client log showed a 504 Gateway Time-out
from the server, followed by exactly 100 files in error 499.
I tried several php and nginx settings, it appears to work after adding the following in my /etc/nginx/sites-available/cloud
config file in the container, in the location ~ \.php(?:$|/)
section :
fastcgi_send_timeout 600;
fastcgi_connect_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
Note that my NC instance runs in an incus container behind an nginx reverse proxy. I also added some of those parameters on the host side. After (tens of) hours of testing, I must admit that I haven't kept track of all my files changes.
Correct me if I'm wrong : I naively understand that the NC desktop client uploads the first 100 files one by one, then by packs of 100. The timeout occurs if the sync of a 100 pack files takes too long.
Edit : I will wait a bit to be sure that the bug is solved for me and Darnokiv before closing the bug.
Thanks for the quick answer. Did you changed the config in the nextcloud container? My nextcloud runs as an app on truenas scale and I never got file editing inside a container working. I will try tomorrow, but right now I'm not sure what I would have to change exactly (within the nextcloud instance, the separate nginx reverse proxy on the server or the client). And since I don't have that much time free at the moment, this may take a while...
But thanks a lot for the help! I would really like to solve the problem in the long run.
I changed the mentioned settings in the host first (running the reverse proxy), then in the container.
The bug only disappeared when I added the lines to the container's nginx config, but I think the reverse proxy would also close the connection with default settings of 60 seconds. So you should change both sides if you can.
⚠️ Before submitting, please verify the following: ⚠️
Bug description
From the desktop client I added a local folder for syncing, containing about 50 000 files (photos).
After a few tens of seconds, the client shows a bunch of
[\FilePath] : Network error : 499
, then syncing speed falls to zero.I can restart the sync : a hundred more files are synchronised before the errors appear again.
Steps to reproduce
Expected behavior
Smooth syncing of thousands of files.
Which files are affected by this bug
All local files (.jpg) waiting for syncing
Operating system
Windows
Which version of the operating system you are running.
Windows 11
Package
Official Windows MSI
Nextcloud Server version
30.0.2
Nextcloud Desktop Client version
3.14.3
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 3.4.2 to 3.4.4)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
Are you using an external user-backend?
Nextcloud Server logs
Hundreds of
"File" is locked
:Additional info
Server setup :
PHP config :
Edit : I tried to add
OWNCLOUD_MAX_PARALLEL=1
to the client config file without success.