It uploads very fast and then suddenly hangs. After a while I get a timeout error in the client.
It then starts the synch process again. It can happens randomly after 5 files uploaded, 8 or once after 200 files got uploaded. I cannot find anything interesting in nginx, php-fpm or nextcloud logs.
I hope you don’t use sqlite. You seem to use redis, I haven’t seen such problems yet. What kind of device are you using as server? Can you estimate after how many files your error appears?
Is this your normal primary storage, no shared folders, no external storage?
Intel® Core™ i5-4670 CPU @ 3.40GHz
System memory size: 23GiB
Nextcloud runs in an LXC container, with an Nginx front proxy in another LXC container, both running on the high performance ZFS file system.
The primary storage is different than from the LXC system filesystem. It comes from another ZFS container on large disks (on the same computer):
lxc config device show nextcloud
data:
path: /srv/www/nextcloud/data
source: /tank/cloud/
type: disk
root:
path: /
type: disk
I have other applications like gitlab running this way and no issue at system level, no filesystem errors at all or anything related. I am pretty sure something is wrong in my config (most probably nginxes config) but I can’t iron it out…
For the “how many files” question, it is quite random, but the pattern is around 200 files at first attempt and then less that 10 for each retry.
Could it be your redis service? I have a similar issue. All properly configured yet redis suddenly stop caching items or passing the requests. When I restart redis the images and file loads correctly.