Non stop HEAD requests

Hey all!

I set up my nextcloud instance yesterday with the primary goal of syncing my android pictures there. I enabled auto upload in the android client. I think everything has been uploaded but y server is under heavy load because it seems that the nextcloud android continuously send HEAD requests looking like:

.168.0.254 - username [10/Sep/2023:07:06:32 +0200] "HEAD /remote.php/dav/files/username/InstantUpload/Camera/VID_20220724_200703.mp4 HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.25.0"
192.168.0.254 - username [10/Sep/2023:07:06:34 +0200] "HEAD /remote.php/dav/files/username/InstantUpload/Camera/VID_20220901_083041.mp4 HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.25.0"
192.168.0.254 - username [10/Sep/2023:07:06:35 +0200] "HEAD /remote.php/dav/files/username/InstantUpload/Camera/VID_20220612_081618.mp4 HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.25.0"
192.168.0.254 - username [10/Sep/2023:07:06:37 +0200] "HEAD /remote.php/dav/files/username/InstantUpload/Camera/VID_20220922_185022.mp4 HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.25.0"
192.168.0.254 - username [10/Sep/2023:07:06:38 +0200] "HEAD /remote.php/dav/files/username/InstantUpload/Camera/VID_20220519_193331.mp4 HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.25.0"
192.168.0.254 - username [10/Sep/2023:07:06:40 +0200] "HEAD /remote.php/dav/files/username/InstantUpload/Camera/VID_20220724_200825.mp4 HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.25.0"
192.168.0.254 - username [10/Sep/2023:07:06:41 +0200] "HEAD /remote.php/dav/files/username/InstantUpload/Camera/VID_20211220_0

Did I do something wrong?

  • What does your Android client show it’s doing under the Uploads section?

  • What do your actual server side NC logs show during those transactions? (The shared logs just appear to be web server logs)

  • Can you elaborate on your definition of “heavy load”? CPU usage? Memory? Disk I/o?

  • What version of NC and what is your preview configuration?

1 Like

By high load I meant really high CPU usage. I use the current stable on debian bookworm. NC logs were silent.

The client app showed 33k+ pending uploads, but a lot of files were in fact already uploaded, and the HEADs were probably the client app trying to determine whether the “clouded” file was already the good one. My mistake was to activate instant upload for a lot of folders, which apparently more or less kills the android client. I ended up nuking the client app, and activating auto upload only for new files. I’ll transfer the existing ones via another means, probably just adb pull, then occ files:scan.