Nextcloud version (eg, 18.0.2): 19.0.1-1
Operating system and version (eg, Ubuntu 20.04): arch Linux ARM
Apache or nginx version (eg, Apache 2.4.25): 2.4.43
PHP version (eg, 7.1):7.4.8
The issue you are facing: Nextcloud client gives an error that reads:
“An error ocurred while opening a folder Operation canceled”
Is this the first time you’ve seen this error? (Y/N):Y
Steps to replicate it:
- Open client app
- Select Force sync now
- Error appears after a while
The output of your Nextcloud log in Admin > Logging:
TypeError: Argument 2 passed to OC\Files\Storage\Wrapper\Encryption::modifyMetaData() must be of the type array, null given, called in /usr/share/webapps/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php on line 208
/usr/share/webapps/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 208:
OC\Files\Storage\Wrapper\Encryption->modifyMetaData()
<<closure>>
OC\Files\Storage\Wrapper\Encryption->getDirectoryContent()
/usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php - line 408:
iterator_to_array()
/usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php - line 388:
OC\Files\Cache\Scanner->handleChildren()
/usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php - line 340:
OC\Files\Cache\Scanner->scanChildren()
/usr/share/webapps/nextcloud/lib/private/Files/View.php - line 1339:
OC\Files\Cache\Scanner->scan()
/usr/share/webapps/nextcloud/lib/private/Files/View.php - line 1383:
OC\Files\View->getCacheEntry()
/usr/share/webapps/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 221:
OC\Files\View->getFileInfo()
/usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 80:
OCA\DAV\Connector\Sabre\Directory->getChild()
/usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 976:
Sabre\DAV\Tree->getNodeForPath()
/usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1678:
Sabre\DAV\Server->getPropertiesIteratorForPath()
/usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1661:
Sabre\DAV\Server->writeMultiStatus()
/usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 363:
Sabre\DAV\Server->generateMultiStatus()
/usr/share/webapps/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:
Sabre\DAV\CorePlugin->httpPropFind()
/usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 474:
Sabre\DAV\Server->emit()
/usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 251:
Sabre\DAV\Server->invokeMethod()
/usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 319:
Sabre\DAV\Server->start()
/usr/share/webapps/nextcloud/apps/dav/lib/Server.php - line 320:
Sabre\DAV\Server->exec()
/usr/share/webapps/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:
OCA\DAV\Server->exec()
/usr/share/webapps/nextcloud/remote.php - line 167:
require_once("/usr/share/ ... p")
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'ocy4w4gp6x34',
'passwordsalt' => 'DoJ1ZFNR0uezFlkirehLSkazt1pZ1X',
'secret' => 'YfRBvmPcOlnisWDCt63ffsLpFKbsMu4Qm9y6YtyV3Mz0DflA',
'trusted_domains' =>
array (
0 => '*',
),
'datadirectory' => '/usr/share/webapps/nextcloud/data',
'dbtype' => 'mysql',
'version' => '19.0.1.1',
'overwrite.cli.url' => 'http://raspi/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'user',
'dbpassword' => 'password',
'installed' => true,
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
'mail_from_address' => 'test',
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'server.com',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp.server.com',
'mail_smtpport' => '465',
'mail_smtpname' => 'test@email.com',
'mail_smtppassword' => 'pwd',
)
The output of your Apache/nginx/system log in /var/log/error_log_my_url_com
:
[Tue Jul 28 14:59:11.492230 2020] [php7:error] [pid 785] [client 192.168.1.1:42486] PHP Fatal error: Uncaught PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction in /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117\nStack trace:\n#0 /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(117): PDOStatement->execute()\n#1 /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1054): Doctrine\\DBAL\\Driver\\PDOStatement->execute()\n#2 /usr/share/webapps/nextcloud/lib/private/DB/Connection.php(214): Doctrine\\DBAL\\Connection->executeUpdate()\n#3 /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(203): OC\\DB\\Connection->executeUpdate()\n#4 /usr/share/webapps/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(216): Doctrine\\DBAL\\Query\\QueryBuilder->execute()\n#5 /usr/share/webapps/nextcloud/lib/private/Lock/DBLockingProvider.php(316): OC\\DB\\QueryBuilder\\QueryBuilder->execute()\n#6 [internal fu in /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 34