nextcloud / nextcloud/desktop

[Bug]: Client not resuming sync after error, only manual resume possible.

Open
#6,861 2 comments 3 reactions 0 assignees View on GitHub
0. Needs triage bug feature: :arrows_counterclockwise: sync engine
Dominant language
C++
Stars
3.9k
Forks
1k
Avg merge
1d 21h
Merged PRs (30d)
127

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

When the nextcloud client encounters an error (red exclamation mark in the taskbar), the sync process does not resume. This can only be done by clickin on the "Sync now" button besides the "Some files could not be synced" message.

### Steps to reproduce

Difficult to reproduce as it needs an error condition

### Expected behavior

The client should always try to resume the sync process. Specially for fresh installations the initial sync process should be able to run unattended and without an need for manual intervention. The only error exception are authentication errors because these usually do not resolve automatically.

### Which files are affected by this bug

No specific file

### Operating system

Linux

### Which version of the operating system you are running.

Ubuntu Studio 24.04

### Package

Appimage

### Nextcloud Server version

28.0.6

### Nextcloud Desktop Client version

3.13.0

### 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
2024-06-30 13:41:46:422 [ info nextcloud.gui.folder.manager /home/user/src/gui/folderman.cpp:959 ]: Etag poll timer timeout
2024-06-30 13:41:46:422 [ info nextcloud.gui.folder.manager /home/user/src/gui/folderman.cpp:963 ]: Folders to sync: 1
2024-06-30 13:41:46:422 [ info nextcloud.gui.folder.manager /home/user/src/gui/folderman.cpp:973 ]: Number of folders that don't use push notifications: 0
2024-06-30 13:41:58:423 [ warning nextcloud.sync.networkjob /home/user/src/libsync/abstractnetworkjob.cpp:369 ]: Network job timeout QUrl("https://removed/")
2024-06-30 13:41:58:423 [ info nextcloud.sync.credentials.webflow /home/user/src/gui/creds/webflowcredentials.cpp:406 ]: request finished
2024-06-30 13:41:58:423 [ warning nextcloud.sync.networkjob /home/user/src/libsync/abstractnetworkjob.cpp:221 ]: QNetworkReply::OperationCanceledError "Connection timed out" QVariant(Invalid)
2024-06-30 13:41:58:423 [ warning nextcloud.sync.credentials.webflow /home/user/src/gui/creds/webflowcredentials.cpp:208 ]: QNetworkReply::OperationCanceledError
2024-06-30 13:41:58:423 [ warning nextcloud.sync.credentials.webflow /home/user/src/gui/creds/webflowcredentials.cpp:209 ]: "Operation canceled"
2024-06-30 13:41:58:423 [ info nextcloud.sync.networkjob.lscol /home/user/src/libsync/networkjobs.cpp:386 ]: LSCOL of QUrl("https://removed/") FINISHED WITH STATUS "OperationCanceledError Connection timed out"
2024-06-30 13:41:58:423 [ warning nextcloud.sync.discovery /home/user/src/libsync/discoveryphase.cpp:646 ]: LSCOL job error "Operation canceled" 0 QNetworkReply::OperationCanceledError
2024-06-30 13:41:58:423 [ warning nextcloud.sync.discovery /home/user/src/libsync/discovery.cpp:2092 ]: Server error in directory "" 0
2024-06-30 13:41:58:423 [ warning nextcloud.gui.activity /home/user/src/gui/tray/usermodel.cpp:632 ]: Item "Nextcloud" retrieved resulted in "Server replied with an error while reading directory \"\" : Operation canceled"
2024-06-30 13:41:58:424 [ info nextcloud.sync.engine /home/user/src/libsync/syncengine.cpp:1018 ]: Sync run took 299989 ms
2024-06-30 13:41:58:424 [ info nextcloud.gui.folder /home/user/src/gui/folder.cpp:1179 ]: Client version 3.13.0 (build 22492) Qt 5.15.12 SSL OpenSSL 3.1.4 24 Oct 2023
2024-06-30 13:41:58:424 [ warning nextcloud.gui.folder /home/user/src/gui/folder.cpp:1186 ]: SyncEngine finished with ERROR
2024-06-30 13:41:58:424 [ info nextcloud.gui.folder /home/user/src/gui/folder.cpp:417 ]: Folder "" sync result: OCC::SyncResult::SyncPrepare
2024-06-30 13:41:58:424 [ info nextcloud.gui.folder /home/user/src/gui/folder.cpp:1215 ]: the last 4 syncs failed
2024-06-30 13:41:58:425 [ info nextcloud.gui.application /home/user/src/gui/owncloudgui.cpp:241 ]: Sync state changed for folder "removed/" : "Error"
```

### Additional info

_No response_

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.