Windows Desktop Client: Uploads 100 files at a time and freezes

Thank you very much for your help.

FYI I created a bug here.

  1. Client log seems to blame the server ?

First errors (if I read correctly) are :

2024-11-23 10:18:46:711 [ warning nextcloud.sync.networkjob C:\Users\User\AppData\Local\Temp\windows-26654\client-building\desktop\src\libsync\abstractnetworkjob.cpp:223 ]:	QNetworkReply::UnknownServerError "Le serveur a répondu \"504 Gateway Time-out\"  à \"POST https://cloud.huynen.fr/remote.php/dav/bulk\"" QVariant(int, 504)
2024-11-23 10:18:46:711 [ warning nextcloud.sync.credentials.webflow C:\Users\User\AppData\Local\Temp\windows-26654\client-building\desktop\src\gui\creds\webflowcredentials.cpp:207 ]:	QNetworkReply::UnknownServerError
2024-11-23 10:18:46:711 [ warning nextcloud.sync.credentials.webflow C:\Users\User\AppData\Local\Temp\windows-26654\client-building\desktop\src\gui\creds\webflowcredentials.cpp:208 ]:	"Error transferring https://cloud.huynen.fr/remote.php/dav/bulk - server replied: Gateway Time-out"
2024-11-23 10:18:46:711 [ info nextcloud.sync.networkjob.put.multi C:\Users\User\AppData\Local\Temp\windows-26654\client-building\desktop\src\libsync\putmultifilejob.cpp:85 ]:	POST of "https://cloud.huynen.fr/remote.php/dav/bulk" "" FINISHED WITH STATUS "UnknownServerError Le serveur a répondu \"504 Gateway Time-out\"  à \"POST https://cloud.huynen.fr/remote.php/dav/bulk\"" QVariant(int, 504) QVariant(QString, "Gateway Time-out")

Then exactly 100 lines like :

2024-11-23 10:18:46:712 [ warning nextcloud.sync.networkjob.put.multi C:\Users\User\AppData\Local\Temp\windows-26654\client-building\desktop\src\libsync\putmultifilejob.cpp:94 ]:	oneDevice has error: "Erreur inconnue"

And 400 lines : (4 lines per file)

2024-11-23 10:18:46:712 [ info nextcloud.sync.propagator.bulkupload C:\Users\User\AppData\Local\Temp\windows-26654\client-building\desktop\src\libsync\bulkpropagatorjob.cpp:541 ]:	Item completed "photos du NAS/IMG_20170904_091921.JPG" OCC::SyncFileItem::NormalError CSyncEnums::CSYNC_INSTRUCTION_SYNC "Erreur réseau : 499"
2024-11-23 10:18:46:712 [ warning nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-26654\client-building\desktop\src\libsync\bulkpropagatorjob.cpp:723 ]:	Could not complete propagation of "photos du NAS/IMG_20170904_091921.JPG" by OCC::BulkPropagatorJob(0x21a21ea60c0) with status OCC::SyncFileItem::NormalError and error: "Erreur réseau : 499"
2024-11-23 10:18:46:712 [ info nextcloud.sync.propagator.bulkupload C:\Users\User\AppData\Local\Temp\windows-26654\client-building\desktop\src\libsync\bulkpropagatorjob.cpp:753 ]:	modify final status NormalError OCC::SyncFileItem::NormalError OCC::SyncFileItem::NormalError
2024-11-23 10:18:46:714 [ info nextcloud.gui.activity C:\Users\User\AppData\Local\Temp\windows-26654\client-building\desktop\src\gui\tray\usermodel.cpp:849 ]:	Item  "photos du NAS/IMG_20170904_091921.JPG"  retrieved resulted in error  "Erreur réseau : 499"
...
  1. PHP settings are :
upload_max_filesize = 16G
post_max_size = 16G    
memory_limit = 16G   
max_file_uploads = 100
output_buffering = Off
max_input_time = 3600
max_execution_time = 3600
session.gc_maxlifetime = 3600
default_socket_timeout = 600 # changed from 60 with no change on bug
max_file_uploads = 100 # changed to 1000 without change
  1. I have not installed Redis, file locking is managed by the database.

I disabled file locking in config.php, without any change.

  1. Router : same behaviour at work and at home… where I used to live without this bug.
    Edit : I’m not sure I’ve ever tried to upload so many files from the desktop client in the past…
  2. Nextcloud settings : I tried to disable chuncking with no effect (max_chunk_size --value 0). I don’t know what other setting might help…
  3. No issue with large files.

Finally I guess the gateway timeout is something to look into ?

1 Like