Nextcloud version (eg, 20.0.5):
3.4.2 (Linux), linuxmint-6.2.0.-34-generic
Operating system and version (eg, Ubuntu 20.04):
Linux Mint 21.2 Victoria
The issue you are facing:
The Nextcloud desktop client won’t sync local changes anymore. Incoming remote changes will be synced, though.
Is this the first time you’ve seen this error? (Y/N):
Steps to replicate it:
- I set up the client to sync some folders
- Made some changes to a file with one of the synced folders which is not excluded by any name pattern
- Changes aren’t synced upstream
The output of my Nextcloud desktop log upon start:
2023-10-14 18:38:39:089 [ info sync.discovery ./src/libsync/discovery.cpp:362 ]: Processing "path/to/some/file.ods" | valid: true/true/db | mtime: 1696948785/1697275228/0 | size: 50201/68171/0 | etag: "6525642ad8f08"//"" | checksum: ""//"" | perm: "WDNVRm"//"" | fileid: "00013398ocqacoydm76m"//"" | inode: 38274357/38274358/ | type: CSyncEnums::ItemTypeFile/CSyncEnums::ItemTypeFile/CSyncEnums::ItemTypeFile | e2ee: false/false | e2eeMangledName: ""/"" 2023-10-14 18:38:39:089 [ info sync.discovery ./src/libsync/discovery.cpp:1367 ]: Discovered "path/to/some/file.ods" CSyncEnums::CSYNC_INSTRUCTION_SYNC OCC::SyncFileItem::Up CSyncEnums::ItemTypeFile 2023-10-14 18:38:39:089 [ debug nextcloud.sync.database.sql ./src/common/ownsql.h:145 ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 "path/to/some/file.ods"
After changing the file:
2023-10-14 18:51:42:791 [ info nextcloud.gui.folderwatcher ./src/gui/folderwatcher.cpp:187 ]: Detected changes in paths: QSet("/home/christian/Nextcloud/kassenwart/path/to/some/file.ods") 2023-10-14 18:51:42:791 [ debug nextcloud.sync.database.sql ./src/common/ownsql.h:145 ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 -2594675561769784717 2023-10-14 18:51:42:791 [ debug nextcloud.sync.database.sql ./src/common/ownsql.cpp:295 ] [ OCC::SqlQuery::exec ]: SQL exec "SELECT path, inode, modtime, type, md5, fileid, remotePerm, filesize, ignoredChildrenRemote, contentchecksumtype.name || ':' || contentChecksum, e2eMangledName, isE2eEncrypted FROM metadata LEFT JOIN checksumtype as contentchecksumtype ON metadata.contentChecksumTypeId == contentchecksumtype.id WHERE phash=?1" 2023-10-14 18:51:42:791 [ debug nextcloud.gui.folderwatcher ./src/gui/folderwatcher.cpp:65 ] [ OCC::FolderWatcher::pathIsIgnored ]: * Ignoring file "/home/christian/Nextcloud/kassenwart/path/to/some/.~lock.file.ods#" 2023-10-14 18:51:42:975 [ info nextcloud.gui.folder.manager ./src/gui/folderman.cpp:1069 ]: <========== Sync finished for folder [Nextcloud/kassenwart] of account [firstname.lastname@example.org] with remote [https://some.server.domain/remote.php/dav/files/user/]
I had to restore my home dir from a backup, and copied back both the synced files as well as Nextcloud config. After copying everything back, I found that NC had my client fully configured, so everything seemed right.
Upstream changes from the NC servers are still synced to my computer. But local changes aren’t synced back. The logfile lines above are from the invocation of
nextcloud -l --logdebug I replaced the original file name but left everything else untouched. That file has changes and should be synced.
How can I reenable the local sync? Is there some cache that needs to be rebuilt, or else? Any help is appreciated. Regards