Issue with Uploading and Syncing Files on Nextcloud iOS App

Hello everyone,

I am currently using Nextcloud in the hope of no longer needing iCloud.

I have set up a VM on a Proxmox server with the following system details:

System Details:

  • Nextcloud Version: 30.0.5 (Nextcloud Hub 9), now (31.0.0 Beta 5)
  • Operating System: Linux 6.1.0-29-amd64 x86_64
  • Processor: Common KVM processor (4 threads)
  • Memory: 4.19 GB
  • PHP Version: 8.2.26 (CLI)
  • Nextcloud VM: 4 Cores, 4 GB RAM
  • Storage: SMB-Storage (also integrated into Nextcloud)

The issue I am facing right now is that when using the iOS app, it takes forever to upload and sync files.

I continuously receive error messages like:

    1. Internal Server Error
    1. The requested resource could not be found.

Eventually, the file gets uploaded, but with, for example, 6000 photos/videos, it is a real pain and takes days to complete.

I have configured the app as follows:

  • Automatic Upload:
    • Upload everything via Wi-Fi
    • Use subfolders (month)
    • Upload the entire camera roll
    • Additionally, all photos/videos from the camera roll should be automatically deleted
    • Which would work great, if the photos/videos were actually uploaded…

I should mention that the location for the automatically uploaded photos/videos is an SMB share that is integrated. The NAS has an SSD RAID 10 setup.

I have tested uploading directly to Nextcloud, which did not improve the situation. Therefore, I think it is not related to the SMB share.

I have already made adjustments in the PHP configuration, such as:

  • upload_max_filesize = 10G

In the Apache configuration, I have also adjusted things like:

  • MaxKeepAliveRequests 200

Here is an excerpt from the log of the iOS app:

