Nextcloud client needs restart to complete sync

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / ā€œas availableā€ basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.8.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian GNU/Linux 11 (bullseye)
  • Web server and version (e.g, Apache 2.4.25):
    • nginx version: nginx/1.18.0
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • none
  • PHP version (e.g, 8.3):
    • PHP 8.1.31 (cli) (built: Nov 21 2024 10:24:20) (NTS)
  • Is this the first time you’ve seen this error? (Yes / No):
    • no
  • When did this problem seem to first start?
    • long time ago, always had it
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • manual / own metal server
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no
  • Client version
    • 3.16.6.20250618

Summary of the issue you are facing:

On windows, I use NC client.

I copy a directory tree with cca. 700 files over to NC shared folder. It start to sync and it synces part of the files and then even when I click on Sync now the sync will not start. I must stop and restart the client for the sync to be finished. I am seeing this behavior all the time, through multiple client and server versions of NC.

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud.*****.cz"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "31.0.8.1",
        "overwrite.cli.url": "https:\/\/nextcloud.*****.cz",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "5432",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "default_phone_region": "CZ",
        "maintenance_window_start": 100
    }
}

Apps

The output of occ app:list (if possible).

Enabled:
  - app_api: 5.0.2
  - bruteforcesettings: 4.0.0
  - circles: 31.0.0
  - cloud_federation_api: 1.14.0
  - dav: 1.33.0
  - federatedfilesharing: 1.21.0
  - files: 2.3.1
  - files_downloadlimit: 4.0.0
  - files_pdfviewer: 4.0.0
  - files_reminders: 1.4.0
  - files_sharing: 1.23.1
  - firstrunwizard: 4.0.0
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - notifications: 4.0.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - systemtags: 1.21.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - updatenotification: 1.21.0
  - viewer: 4.0.0
  - webhook_listeners: 1.2.0
  - workflowengine: 2.13.0
Disabled:
  - activity: 4.0.0 (installed 2.17.0)
  - admin_audit: 1.21.0
  - comments: 1.21.0 (installed 1.15.0)
  - contactsinteraction: 1.12.0 (installed 1.6.0)
  - dashboard: 7.11.0 (installed 7.5.0)
  - encryption: 2.19.0
  - federation: 1.21.0 (installed 1.15.0)
  - files_external: 1.23.0
  - files_trashbin: 1.21.0 (installed 1.15.0)
  - files_versions: 1.24.0 (installed 1.18.0)
  - nextcloud_announcements: 3.0.0 (installed 1.14.0)
  - photos: 4.0.0 (installed 2.0.1)
  - sharebymail: 1.21.0 (installed 1.15.0)
  - support: 3.0.0 (installed 1.8.0)
  - survey_client: 3.0.0 (installed 1.13.0)
  - suspicious_login: 9.0.1
  - twofactor_nextcloud_notification: 5.0.0
  - twofactor_totp: 13.0.0-dev.0
  - user_ldap: 1.22.0
  - user_status: 1.11.0 (installed 1.5.0)
  - weather_status: 1.11.0 (installed 1.5.0)

Special note

I am exposing the nexcloud data directory via nginx. So once I copy and sync something into nextcloud space, it appears on my web instantly. Works well except this one annoying issue.

I am using this setting for automatically deploying testing code to my webserver.

what happens then? is there any error or other problem? did you wait some time if the client completes the sync without touching it? please share client and server logs.

Dears,

Similar problem here: Windows Starts, Nextcloud Client (v 4.0.1) starts and then throws an error. I manually switch off Nextcloud Client, start it up again and it syncs normally.

Eric

come on.. my crystal ball is broken tell which error and add the logs.

2 Likes

Don’t forget the
C:\Users\username\AppData\Roaming\Nextcloud\Nextcloud_sync.log

Dear wwe, I humbly apologize, as your ire is justified. I was too quick…

Back on the subject:

Message (translated from Dutch) from Nextcloud Windows client in the bottom righthand corner: ā€œSome files could not be synchronised. Look under here for errorsā€. Then, in the view under here, there are no errors mentioned.

The Nextcloud sync log is empty at this time. After restart of the client, it stays empty.
I created a ā€˜Debug Archive’ from the Client Settings, but this is a rather large file, and for me difficult to interpret. I cannot attach it, but I put it available here: 20251104_1329_nextcloud.log - Nimbus

And additionally, as it may have a certain impact: When the Client first activates at Windows startup, the local sync folders are not yet available. They become available a few moments later. This was never any issue in the past, though. Syncing would just take place after a minute or so.

Thanks again!

Eric

That leads me to the conclusion, that you are working with virtual files. All file are moved onto the Nextcloud server and on your computer there are shortcuts to the files only.

there are few files showing strange logs

2025-11-04 13:30:39:953 [ info nextcloud.sync.statustracker C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\libsync\syncfilestatustracker.cpp:233 ]:	Investigating "Pasta temporaria/IMG_0930.MOV" OCC::SyncFileItem::NoStatus CSyncEnums::CSYNC_INSTRUCTION_CONFLICT OCC::SyncFileItem::None CSyncEnums::ItemTypeFile
2025-11-04 13:30:39:953 [ info nextcloud.sync.statustracker C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\libsync\syncfilestatustracker.cpp:233 ]:	Investigating "Pasta temporaria/IMG_0931.MOV" OCC::SyncFileItem::NoStatus CSyncEnums::CSYNC_INSTRUCTION_CONFLICT OCC::SyncFileItem::None CSyncEnums::ItemTypeFile
2025-11-04 13:30:39:953 [ info nextcloud.sync.statustracker C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\libsync\syncfilestatustracker.cpp:233 ]:	Investigating "Pasta temporaria/IMG_1065.jpg" OCC::SyncFileItem::NoStatus CSyncEnums::CSYNC_INSTRUCTION_CONFLICT OCC::SyncFileItem::None CSyncEnums::ItemTypeFile


