[nextcloudcmd] command line client reports creation of file but it does not appear on the cloud

I checked via the filesystem that it was not at all in the cloud files. Here I test this problem with a file named test.txt. I tried every maintenance occ command but nothing helped.

Nextcloud version : Nextcloud version 2.5.1git
Operating system and version: Debian 10
Apache or nginx version: Apache/2.4.38 (Debian)
PHP version : PHP 7.4.18 (cli)

I have set up sync between 3 folders on my server and the cloud with nextcloudcmd. However, one of the three syncs seems to amount to nothing: new files are not uploaded to the server, even though the syncing process takes several hours (there are about 350k small files in that folder).

The command yields that an “instruction_new” is executed, but the files never make it to the cloud (they appear neither in the web interface nor in the filesystem directly).

Is this the first time you’ve seen this error? : I have been continuously experiencing it ever since I started using NextCloud.

Steps to replicate it:

  1. Prepare a folder (with 350k files? Idk if this is relevant) and launch a cron job with nextcloudcmd to sync it with the cloud
  2. Between two syncs, create a simple text file somewhere in the folder
  3. Observe how it never makes it to the cloud storage, even after the 6 hours syncing process is over and did not output any error.
  4. With another folder (with the same permissions and with the same command parameters) (but with only about 5k files, again Idk if this is relevant) observe that the syncing works without any problem (and in only a few seconds)

The output of your Nextcloud log in Admin > Logging:

no logs about this file, or any error whatsoever

The output of your config.php file in /path/to/nextcloud:

<?php
$CONFIG = array (
  'instanceid' => '...',
  'passwordsalt' => '...',
  'secret' => '...,
  'trusted_domains' => 
  array (
    0 => '...',
    1 => '...',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '21.0.1.1',
  'overwrite.cli.url' => '...',
  'dbname' => '...',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '...',
  'dbpassword' => '...',
  'installed' => true,
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud.log',
  'logfilemode' => 416,
  'loglevel' => 2,
  'logdateformat' => 'F d, Y H:i:s',
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '...',
  'mail_domain' => '...',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'in-v3.mailjet.com',
  'mail_smtpport' => '587',
  'mail_smtpname' => '...',
  'mail_smtppassword' => '...',
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' => 
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'updater.secret' => '...',
  'theme' => '',
  'filelocking.enabled' => false,
#  'memcache.local' => '\\OC\\Memcache\\Redis',
#  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
#    'host' => '/tmp/redis.sock',
    'port' => 6379,
#    'port' => 0,
    'timeout' => 0.0,
#    'dbindex' => 0,
    'password' => '',
  ),
);

The output of your Apache/nginx/system log in /var/log/____:

I could not find anything relevant in those logs.