Client keeps checking for changes non stop

Nextcloud version (eg, 20.0.5): 24.0.2
Operating system and version (eg, Ubuntu 20.04): Debian GNU/Linux 11 (Docker nextcloud:apache)
Apache or nginx version (eg, Apache 2.4.25): Don't know how to find that.
PHP version (eg, 7.4): 8.0.20

The issue you are facing:

I have three different nextcloud accounts. One of those accounts belongs to a Nextcloud Instance I’m hosting myself. Only this Account keeps syncing constanly. I goes from Checking for changes in remote... to waiting and after a few seconds back to Checking for changes.

Is this the first time you’ve seen this error? (Y/N):


Steps to replicate it:

  1. Setup Nextcloud using Docker/Portainer on Synology NAS
  2. Install Nextcloud Client on Windows
  3. Observe constant syncing

The output of your Nextcloud log in Admin > Logging:
Link to my nextcloud.log

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

  GNU nano 5.4                                                                                 config/config.php                                                                                           <?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'redis',
    'password' => '',
    'port' => β–ˆβ–ˆβ–ˆβ–ˆ,
  'instanceid' => 'β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ',
  'passwordsalt' => 'β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ',
  'secret' => 'β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ',
  'trusted_domains' =>
  array (
    0 => 'β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ.com',
    1 => 'β–ˆβ–ˆβ–ˆ.β–ˆβ–ˆβ–ˆ.β–ˆβ–ˆβ–ˆ.β–ˆβ–ˆβ–ˆ:β–ˆβ–ˆβ–ˆβ–ˆ',
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => 'http://β–ˆβ–ˆ.β–ˆβ–ˆ.β–ˆβ–ˆβ–ˆ.β–ˆβ–ˆβ–ˆ:β–ˆβ–ˆβ–ˆβ–ˆ',
  'dbname' => 'nextclouddb3',
  'dbhost' => 'mariadb3',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'β–ˆβ–ˆβ–ˆβ–ˆ',
  'dbpassword' => 'β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ',
  'installed' => true,
  'filesystem_check_changes' => 1,
  'overwriteprotocol' => 'https',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_from_address' => 'β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ',
  'mail_domain' => 'β–ˆβ–ˆβ–ˆβ–ˆ.com',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.β–ˆβ–ˆβ–ˆβ–ˆ.com',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ@β–ˆβ–ˆβ–ˆβ–ˆ.com',
  'mail_smtppassword' => 'β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
  array (
  'twofactor_enforced_excluded_groups' =>
  array (
  'maintenance' => false,
  'updater.secret' => 'β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ',

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

For the life of me I couldn’t figure out how to get the content out of /var/log/apache2/error.log
It tried to nano, cat, scp, and mount as network drive. But I could never get the permission to open the file

And just in case it is relevant my Portainer Script:

version: '3'

    container_name: mariadb3
    image: mariadb:10.5
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    restart: always
      - db:/var/lib/mysql
      - MYSQL_ROOT_PASSWORD=β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
      - MYSQL_PASSWORD=β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
      - MYSQL_DATABASE=nextclouddb3
      - MYSQL_USER=β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
    # env_file:
    #   - db.env

    container_name: redis2
    image: redis:alpine
    restart: always

    container_name: nextcloud3
    image: nextcloud:apache
    restart: always
      - 8082:80
      - /volume1/docker/nextcloud3:/var/www/html
      - MYSQL_HOST=db
      - REDIS_HOST=redis
      - PUID=β–ˆβ–ˆβ–ˆβ–ˆ
      - PGID=β–ˆβ–ˆβ–ˆ
      - TZ=Europe/Berlin
    # env_file:
    #   - db.env
      - db
      - redis

    container_name: cron3
    image: nextcloud:apache
    restart: always
      - /volume1/docker/nextcloud3:/var/www/html
    entrypoint: /
      - db
      - redis


Disclaimer I’m a novice in the world of self-hosting, linux, nginx, nextcloud, etc. Any help is very much appreciated! Please be as explicit as possible and expect, that I wont know where any of the config files are stored, you will likely tell me to change. :pray: :heart:

without really deep checking I don’t see any issues with your config files. For me everything looks fine.

I remember earlier client had issues syncing lot of files at once. do you see the problem with small data set as well (few hundreds of smaller files)? If not do your initial sync in portions - and it should do the job… sometimes it helps to stop the client and delete the db files (…db, …db-shm and …db-wal in your Nextcloud sync folder) to force rebuild he local DB. this step is especially helpful if your switched between multiple instance while setup and testing (it looks you are running 3 or 3rd instance of Nextcloud)

1 Like

Thank you! I will try to delete the DB files later today.

The issue doesn’t really seem to be connected to the files, I think. It is not actually syncing anything, it is just searching for changes. But when I sync actual files, it is mostly very many small files. Like thousands of JavaScript dependencies etc. So it does sync, just when there is nothing to sync it still keeps searching and every time there is something to change it takes a few minutes until it starts to sync because its busy searching.

Unfortunately deleting the db files didn’t do the trick.