2025-01-22 14:56:32 Network completed file: https://temp.url.com/remote.php/dav/files/user/user/Fotos/2023/12/23-12-11 08-59-52 0323.jpg with error code 500 and error description 500: Interner Serverfehler
2025-01-22 14:56:32 [INFO] PROCESS (UPLOAD) find 1 items
2025-01-22 14:56:32 [INFO] Process auto upload skipped file: https://temp.url.com/remote.php/dav/files/user/user/Fotos/2023/12/23-12-11 08-59-52 0323.jpg, because is already in session.
2025-01-22 14:56:35 [INFO] PROCESS (UPLOAD) find 1 items
2025-01-22 14:56:35 [INFO] Upload file 23-12-11 08-59-52 0323.jpg with Identifier 22865F86-824B-4EC1-AE63-E228A9C31C79/L0/001 with size 4791319 [CHUNK 0, E2EE false]
2025-01-22 14:56:35 Network start upload file: https://temp.url.com/remote.php/dav/files/user/user/Fotos/2023/12/23-12-11 08-59-52 0323.jpg
2025-01-22 14:56:35 [INFO] Upload file 23-12-11 08-59-52 0323.jpg with task with taskIdentifier 10
2025-01-22 14:56:35 [INFO AUTH] Challenge Disposition: 0
2025-01-22 14:56:38 Network completed file: https://temp.url.com/remote.php/dav/files/user/user/Fotos/2023/12/23-12-11 08-59-52 0323.jpg with error code 500 and error description 500: Interner Serverfehler
2025-01-22 14:56:39 [INFO] PROCESS (UPLOAD) find 1 items
2025-01-22 14:56:39 [INFO] Upload file 23-12-11 08-59-52 0323.jpg with Identifier 22865F86-824B-4EC1-AE63-E228A9C31C79/L0/001 with size 4791319 [CHUNK 0, E2EE false]
2025-01-22 14:56:39 Network start upload file: https://temp.url.com/remote.php/dav/files/user/user/Fotos/2023/12/23-12-11 08-59-52 0323.jpg
2025-01-22 14:56:39 [INFO] Upload file 23-12-11 08-59-52 0323.jpg with task with taskIdentifier 11
2025-01-22 14:56:39 [INFO] Automatic upload, new 6813 assets found [Auto upload full]
2025-01-22 14:56:39 Network request started: MKCOL https://temp.url.com/remote.php/dav/files/user/user/Fotos
2025-01-22 14:56:39 Network request headers: ["Content-Type": "application/x-www-form-urlencoded", "OCS-APIRequest": "true", "Authorization": "Basic dG9iaWFzOmdmbWRJM2o5Rnc3Qll1YkJnMlpqVW5iMFVMM3BjMmkwWW44SkRDcmVQOXdtcG85WGVNM1R3ajFjRTFHcXlwMVU2MEVBWE9qTQ==", "User-Agent": "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.3", "Accept": "application/json"]
2025-01-22 14:56:39 Network request body: None
2025-01-22 14:56:39 Network request started: PROPFIND https://temp.url.com/remote.php/dav/files/user/user/Fotos
2025-01-22 14:56:39 Network request headers: ["User-Agent": "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.3", "OCS-APIRequest": "true", "Authorization": "Basic dG9iaWFzOmdmbWRJM2o5Rnc3Qll1YkJnMlpqVW5iMFVMM3BjMmkwWW44SkRDcmVQOXdtcG85WGVNM1R3ajFjRTFHcXlwMVU2MEVBWE9qTQ==", "Content-Type": "application/xml", "Depth": "0"]
2025-01-22 14:56:39 Network request body: <?xml version="1.0" encoding="UTF-8"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
    <d:prop><d:displayname /><nc:share-download-limits /><d:getlastmodified /><d:getetag /><d:getcontenttype /><d:resourcetype /><d:quota-available-bytes /><d:quota-used-bytes /><d:getcontentlength /><permissions xmlns="http://owncloud.org/ns"/><id xmlns="http://owncloud.org/ns"/><fileid xmlns="http://owncloud.org/ns"/><size xmlns="http://owncloud.org/ns"/><favorite xmlns="http://owncloud.org/ns"/><share-types xmlns="http://owncloud.org/ns"/><owner-id xmlns="http://owncloud.org/ns"/><owner-display-name xmlns="http://owncloud.org/ns"/><comments-unread xmlns="http://owncloud.org/ns"/><checksums xmlns="http://owncloud.org/ns"/><downloadURL xmlns="http://owncloud.org/ns"/><data-fingerprint xmlns="http://owncloud.org/ns"/><creation_time xmlns="http://nextcloud.org/ns"/><upload_time xmlns="http://nextcloud.org/ns"/><is-encrypted xmlns="http://nextcloud.org/ns"/><has-preview xmlns="http://nextcloud.org/ns"/><mount-type xmlns="http://nextcloud.org/ns"/><rich-workspace xmlns="http://nextcloud.org/ns"/><note xmlns="http://nextcloud.org/ns"/><lock xmlns="http://nextcloud.org/ns"/><lock-owner xmlns="http://nextcloud.org/ns"/><lock-owner-editor xmlns="http://nextcloud.org/ns"/><lock-owner-displayname xmlns="http://nextcloud.org/ns"/><lock-owner-type xmlns="http://nextcloud.org/ns"/><lock-time xmlns="http://nextcloud.org/ns"/><lock-timeout xmlns="http://nextcloud.org/ns"/><system-tags xmlns="http://nextcloud.org/ns"/><file-metadata-size xmlns="http://nextcloud.org/ns"/><file-metadata-gps xmlns="http://nextcloud.org/ns"/><metadata-photos-exif xmlns="http://nextcloud.org/ns"/><metadata-photos-gps xmlns="http://nextcloud.org/ns"/><metadata-photos-original_date_time xmlns="http://nextcloud.org/ns"/><metadata-photos-place xmlns="http://nextcloud.org/ns"/><metadata-photos-size xmlns="http://nextcloud.org/ns"/><metadata-files-live-photo xmlns="http://nextcloud.org/ns"/><hidden xmlns="http://nextcloud.org/ns"/><share-permissions xmlns="http://open-collaboration-services.org/ns"/><share-permissions xmlns="http://open-cloud-mesh.org/ns"/>    </d:prop>
