Skip to content

Error syncing file - no apparent reason #17159

@threed-factory-store

Description

@threed-factory-store

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

I don't know how to reproduce. This looks like a random file that NextCloud won't sync. The file will sync for a few times, then it won't. I did nothing to the file between syncs.

  • I use NextCloud on Ubuntu and Android.
  • I've installed Android Studio on my laptop, downloaded the latest NextCloud source code, compiled it, and installed the APK file on my phone. I uninstalled the existing NextCloud app first.
  • I did a sync of a few files and got error messages. All they say is "Error downloading..." and give a percentage that tells me nothing.

Expected behaviour

All files sync as expected.

Actual behaviour

Random files will not sync. It seems to be the same files every time. The one in question in this bug report has spaces in the name, but others with spaces sync just fine. The permissions on the file match all the other files in the same folder.

Android version

16

Device brand and model

Samsung Galaxy S25+

Stock or custom OS?

Stock

Nextcloud android app version

34.0.1 Alpha51

Nextcloud server version

Nextcloud Hub 25 Autumn

Using a reverse proxy?

No

Android logs

06-09 08:17:16.041 17851 17870 D DownloadFileOperation: Last modified set: true
06-09 08:17:16.041 17851 17870 I DownloadFileOperation: Download of /Walt/Documents/Food/Bread/Sourdough/San Francisco Sourdough Bread.odt to /storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/[ServerName]/Walt/Documents/Food/Bread/Sourdough/San Francisco Sourdough Bread.odt: Operation finished with HTTP status code 200 (success)
06-09 08:17:16.041 17851 19215 I DownloadFileRemoteOperation: Download of /Walt/Documents/Food/Meat/Chicken Pot Pie.txt to /storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/tmp/[ServerName]/Walt/Documents/Food/Meat/Chicken Pot Pie.txt: Operation finished with HTTP status code 200 (success)
06-09 08:17:16.041 17851 19215 D DownloadFileOperation: Last modified set: false
06-09 08:17:16.042 17851 19215 I DownloadFileOperation: Download of /Walt/Documents/Food/Meat/Chicken Pot Pie.txt to /storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/[ServerName]/Walt/Documents/Food/Meat/Chicken Pot Pie.txt: Error while moving file to final directory
06-09 08:17:16.042 17851 19215 W 📂FolderDownloadWorker: ⚠️ download failed for /Walt/Documents/Food/Meat/Chicken Pot Pie.txt: Error while moving file to final directory
06-09 08:17:16.042 17851 19215 D 📂FolderDownloadWorker: ❌ completed with failures
06-09 08:17:16.042 17851 19215 D 📣FolderDownloadBroadcastManager: Download completed broadcast sent

Here's the much larger log...
logcatOutput.txt

Server error logs

Additional information

The file with the error is "/Android/media/com.nextcloud.client/nextcloud/[ServerName]/Walt/Documents/Food/Meat/Chicken Pot Pie.txt"

Here is the output of ls -l for the ...Food/Meat folder on my phone:

total 848
-rw-rw---- 1 u0_a320 media_rw 143 2025-07-14 14:56 Greek Marinade for Chicken.txt
-rw-rw---- 1 u0_a320 media_rw 28473 2023-12-07 19:14 Picadillo - Immaculate Bites.pdf
-rw-rw---- 1 u0_a320 media_rw 268795 2023-12-07 19:00 Picadillo - Turkey - Skinnytaste.pdf
-rw-rw---- 1 u0_a320 media_rw 558753 2026-02-16 18:16 Pici alla Boscaiola.pdf
-rw-rw---- 1 u0_a320 media_rw 703 2025-11-26 14:55 Turkey Gravy - Make Ahead

On my computer, all files in the Meat folder have the same permissions:
total 852
-rw-rw-r-- 1 walt walt 432 Jun 24 2025 'Chicken Pot Pie.txt'
-rw-rw-r-- 1 walt walt 143 Jul 14 2025 'Greek Marinade for Chicken.txt'
-rw-rw-r-- 1 walt walt 28473 Dec 7 2023 'Picadillo - Immaculate Bites.pdf'
-rw-rw-r-- 1 walt walt 268795 Dec 7 2023 'Picadillo - Turkey - Skinnytaste.pdf'
-rw-rw-r-- 1 walt walt 558753 Feb 16 18:16 'Pici alla Boscaiola.pdf'
-rw-rw-r-- 1 walt walt 703 Nov 26 2025 'Turkey Gravy - Make Ahead'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions