nextcloud / nextcloud/android

Auto-upload crashes / loops when moving (many) files to different storage location on phone

Open
#9,407 1 comment 2 reactions 0 assignees View on GitHub
bug feature: auto upload hotspot: device storage needs review
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### Steps to reproduce
1. Have 1000+ photos / videos on phone internal memory, synced / auto-uploaded to NC
2. Move these photos / videos to different storage location (i.e. SD card) which is also set to auto-upload to NC
3. App starts checking / syncing these new files, but crashes / stalls before it reaches the last file, then starts all over.
4. App never finishes syncing and becomes very slow (to almost unworkable on Fairphone 3+), only 'fixable' by deleting the majority of the files in the queue from the phone, effectively aborting the entire operation.

### Expected behaviour
- App handles syncing / uploading a large number (i.e. 1000+) of, perhaps already uploaded, files graciously and finishes syncing, OR at least picks up from where it left off if it *does* run into issues, without simply starting all over again indefinitely.

### Actual behaviour
- App never finishes syncing and keeps running through all the 'new' files over and over and over again, while becoming totally unresponsive in the process.

### Can you reproduce this problem on https://try.nextcloud.com?
- Test accounts only work for 60 minutes. I cannot set up the app, upload the required amount of data, move that data over to an SD card AND wait for the app to finish syncing within that time frame.

### Environment data
Android version: 10.

Device model: Fairphone 3+

Stock or customized system: stock

Nextcloud app version: 3.18.0

Nextcloud server version: 21.0.7

Reverse proxy: Nginx Proxy Manager 2.9.7

### Logs
#### Web server error log
```
Will provide web server logs if required.
```
#### Nextcloud log (data/nextcloud.log)
```
Will provide Nextcloud log if required.
```
**NOTE:** Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate

- Issue Template is not supported (yet?) on NC 21.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.