Nextcloud Desktop App (AppImage) gets stuck while preparing to sync

Hi!

Nextcloud server seems to work well but I have issues when trying to sync my laptop folders with the server. More details below.

Thanks a lot for your help!

Here is my setup

Nextcloud version: 25.0.2
Nextcloud client version: 3.5.4 (also tried the latest version: 3.6.4)
Operating system and version: Linux Mint 20.3 Una"
Apache or nginx version: Apache 2.4.54
PHP version: 8.1.13

Docker-compose file
version: '3'

secrets:
  mysql_root_password:
    file: ./mysql_root_password.txt
  mysql_password:
    file: ./mysql_password.txt
  nextcloud_admin_password:
    file: ./nextcloud_admin_password.txt
  nextcloud_admin_user:
    file: ./nextcloud_admin_user.txt

services:
  db:
    image: mariadb:10.5
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    restart: always
    volumes:
      - db:/var/lib/mysql
    environment:
      - MARIADB_AUTO_UPGRADE=1
      - MARIADB_DISABLE_UPGRADE_BACKUP=1
      - MYSQL_DATABASE=nextcloud
      - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/mysql_root_password
      - MYSQL_USER=nextcloud
      - MYSQL_PASSWORD_FILE=/run/secrets/mysql_password
    healthcheck:
      test: "mysqladmin ping -h localhost -u$${MYSQL_USER} --password=$$(cat $${MYSQL_PASSWORD_FILE})"
      interval: 10s
      timeout: 5s
      retries: 100
      start_period: 40s
    secrets:
      - mysql_root_password
      - mysql_password

  redis:
    image: redis:alpine
    restart: always

  app:
    image: nextcloud:apache
    restart: always
    volumes:
      - nextcloud:/var/www/html
    environment:
      - NEXTCLOUD_TRUSTED_DOMAINS=mydomain.com
      - VIRTUAL_HOST=mydomain.com
      - LETSENCRYPT_HOST=mydomain.com
      - LETSENCRYPT_EMAIL=myemail@mydomain.com
      - MYSQL_HOST=db
      - REDIS_HOST=redis
      - MYSQL_DATABASE=nextcloud
      - MYSQL_PASSWORD_FILE=/run/secrets/mysql_password
      - MYSQL_USER=nextcloud
      - NEXTCLOUD_ADMIN_USER_FILE=/run/secrets/nextcloud_admin_user
      - NEXTCLOUD_ADMIN_PASSWORD_FILE=/run/secrets/nextcloud_admin_password
    secrets:
      - mysql_root_password
      - mysql_password
      - nextcloud_admin_user
      - nextcloud_admin_password
    depends_on:
      db:
        condition: service_healthy
      redis:
        condition: service_started
    networks:
      - proxy-tier
      - default

  cron:
    image: nextcloud:apache
    restart: always
    volumes:
      - nextcloud:/var/www/html
    entrypoint: /cron.sh
    depends_on:
      - db
      - redis

  proxy:
    build: ./proxy
    restart: always
    ports:
      - 80:80
      - 443:443
    labels:
      com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
    volumes:
      - certs:/etc/nginx/certs:ro
      - vhost.d:/etc/nginx/vhost.d
      - html:/usr/share/nginx/html
        #      - /var/run/docker.sock:/tmp/docker.sock:ro
      - /run/user/1000/podman/podman.sock:/tmp/docker.sock:ro
    networks:
      - proxy-tier

  letsencrypt-companion:
    image: nginxproxy/acme-companion
    restart: always
    volumes:
      - certs:/etc/nginx/certs
      - acme:/etc/acme.sh
      - vhost.d:/etc/nginx/vhost.d
      - html:/usr/share/nginx/html
        #      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /run/user/1000/podman/podman.sock:/var/run/docker.sock:ro
    networks:
      - proxy-tier
    depends_on:
      - proxy

volumes:
  db:
  nextcloud:
  certs:
  acme:
  vhost.d:
  html:

networks:
  proxy-tier:

Some logging data

The output of your Nextcloud log in Admin > Logging (podman logs nextcloud_app_1):

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

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' => 6379,
  ),
  'passwordsalt' => 'Anonymized',
  'secret' => 'Anonymized',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'mydomain.com',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '25.0.2.3',
  'overwrite.cli.url' => 'https://mydomain.com',
  'overwriteprotocol' => 'https',
  'dbname' => 'Anonymized',
  'dbhost' => 'Anonymized',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'Anonymized',
  'dbpassword' => 'Anonymized',
  'installed' => true,
  'instanceid' => 'anonymized',
  'maintenance' => false,
);

The output of the proxy (podman logs nextcloud_proxy_1):

Here is the issue I am facing

  • Is this the first time you’ve seen this error? Yes

  • Steps to replicate it:

    1. Run Nextcloud containers via podman in rootless mode (docker-compose file is used to describe the containers, check the docker-compose file given in introduction)
      - SSL with Let’s Encrypt certificate is set up ;
    2. Create the users through the Web GUI
    3. Migrate old Nextcloud data to this new setup
      • I didn’t follow the “recommended” way. I restored the files by moving them at the file system level to the corresponding user folder in data/.
    4. Launch scan command occ files:scan --all -vvv (actually via podman: podman exec nextcloud_app_1 php occ files:scan --all -vvv).
  • Here is the problem

    Then I installed Nextcloud Desktop client app on my Linux Mint (Linux AppImage, v3.6.4).
    I managed to login.

    Since I have a lot of files to be synced on my laptop (they’re used to be synced with my previous Nextcloud setup), syncing process starts on Nextcloud Desktop App. But **after about ~49500 files, the Desktop application gets stuck and doesn’t respond anymore.

  • Some more details about the behaviour

    • On the laptop side, It uses 100% of 1 core when it’s stuck. On the server side, nothing seems to happen (not even incoming connections but not sure).

Do you have any idea of what could be the cause of that?
And how to fix it?

Thanks a lot!

2 Likes

So one can help me? :frowning:

I think appimage issues are low priority. I just posted an issue I’m having with an appimage and I haven’t received any responses either. I hope both our posts somehow find their way to someone that can help.

1 Like