Sync Issues with DigitalOcean Spaces

Nextcloud version 13.0.6 (installed through YunoHost)
Operating system and version Debian 9.5 x64 on Digital Ocean
Apache or nginx version Nginx/1.10.3
PHP version PHP 7.0.30-0+deb9u1

The issue you are facing:
When using the Windows Sync Client, I get a plethora of “server replied: Internal Server Error”, “File was deleted from server”, “Service Unavailable” and “Operation Canceled”

Is this the first time you’ve seen this error? No

Steps to replicate it: Run Sync Client

The output of your Nextcloud log in Admin > Logging:

	Aws\S3\Exception\S3Exception: Error executing "ListObjects" on "https://dtm.sfo2.digitaloceanspaces.com/?delimiter=%2F&prefix=Resources%2FTemplates%2F&encoding-type=url"; AWS HTTP error: Server error response [url] https://dtm.sfo2.digitaloceanspaces.com/?delimiter=%2F&prefix=Resources%2FTemplates%2F&encoding-type=url [status code] 503 [reason phrase] Slow Down SlowDown (server): Please reduce your request rate. - <?xml version="1.0" encoding="UTF-8"?> <Error> <Code>SlowDown</Code> <Message>Please reduce your request rate.</Message> <RequestId></RequestId> </Error>

    /var/www/nextcloud/3rdparty/aws/aws-sdk-php/src/WrappedHttpHandler.php - line 101: Aws\WrappedHttpHandler->parseError(Array, Object(GuzzleHttp\Psr7\Request), Object(Aws\Command), Array)
    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 203: Aws\WrappedHttpHandler->Aws\{closure}(*** sensitive parameters replaced ***)
    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 174: GuzzleHttp\Promise\Promise callHandler(2, Array, Array)
    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/RejectedPromise.php - line 40: GuzzleHttp\Promise\Promise GuzzleHttp\Promise\{closure}(*** sensitive parameters replaced ***)
    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php - line 47: GuzzleHttp\Promise\RejectedPromise GuzzleHttp\Promise\{closure}(*** sensitive parameters replaced ***)
    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 234: GuzzleHttp\Promise\TaskQueue->run()
    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 267: GuzzleHttp\Promise\Promise->waitIfPending()
    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 225: GuzzleHttp\Promise\Promise->invokeWaitList()
    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 267: GuzzleHttp\Promise\Promise->waitIfPending()
    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 225: GuzzleHttp\Promise\Promise->invokeWaitList()
    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 267: GuzzleHttp\Promise\Promise->waitIfPending()
    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 225: GuzzleHttp\Promise\Promise->invokeWaitList()
    /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 62: GuzzleHttp\Promise\Promise->waitIfPending()
    /var/www/nextcloud/3rdparty/aws/aws-sdk-php/src/AwsClientTrait.php - line 59: GuzzleHttp\Promise\Promise->wait()
    /var/www/nextcloud/3rdparty/aws/aws-sdk-php/src/ResultPaginator.php - line 127: Aws\AwsClient->execute(Object(Aws\Command))
    /var/www/nextcloud/apps/files_external/lib/Lib/Storage/AmazonS3.php - line 288: Aws\ResultPaginator->valid()
    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 101: OCA\Files_External\Lib\Storage\AmazonS3->opendir('Resources/Templ...')
    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php - line 109: OC\Files\Storage\Wrapper\Wrapper->opendir('Resources/Templ...')
    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 101: OC\Files\Storage\Wrapper\Availability->opendir('Resources/Templ...')
    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 101: OC\Files\Storage\Wrapper\Wrapper->opendir('Resources/Templ...')
    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 101: OC\Files\Storage\Wrapper\Wrapper->opendir('Resources/Templ...')
    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 101: OC\Files\Storage\Wrapper\Wrapper->opendir('Resources/Templ...')
    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 101: OC\Files\Storage\Wrapper\Wrapper->opendir('Resources/Templ...')
    /var/www/nextcloud/lib/private/Files/Cache/Scanner.php - line 375: OC\Files\Storage\Wrapper\Wrapper->opendir('Resources/Templ...')
    /var/www/nextcloud/lib/private/Files/Cache/Scanner.php - line 426: OC\Files\Cache\Scanner->getNewChildren('Resources/Templ...')
    /var/www/nextcloud/lib/private/Files/Cache/Scanner.php - line 406: OC\Files\Cache\Scanner->handleChildren('Resources/Templ...', false, 3, '8300665', true, 0)
    /var/www/nextcloud/lib/private/Files/Cache/Scanner.php - line 338: OC\Files\Cache\Scanner->scanChildren('Resources/Templ...', false, 3, '8300665', true)
    /var/www/nextcloud/lib/private/Files/View.php - line 1326: OC\Files\Cache\Scanner->scan('Resources/Templ...', false)
    /var/www/nextcloud/lib/private/Files/View.php - line 1369: OC\Files\View->getCacheEntry(Object(OCA\RansomwareProtection\StorageWrapper), 'Resources/Templ...', '/DTM/Resources/...')
    /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 223: OC\Files\View->getFileInfo('/derek/files/DT...')
    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 76: OCA\DAV\Connector\Sabre\Directory->getChild('Templates')
    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 71: Sabre\DAV\Tree->getNodeForPath('files/derek/DTM...')
    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 71: Sabre\DAV\Tree->getNodeForPath('files/derek/DTM...')
    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 71: Sabre\DAV\Tree->getNodeForPath('files/derek/DTM...')
    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 71: Sabre\DAV\Tree->getNodeForPath('files/derek/DTM...')
    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 103: Sabre\DAV\Tree->getNodeForPath('files/derek/DTM...')
    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAVACL/Plugin.php - line 878: Sabre\DAV\Tree->nodeExists('files/derek/DTM...')
    [internal function] Sabre\DAVACL\Plugin->beforeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
    /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 466: Sabre\Event\EventEmitter->emit('beforeMethod', Array)
    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
    /var/www/nextcloud/apps/dav/lib/Server.php - line 293: Sabre\DAV\Server->exec()
    /var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35: OCA\DAV\Server->exec()
    /var/www/nextcloud/remote.php - line 164: require_once('/var/www/nextcl...')
    {main}

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

<?php
$CONFIG = array (
  'passwordsalt' => '#',
  'secret' => '#',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'cloud.dtm-creative.com',
  ),
  'datadirectory' => '/home/yunohost.app/nextcloud/data',
  'overwrite.cli.url' => 'http://localhost',
  'dbtype' => 'mysql',
  'version' => '13.0.6.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'fwFRMWSrkZy3vBXCgZm2iez9',
  'installed' => true,
  'instanceid' => 'occ3onqxrsrv',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'updatechecker' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'integrity.check.disabled' => true,
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => '6379',
    'timeout' => '0.0',
    'password' => '',
  ),
  'logout_url' => 'https://core.dtm-creative.com/yunohost/sso/?action=logout',
  'mail_from_address' => 'derek',
  'mail_smtpmode' => 'php',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_domain' => 'dtm-creative.com',
  'maintenance' => false,
);

The output of your Apache/nginx/system log in /var/log/____:
Everything appears obfuscated in the log .gz files, such as �ξ{^D^U�

Through searching these forums, I’ve attempted doing the OCC commands (which all returned positive) to repair the database and have been unable to fix this.

Bump. :slight_smile:

I’ve tried uninstalling and reinstalling and still am having the issues.