Linux Desktop client silently not syncing some files

Nextcloud version (eg, 20.0.5): 25.0.13
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.6 LTS
Client: 3.4.2 (Ubuntu)
Apache or nginx version (eg, Apache 2.4.25): nginx 1.18.0
PHP version (eg, 7.4): 7.4.3

The issue you are facing:
I have the Desktop client configured to sync some subdirs with local directory. Some files I create/copy to the local dir refuse to appear in the cloud. Ignore list is empty, force sync does not help and there is nothing in files names or file sizes that are particular to those files.

Is this the first time you’ve seen this error? Y:

The output of your Nextcloud log in Admin > Logging:

{"reqId":"mnryYnMereM0GR2bWUv4","level":1,"time":"2024-01-22T18:33:19+00:00","remoteAddr":"2a02:a58:8474:8300:1f2a:89b7:e6a1:d4cf","user":"elod@elod.email","app":"no app in context","method":"GET","url":"/apps/files/","message":"Deprecated event type for \\OCP\\Collaboration\\Resources::loadAdditionalScripts: null","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"25.0.13.2","data":[]}
{"reqId":"mnryYnMereM0GR2bWUv4","level":1,"time":"2024-01-22T18:33:19+00:00","remoteAddr":"2a02:a58:8474:8300:1f2a:89b7:e6a1:d4cf","user":"elod@elod.email","app":"no app in context","method":"GET","url":"/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"25.0.13.2","data":[]}
{"reqId":"ArHKSOeWm2BCR0035A36","level":1,"time":"2024-01-22T18:39:33+00:00","remoteAddr":"2a02:a58:8474:8300:1f2a:89b7:e6a1:d4cf","user":"elod@elod.email","app":"no app in context","method":"GET","url":"/settings/ajax/checksetup","message":"Deprecated event type for OCP\\IDBConnection::CHECK_MISSING_PRIMARY_KEYS: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"25.0.13.2","data":[]}
{"reqId":"ArHKSOeWm2BCR0035A36","level":1,"time":"2024-01-22T18:39:33+00:00","remoteAddr":"2a02:a58:8474:8300:1f2a:89b7:e6a1:d4cf","user":"elod@elod.email","app":"no app in context","method":"GET","url":"/settings/ajax/checksetup","message":"Deprecated event type for OCP\\IDBConnection::CHECK_MISSING_INDEXES: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"25.0.13.2","data":[]}
{"reqId":"ArHKSOeWm2BCR0035A36","level":1,"time":"2024-01-22T18:39:33+00:00","remoteAddr":"2a02:a58:8474:8300:1f2a:89b7:e6a1:d4cf","user":"elod@elod.email","app":"no app in context","method":"GET","url":"/settings/ajax/checksetup","message":"Deprecated event type for OCP\\IDBConnection::CHECK_MISSING_COLUMNS: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"25.0.13.2","data":[]}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'default_phone_region' => 'RO',
  'instanceid' => '<removed>',
  'passwordsalt' => '<removed>',
  'secret' => '<removed>',
  'trusted_domains' =>
  array (
    0 => '<removed>',
  ),
  'datadirectory' => '/srv/cloud',
  'overwrite.cli.url' => '<removed>',
  'dbtype' => 'mysql',
  'version' => '25.0.13.2',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => '<removed>',
  'installed' => true,
  'loglevel' => 1,
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'maintenance' => false,
  'theme' => '',
  'updater.release.channel' => 'stable',
  'mysql.utf8mb4' => true,
  'user_backends' =>
  array (
    0 =>
    array (
      'class' => '\\OCA\\UserExternal\\IMAP',
      'arguments' =>
      array (
        0 => '127.0.0.1',
        1 => 143,
        2 => NULL,
        3 => NULL,
        4 => false,
        5 => false,
      ),
    ),
  ),
);

Desktop Client log for an example file not syncing:

2024-01-22 20:45:26:880 [ info sync.discovery ./src/libsync/discovery.cpp:362 ]:	Processing "Documents/Egyetem/edx/Foundations of Modern Finance/R14_handout.pdf" | valid: false/true/db | mtime: 0/1705691393/0 | size: 0/269239/0 | etag: ""//"" | checksum: ""//"" | perm: ""//"" | fileid: ""//"" | inode: 0/4872825/ | type: CSyncEnums::ItemTypeSkip/CSyncEnums::ItemTypeFile/CSyncEnums::ItemTypeFile | e2ee: false/false | e2eeMangledName: ""/""
2024-01-22 20:45:26:880 [ warning sync.discovery ./src/libsync/discovery.cpp:379 ]:	File "Documents/Egyetem/edx/Foundations of Modern Finance/R14_handout.pdf" was modified before the last sync run and is not in the sync journal and server
2024-01-22 20:45:26:880 [ debug nextcloud.sync.database.sql ./src/common/ownsql.h:145 ]	[ OCC::SqlQuery::bindValue ]:	SQL bind 1 4872825
2024-01-22 20:45:26:880 [ 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 inode=?1"
2024-01-22 20:45:26:880 [ info sync.discovery ./src/libsync/discovery.cpp:1105 ]:	Not a move, no item in db with inode 4872825
2024-01-22 20:45:26:880 [ info sync.discovery ./src/libsync/discovery.cpp:1367 ]:	Discovered "Documents/Egyetem/edx/Foundations of Modern Finance/R14_handout.pdf" CSyncEnums::CSYNC_INSTRUCTION_NEW OCC::SyncFileItem::Up CSyncEnums::ItemTypeFile
2024-01-22 20:45:26:881 [ debug nextcloud.sync.database.sql ./src/common/ownsql.h:145 ]	[ OCC::SqlQuery::bindValue ]:	SQL bind 1 "Documents/Egyetem/edx/Foundations of Modern Finance/R14_handout.pdf"
...
024-01-22 20:45:26:883 [ debug nextcloud.sync.statustracker ./src/libsync/syncfilestatustracker.cpp:229 ]	[ OCC::SyncFileStatusTracker::slotAboutToPropagate ]:	Investigating "Documents/Egyetem/edx/Foundations of Modern Finance/R14_handout.pdf" OCC::SyncFileItem::NoStatus CSyncEnums::CSYNC_INSTRUCTION_NEW
...
2024-01-22 20:45:26:888 [ warning nextcloud.sync.propagator.directory ./src/libsync/owncloudpropagator.cpp:978 ]:	Useless task found for file "Documents/Egyetem/edx/Foundations of Modern Finance/R14_handout.pdf" instruction CSyncEnums::CSYNC_INSTRUCTION_NEW
...
2024-01-22 20:45:26:889 [ info nextcloud.sync.checksums ./src/common/checksums.cpp:230 ]:	Computing "MD5" checksum of "/home/elod/cloud/Documents/Egyetem/edx/Foundations of Modern Finance/R14_handout.pdf" in a thread
...
2024-01-22 20:45:26:893 [ info nextcloud.sync.propagator.bulkupload ./src/libsync/bulkpropagatorjob.cpp:183 ]:	"/Documents/Egyetem/edx/Foundations of Modern Finance/R14_handout.pdf" transmission checksum "294c2c15637d0ffc5c971da15d5b3e07" "/home/elod/cloud/Documents/Egyetem/edx/Foundations of Modern Finance/R14_handout.pdf"
...
2024-01-22 20:45:26:894 [ info nextcloud.sync.networkjob ./src/libsync/abstractnetworkjob.cpp:361 ]:	OCC::PutMultiFileJob created for "https://cloud.elod.email" + "" "OCC::BulkPropagatorJob"
2024-01-22 20:45:26:894 [ info nextcloud.sync.credentials.webflow ./src/gui/creds/webflowcredentials.cpp:425 ]:	request finished
2024-01-22 20:45:26:894 [ warning nextcloud.sync.networkjob ./src/libsync/abstractnetworkjob.cpp:224 ]:	QNetworkReply::UnknownNetworkError "Unknown error" QVariant(Invalid)
2024-01-22 20:45:26:894 [ warning nextcloud.sync.credentials.webflow ./src/gui/creds/webflowcredentials.cpp:227 ]:	QNetworkReply::UnknownNetworkError
2024-01-22 20:45:26:894 [ warning nextcloud.sync.credentials.webflow ./src/gui/creds/webflowcredentials.cpp:228 ]:	"Unknown error"
2024-01-22 20:45:26:894 [ info nextcloud.sync.networkjob.put.multi ./src/libsync/putmultifilejob.cpp:61 ]:	POST of "https://cloud.elod.email/remote.php/dav/bulk" "" FINISHED WITH STATUS "UnknownNetworkError Unknown error" QVariant(Invalid) QVariant(Invalid)
2024-01-22 20:45:26:894 [ info nextcloud.sync.propagator.bulkupload ./src/libsync/bulkpropagatorjob.cpp:248 ]:	final status OCC::SyncFileItem::NoStatus
2024-01-22 20:45:26:894 [ info nextcloud.sync.propagator.root.directory ./src/libsync/owncloudpropagator.cpp:1238 ]:	OCC::SyncFileItem::Success slotSubJobsFinished OCC::PropagatorJob::Running pending uploads 0 subjobs state OCC::PropagatorJob::Finished
2024-01-22 20:45:26:894 [ debug nextcloud.sync.networkjob ./src/libsync/abstractnetworkjob.cpp:298 ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::PutMultiFileJob finished for ""
2024-01-22 20:45:26:898 [ info nextcloud.sync.propagator.root.directory ./src/libsync/owncloudpropagator.cpp:1214 ]:	scheduleSelfOrChild OCC::PropagatorJob::Running pending uploads 0 subjobs state OCC::PropagatorJob::Finished
2024-01-22 20:45:26:898 [ info nextcloud.sync.propagator ./src/libsync/owncloudpropagator.cpp:1264 ]:	PropagateRootDirectory::slotDirDeletionJobsFinished emit finished OCC::SyncFileItem::Success

This is the root error it looks like:

2024-01-22 20:45:26:894 [ info nextcloud.sync.networkjob.put.multi ./src/libsync/putmultifilejob.cpp:61 ]: POST of "https://cloud.elod.email/remote.php/dav/bulk" "" FINISHED WITH STATUS "UnknownNetworkError Unknown error" QVariant(Invalid) QVariant(Invalid)

Client: 3.4.2 (Ubuntu)

You’re running an ancient version of the client and, as it happens, one of the very first to support bulk upload. There are at least four relevant bugs addressed since v3.4.2. Any chance you can update to a more recent/ supported version?

Installed 3.11 from the PPA and it works. Thanks!

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.