2025-11-04 13:30:39:621 [ info nextcloud.sync.discovery C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\libsync\discovery.cpp:1887 ]:	discovered "Pasta temporaria/IMG_0930.MOV" CSyncEnums::CSYNC_INSTRUCTION_CONFLICT OCC::SyncFileItem::None CSyncEnums::ItemTypeFile
2025-11-04 13:30:39:621 [ info nextcloud.sync.discovery C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\libsync\discovery.cpp:1886 ]:	Processing "Pasta temporaria/IMG_0931.MOV" | (db/local/remote) | valid: false/true/true | mtime: 0/1761741244/1761741244 | size: 0/15878919/15878919 | etag: ""//"df51b7ae80d42648ef52360d438d380f" | checksum: ""//"SHA1:e4a96c0facadebd5cabf11e95ab089860b13e9b8" | perm: ""//"GWDNVR" | fileid: ""//"00026314oclug1x5z0gk" | inode: 0/164672/ | type: CSyncEnums::ItemTypeSkip/CSyncEnums::ItemTypeFile/CSyncEnums::ItemTypeFile | e2ee: false/false | e2eeMangledName: ""/"" | file lock: not locked//not locked | file lock type: ""//"0" | live photo: false//false | metadata missing: /false/
2025-11-04 13:30:39:621 [ info nextcloud.sync.discovery C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\libsync\discovery.cpp:1887 ]:	discovered "Pasta temporaria/IMG_0931.MOV" CSyncEnums::CSYNC_INSTRUCTION_CONFLICT OCC::SyncFileItem::None CSyncEnums::ItemTypeFile

2025-11-04 13:30:51:484 [ info nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\libsync\owncloudpropagator.h:213 ]:	Starting CSyncEnums::CSYNC_INSTRUCTION_CONFLICT propagation of "Pasta temporaria/IMG_0083.jpg" by OCC::PropagateDownloadFile(0x204963b10b0)
2025-11-04 13:30:51:634 [ info nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\common\syncjournaldb.cpp:1035 ]:	Updating file record for path: "Pasta temporaria/IMG_0083.jpg" inode: 161067 modtime: 1761816306 type: CSyncEnums::ItemTypeFile etag: "21798c342dad652138a68e0fd600531f" fileId: "00027845oclug1x5z0gk" remotePerm: "GWDNVR" fileSize: 3019086 checksum: "SHA1:51ff3fe2106ee59e992ced92bd5061827573eee0" e2eMangledName: "" isE2eEncrypted: false lock: false lock owner type: 0 lock owner: "" lock owner id: "" lock editor: "" sharedByMe: false isShared: false lastShareStateFetchedTimestamp: 1762259439558 isLivePhoto false livePhotoFile "" folderQuota - bytesUsed: -1 bytesAvailable: -1
2025-11-04 13:30:51:634 [ info nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\libsync\owncloudpropagator.cpp:282 ]:	Completed propagation of "Pasta temporaria/IMG_0083.jpg" by OCC::PropagateDownloadFile(0x204963b10b0) with status OCC::SyncFileItem::Success
2025-11-04 13:30:51:634 [ warning nextcloud.gui.activity C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\gui\tray\usermodel.cpp:921 ]:	Item  "Pasta temporaria/IMG_0083.jpg"  retrieved resulted in  ""
2025-11-04 13:30:51:644 [ info nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\libsync\owncloudpropagator.h:213 ]:	Starting CSyncEnums::CSYNC_INSTRUCTION_CONFLICT propagation of "Pasta temporaria/IMG_0084.jpg" by OCC::PropagateDownloadFile(0x204963adc30)
2025-11-04 13:30:51:796 [ info nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\common\syncjournaldb.cpp:1035 ]:	Updating file record for path: "Pasta temporaria/IMG_0084.jpg" inode: 161330 modtime: 1761580896 type: CSyncEnums::ItemTypeFile etag: "14da3d870acd9772b7291f3283c4a105" fileId: "00025434oclug1x5z0gk" remotePerm: "GWDNVR" fileSize: 3135205 checksum: "SHA1:5e52a4c74782d32fbba8715715afc70af7cb35f3" e2eMangledName: "" isE2eEncrypted: false lock: false lock owner type: 0 lock owner: "" lock owner id: "" lock editor: "" sharedByMe: false isShared: false lastShareStateFetchedTimestamp: 1762259439558 isLivePhoto false livePhotoFile "" folderQuota - bytesUsed: -1 bytesAvailable: -1
2025-11-04 13:30:51:796 [ info nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\libsync\owncloudpropagator.cpp:282 ]:	Completed propagation of "Pasta temporaria/IMG_0084.jpg" by OCC::PropagateDownloadFile(0x204963adc30) with status OCC::SyncFileItem::Success
2025-11-04 13:30:51:812 [ warning nextcloud.gui.activity C:\Users\User\AppData\Local\Temp\windows-34592\client-building\desktop\src\gui\tray\usermodel.cpp:921 ]:	Item  "Pasta temporaria/IMG_0084.jpg"  retrieved resulted in  "" 

I think it is related to the whole folder but I only picked few lines. I’m not frequently looking at client log so don’t know exact what is wrong - maybe a conflict.. look at your system and compare with the server - size, date etc..