</d:propfind>
2025-01-22 14:56:40 Network response result: 2025-01-22 14:56:40 [Request]: PROPFIND https://temp.url.com/remote.php/dav/files/user/user/Fotos
    [Headers]:
        Authorization: Basic dG9iaWFzOmdmbWRJM2o5Rnc3Qll1YkJnMlpqVW5iMFVMM3BjMmkwWW44SkRDcmVQOXdtcG85WGVNM1R3ajFjRTFHcXlwMVU2MEVBWE9qTQ==
        Content-Type: application/xml
        Depth: 0
        OCS-APIRequest: true
        User-Agent: Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.3
    [Body]:
        <?xml version="1.0" encoding="UTF-8"?>
        <d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
            <d:prop><d:displayname /><nc:share-download-limits /><d:getlastmodified /><d:getetag /><d:getcontenttype /><d:resourcetype /><d:quota-available-bytes /><d:quota-used-bytes /><d:getcontentlength /><permissions xmlns="http://owncloud.org/ns"/><id xmlns="http://owncloud.org/ns"/><fileid xmlns="http://owncloud.org/ns"/><size xmlns="http://owncloud.org/ns"/><favorite xmlns="http://owncloud.org/ns"/><share-types xmlns="http://owncloud.org/ns"/><owner-id xmlns="http://owncloud.org/ns"/><owner-display-name xmlns="http://owncloud.org/ns"/><comments-unread xmlns="http://owncloud.org/ns"/><checksums xmlns="http://owncloud.org/ns"/><downloadURL xmlns="http://owncloud.org/ns"/><data-fingerprint xmlns="http://owncloud.org/ns"/><creation_time xmlns="http://nextcloud.org/ns"/><upload_time xmlns="http://nextcloud.org/ns"/><is-encrypted xmlns="http://nextcloud.org/ns"/><has-preview xmlns="http://nextcloud.org/ns"/><mount-type xmlns="http://nextcloud.org/ns"/><rich-workspace xmlns="http://nextcloud.org/ns"/><note xmlns="http://nextcloud.org/ns"/><lock xmlns="http://nextcloud.org/ns"/><lock-owner xmlns="http://nextcloud.org/ns"/><lock-owner-editor xmlns="http://nextcloud.org/ns"/><lock-owner-displayname xmlns="http://nextcloud.org/ns"/><lock-owner-type xmlns="http://nextcloud.org/ns"/><lock-time xmlns="http://nextcloud.org/ns"/><lock-timeout xmlns="http://nextcloud.org/ns"/><system-tags xmlns="http://nextcloud.org/ns"/><file-metadata-size xmlns="http://nextcloud.org/ns"/><file-metadata-gps xmlns="http://nextcloud.org/ns"/><metadata-photos-exif xmlns="http://nextcloud.org/ns"/><metadata-photos-gps xmlns="http://nextcloud.org/ns"/><metadata-photos-original_date_time xmlns="http://nextcloud.org/ns"/><metadata-photos-place xmlns="http://nextcloud.org/ns"/><metadata-photos-size xmlns="http://nextcloud.org/ns"/><metadata-files-live-photo xmlns="http://nextcloud.org/ns"/><hidden xmlns="http://nextcloud.org/ns"/><share-permissions xmlns="http://open-collaboration-services.org/ns"/><share-permissions xmlns="http://open-cloud-mesh.org/ns"/>    </d:prop>
        </d:propfind>

I would appreciate any hints or suggestions for a solution!

Thank you in advance!

Hi yellow.water,

I applaud you for struggling out of the golden cage.

Here there has been a similar situation, infrastructure wise, since my daughter exchanged her Android for an Apple a while back.

Performance issues are notoriously difficult to troubleshoot once open doors are closed.

  • Did you check the logs serverside, for the same timestamps?
  • How is Nextcloud accessed, are there proxies/VPNs/NAT in between?
  • What is the performance/behaviour for other clients when uploading to Nextcloud?
  • I understand the SMB share is on a NAS; does Nexctloud run on this NAS as well, or on another machine? How about the connection between NC and NAS?

Did you twice write down the specs for the VM, or is one for the VM and one for the host?

My Nextcloud runs on somewhat similar specs, in more detail:

  • quad-threaded Pentium J5005 with 32 GB RAM
  • running Proxmox
  • Debian with Yunohost in a container (3-core CPU, 5 GB RAM)
  • Nextcloud installed/managed via Yunohost, recently upgraded from NC29 to NC30
  • Thin LVM storage assigned directly to the container
  • Some 2.x TB in use, spread over some 30+ accounts

I am not aware of any trouble similar to yours during uploads, I’ll ask my daughter whether her phone displays any errors

edit to add: Which version of the Nextcloud app are you using on you phone? The Android version seems to be in rough water at the moment.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.