[Bug]: E2E stuck on "Failed to upload encrypted file" after shutting down PC during E2E files sync
- Dominant language
- C++
- Stars
- 3.9k
- Forks
- 1k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 123
Description
### ⚠️ Before submitting, please verify the following: ⚠️
- [x] This is a **bug**, not a question or a configuration issue.
- [x] This issue is **not** already reported on Github (I've searched it).
- [x] Nextcloud Server and Desktop Client are **up to date**. See [Server Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) and [Desktop Releases](https://nextcloud.com/install/#install-clients) for supported versions.
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/)
### Bug description
E2E encrypted sync worked fine as long as I let it finish before shutting down, but will get a "Failed to upload encrypted file" sync error after having shut it down during a large sync of photos and videos. I have freshly set up the Nextcloud instances (both AIO server & desktop), and it has happened twice now with completely fresh installs. Wiped the entire server install after the first occurence, but today it happened for the second time, and now I noticed it only happened after shutting down my PC while it was still syncing. I have **NOT** enabled server-side encryption here, just only the End-to-end Encryption app. I experienced this both on server 31 and 32.
### Steps to reproduce
1. Enable End-to-end encryption on both server & desktop
2. Create empty folder
3. Enable E2E on empty folder
4. Copy files from local disk to empty E2E folder
5. Let it sync multiple large photos/videos/files of max 50MB each, but have 100 of them.
6. Shutdown PC in the middle of E2E sync
7. Start PC
8. Upload should now fail
### Expected behavior
I would have expected the desktop client to deal with this more gracefully (let the in progress file finish and finish the sync, or finish the sync fully). And I would expect the desktop client to be auto-diagnosing/fixing the issue at hand.
### Which files are affected by this bug
Fotos/2018/REDACTED/DSC_0266.JPG
### Operating system
Windows
### Which version of the operating system you are running.
Windows 11
### Package
Official Windows MSI
### Nextcloud Server version
32.0.0 (currently), 31.0.9 (previously)
### Nextcloud Desktop Client version
3.17.3
### Is this bug present after an update or on a fresh install?
Fresh desktop client install
### Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
### Are you using an external user-backend?
- [x] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Nextcloud Server logs
```shell
Can't find anything, logs from data/nextcloud.log are outdated from yesterday.
```
### Additional info
[desktop-log.md](https://github.com/user-attachments/files/22900298/desktop-log.md)
Contributor guide
Assessment
This issue has not been assessed yet.