Auto upload conflict detection not working correctly
⚠️ Before posting ⚠️
- [x] This is a bug, not a question or an enhancement.
- [x] I've searched for similar issues and didn't find a duplicate.
- [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [x] I agree to follow Nextcloud's Code of Conduct.
Steps to reproduce
- Enable auto upload on any folder
- Set to "Skip uploading" if file exists
- Get notification "Upload failed Conflict" even though the file does not exist
Or
- Set to "Rename new version" if file exists
- File gets renamed indefinitely ("$file", "$file (2)", "$file (2) (2)", ...)
Expected behaviour
The app should either detect that the file does not exist and upload it or detect that the file already exists and do nothing if set to "Skip uploading". If set to "Rename new version" it shoul detect, that the file already exists and rename it once, then stop.
Actual behaviour
The app doesn't seem to correctly detect if a file conflict occurs. If the file does not exist it still detects a non-existing conflict.
Android version
16
Device brand and model
Google Pixel 7a
Stock or custom OS?
Custom (explain in "additional information")
Nextcloud android app version
3.34.1
Nextcloud server version
31.0.10
Using a reverse proxy?
Yes
Android logs
Nextcloud log afc001edf3d7.txt
Server error logs
Additional information
Using GrapheneOS Build 2025112101.
Same here, running on a POCO C75 with Android 15\Xiaomi HyperOS 2.0.201.0 and Nextcloud on docker (Nextcloud Hub 25 Autumn (32.0.2)).
I tried grepping for one of the files giving this error on the log:
2025-12-05 13:28:55 sudo grep 'IMG_20251204_191549.jpg' nextcloud-docker/data/nextcloud.log
{"reqId":"7tldK6QvIUjPOp5VKBUo","level":2,"time":"2025-12-05T03:45:12+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"exif_imagetype(/var/www/html/data/johnny/files/Photos/2025/12/IMG_20251204_191549.jpg): Failed to open stream: No such file or directory at /var/www/html/custom_apps/recognize/lib/Classifiers/Classifier.php#301","userAgent":"--","version":"32.0.2.2","data":{"app":"PHP"}}
{"reqId":"7tldK6QvIUjPOp5VKBUo","level":2,"time":"2025-12-05T03:45:12+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"filesize(): stat failed for /var/www/html/data/johnny/files/Photos/2025/12/IMG_20251204_191549.jpg at /var/www/html/custom_apps/recognize/lib/Classifiers/Classifier.php#106","userAgent":"--","version":"32.0.2.2","data":{"app":"PHP"}}
{"reqId":"2l5CGb2nmiLWvXvIRz6X","level":3,"time":"2025-12-05T04:00:07+00:00","remoteAddr":"","user":"--","app":"memories","method":"","url":"--","message":"Failed to index file /johnny/files/Photos/2025/12/IMG_20251204_191549.jpg: File is not readable: /var/www/html/data/johnny/files/Photos/2025/12/IMG_20251204_191549.jpg","userAgent":"--","version":"32.0.2.2","data":{"app":"memories"}}
Let me know if there's anything more of use on the log to grep, mine's currently too big to share here =(
Hello
@joaociocca @dataprolet
Auto-Upload logic completely redesigned. Could you please try with 3.35.0 RC2 and share your feedback with us?
The v3.35.0 RC2 ist really buggy. I configured Auto upload on several folders and it uploaded all files in separate folders. But in the upload section of the app the files appear as "A file with the same name already exists", even though they were uploaded. Also at some point when clicking the hamburger menu or the lower buttons ("All files", etc.) it was not doing anything. Instead an "Assistant" button appeared and disappeared in the lower section.
EDIT: I'm also getting a "Folder error" on my custom folder, while the notification says "File not found", even though the file is present.
EDIT 2: Now I get the same Conflict error on a newly taken picture. So we're back to square one..
I've disabled all Auto uploads, but the app is still trying to upload files producing the above mentioned errors.