### Steps to reproduce
- updated OC-server from 10.4. to 10.4.1 and than to 10.5.0
used the script guided way: Manual ownCloud Upgrade
- i am using OC desktop client 5.2.0 or 5.2.1 to sync the desktop files from server to a Windows 10 PC
### Expected behaviour
After migration the synchronisation should sync all files with no errors, as it did before the migration
### Actual behaviour
Syncronising files with OC Desktop client 5.2.0. or 5.2.1 shows errors within protocol for a few specific users. For other users no errors are seen.
In the case sync shows an error for a user, as well a occ files:scan for that user stops with errors. In the case the sync is working well, the files scan ends with no errors.
From desktop client activity-protocol - not synchronisized
Error transferring https:///remote.php/dav/files//Documents - server replied: Internal Server Error,Documents,ownCloud - @,@,2024-01-10T17:09:04.741,Datei ignoriert,
Messages from occ files:scan for that user:
Scanning files for 1 users
Starting scan for user 1 out of 1 (username)
Exception during scan: Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'UPDATE oc_filecache
SET size
=? WHERE (size
<> ? OR size
IS NULL) AND fileid
= ? ’ with params [188658797, 188658797, “81902”]:
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
#0 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(169): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException(‘An exception oc…’, Object(Doctrine\DBAL\Driver\PDOException))
#1 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(149): Doctrine\DBAL\DBALException::wrapException(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), ‘An exception oc…’)
#2 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(914): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), ‘UPDATE oc_file...', Array) #3 /var/www/owncloud/lib/private/DB/Connection.php(187): Doctrine\DBAL\Connection->executeQuery('UPDATE
oc_file…’, Array, Array, NULL)
#4 /var/www/owncloud/lib/private/Files/Cache/Cache.php(345): OC\DB\Connection->executeQuery(‘UPDATE `oc_file…’, Array)
#5 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(410): OC\Files\Cache\Cache->update(‘81902’, Array)
#6 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(402): OC\Files\Cache\Scanner->scanChildren(‘uploads/4769193…’, true, 3, ‘81902’, true)
#7 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(402): OC\Files\Cache\Scanner->scanChildren(‘uploads’, true, 3, ‘56130’, true)
#8 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(332): OC\Files\Cache\Scanner->scanChildren(‘’, true, 3, ‘11’, true)
#9 /var/www/owncloud/lib/private/Files/Utils/Scanner.php(246): OC\Files\Cache\Scanner->scan(‘’, true, 3)
10 /var/www/owncloud/apps/files/lib/Command/Scan.php(251): OC\Files\Utils\Scanner->scan(‘/username’, false)
#11 /var/www/owncloud/apps/files/lib/Command/Scan.php(400): OCA\Files\Command\Scan->scanFiles(‘username’, ‘/username’, false, Object(Symfony\Component\Console\Output\ConsoleOutput), false, false)
#12 /var/www/owncloud/apps/files/lib/Command/Scan.php(362): OCA\Files\Command\Scan->userScan(Array, NULL, false, Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput), false)
#13 /var/www/owncloud/apps/files/lib/Command/Scan.php(328): OCA\Files\Command\Scan->processUserChunks(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput), Array, NULL, false)
#14 /var/www/owncloud/lib/composer/symfony/console/Command/Command.php(255): OCA\Files\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/owncloud/core/Command/Base.php(159): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/owncloud/lib/composer/symfony/console/Application.php(1000): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/owncloud/lib/composer/symfony/console/Application.php(271): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Files\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/owncloud/lib/composer/symfony/console/Application.php(147): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/owncloud/lib/private/Console/Application.php(165): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/owncloud/console.php(116): OC\Console\Application->run()
#21 /var/www/owncloud/occ(11): require_once(‘/var/www/ownclo…’)
#22 {main}
±--------±------±-------------±-----------------+
| Folders | Files | Elapsed time | Items per second |
±--------±------±-------------±-----------------+
| 5 | 10 | 00:00:17 | 1 |
±--------±------±-------------±-----------------+
### Server configuration
Operating system:
OC-server: Raspian GNU/Linux 10 (buster)
Web server:
apache 2.4.38
Database:
10.3.22 MariaDB
PHP version:
7.2.31
ownCloud version: (see ownCloud admin page)
10.5.0
Updated from an older ownCloud or fresh install:
10.4.0 → 10.4.1 → 10.5.0
Where did you install ownCloud from:
tar
Client system:
Desktop: Windows 10
OC-Desktop: Owncloud desktop 5.2.1