Sync Client Hangs at 0 B

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

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:

Nextcloud version (eg, 20.0.5): 24.0.8
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04 Linux 5.15.0-56-generic x86_64
Apache or nginx version (eg, Apache 2.4.25): Unknown (Snap)
PHP version (eg, 7.4): 8.0.25

The issue you are facing:
Sync job hangs at 0 B as soon as it starts.

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

Steps to replicate it:

  1. Open Nextcloud.
  2. Wait for it to scan folder changes.
  3. Sync begins and hangs.

The output of your Nextcloud log in Admin > Logging:

Warning	activity	Failed sending activity email to user 'user1'.		2022-12-21T00:06:44-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-21T00:06:44-0500
Warning	activity	Failed sending activity email to user 'user2'.		2022-12-21T00:06:44-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-21T00:06:44-0500
Warning	activity	Failed sending activity email to user 'user3'.		2022-12-21T00:06:44-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-21T00:06:44-0500
Warning	activity	Failed sending activity email to user 'user4'.		2022-12-21T00:06:44-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-21T00:06:44-0500
Warning	activity	Failed sending activity email to user 'user5'.		2022-12-21T00:06:44-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-21T00:06:44-0500
Warning	activity	Failed sending activity email to user 'user1'.		2022-12-21T00:01:25-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-21T00:01:25-0500
Warning	activity	Failed sending activity email to user 'user2'.		2022-12-21T00:01:25-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-21T00:01:25-0500
Warning	activity	Failed sending activity email to user 'user3'.		2022-12-21T00:01:25-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-21T00:01:25-0500
Warning	activity	Failed sending activity email to user 'user4'.		2022-12-21T00:01:25-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-21T00:01:25-0500
Warning	activity	Failed sending activity email to user 'user5'.		2022-12-21T00:01:25-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-21T00:01:25-0500
Warning	activity	Failed sending activity email to user 'user1'.		2022-12-20T23:56:07-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-20T23:56:07-0500
Warning	activity	Failed sending activity email to user 'user2'.		2022-12-20T23:56:07-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-20T23:56:07-0500
Warning	activity	Failed sending activity email to user 'user3'.		2022-12-20T23:56:07-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-20T23:56:07-0500
Warning	activity	Failed sending activity email to user 'user4'.		2022-12-20T23:56:07-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-20T23:56:07-0500
Warning	activity	Failed sending activity email to user 'user5'.		2022-12-20T23:56:07-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-20T23:56:07-0500
Warning	activity	Failed sending activity email to user 'user1'.		2022-12-20T23:50:32-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-20T23:50:32-0500
Warning	activity	Failed sending activity email to user 'user2'.		2022-12-20T23:50:32-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-20T23:50:32-0500
Warning	activity	Failed sending activity email to user 'user3'.		2022-12-20T23:50:32-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-20T23:50:32-0500
Warning	activity	Failed sending activity email to user 'user4'.		2022-12-20T23:50:32-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-20T23:50:32-0500
Warning	activity	Failed sending activity email to user 'user5'.		2022-12-20T23:50:32-0500
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to ssl://127.0.0.1:25 (Connection refused)		2022-12-20T23:50:32-0500

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

<?php
$CONFIG = array (
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/snap/nextcloud/current/htdocs/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
      'url' => '/extra-apps',
      'writable' => true,
    ),
  ),
  'supportedDatabases' => 
  array (
    0 => 'mysql',
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/tmp/sockets/redis.sock',
    'port' => 0,
  ),
  'log_type' => 'file',
  'logfile' => '/var/snap/nextcloud/current/logs/nextcloud.log',
  'logfilemode' => 416,
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'mydomain',
  ),
  'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '24.0.8.2',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => '',
  'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'instanceid' => '',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'default_phone_region' => 'US',
  'maintenance' => false,
  'loglevel' => 2,
);

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

PASTE HERE

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE