Still getting warning for "The database is used for transactional file locking. To enhance performance, please configure memcache" after setting up Redis on unixsocket

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): 27.0.2
Operating system and version (eg, Ubuntu 20.04): Debian Trixie
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.57-2
PHP version (eg, 7.4): 8.2
MariaDB-server version : 1:10.11.4-1

The issue you are facing:

This is a small personal server with about 5 people using it.

I was previously only using APCu for memory cache (php8.2-apcu and php-apcu).

I am now trying to enable redis (redis-server 5:7.0.12-1) for memcache.locking and memcache.distributed on unixsocket /var/run/redis/redis-server.sock on port 0 following the nextcloud documentation. However when I set all this up I am still getting a warning on the admin overview page for “The database is used for transactional file locking. To enhance performance, please configure memcache”. Im not sure if redis is actually working for nextcloud. It does seem to be running on my system just fine.

I can ping the redis socket as the www-data user:
user# sudo -u www-data redis-cli -s /var/run/redis/redis-server.sock ping
PONG

or (not really sure if /var/run or just /run matters)
user# sudo -u www-data redis-cli -s /run/redis/redis-server.sock ping
PONG

so it seems like everything is set up properly. The problem looks similar to this post here:

but I am not using SELinux or Centos

but when i try to monitor redis I do get an interesting error
root# redis-cli monitor
Could not connect to Redis at 127.0.0.1:6379: Connection refused

Redis.conf and redis-server.log both indicate they are using port 0 not 6379 like redis-cli is.

Is this the first time you’ve seen this error? Y:

Steps to replicate it:

  1. Install nextcloud mariadb-server redis-server php-apcu
  2. configure for operation over unixsocket per nextcloud documentation
  3. view admin overview page

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

 <?php
$CONFIG = array (
  'instanceid' => 'id',
  'passwordsalt' => 'salt',
  'secret' => 'secret',
  'trusted_domains' => 
  array (
    0 => 'localip',
    1 => 'fqdn',
  ),
  'datadirectory' => '/home/user/nextcloud-data/',
  'dbtype' => 'mysql',
  'version' => '27.0.2.1',
  'overwrite.cli.url' => 'https://ipaddy/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'password',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\OC\Memcache\Redis',
  'filelocking.enabled' => 'true',
  'memcahce.locking' => '\OC\Memcache\Redis',
  'redis' =>  
      array(
      'host' => '/run/redis/redis-server.sock',
      'port' => 0,
      'timeout' => 0.0,
      ),
  'default_phone_region' => 'region',
  'app_install_overwrite' => 
  array (
    0 => 'end_to_end_encryption',
  ),
  'mail_smtptimeout' => 30,
  'mail_from_address' => 'address',
  'mail_smtpmode' => 'mode',
  'mail_sendmailmode' => 'mode',
  'mail_domain' => 'domain',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'host',
  'mail_smtpport' => 'port',
  'mail_smtpname' => 'name',
  'mail_smtppassword' => 'password',
  'mail_smtpsecure' => 'ssl',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

grep -v ‘^ *#’ /etc/redis/redis.conf | grep -v “^$” | less

bind 127.0.0.1 -::1
protected-mode yes
port 0
tcp-backlog 511
 unixsocket /run/redis/redis-server.sock
 unixsocketperm 770
timeout 0
tcp-keepalive 300
daemonize yes
pidfile /run/redis/redis-server.pid
loglevel notice
logfile /var/log/redis/redis-server.log
databases 16
always-show-logo no
set-proc-title yes
proc-title-template "{title} {listen-addr} {server-mode}"
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
rdb-del-sync-files no
dir /var/lib/redis
replica-serve-stale-data yes
replica-read-only yes
repl-diskless-sync yes
repl-diskless-sync-delay 5
repl-diskless-sync-max-replicas 0
repl-diskless-load disabled
repl-disable-tcp-nodelay no
replica-priority 100
acllog-max-len 128
 maxclients 512
lazyfree-lazy-eviction no
lazyfree-lazy-expire no
lazyfree-lazy-server-del no
replica-lazy-flush no
lazyfree-lazy-user-del no
lazyfree-lazy-user-flush no
oom-score-adj no
oom-score-adj-values 0 200 800
disable-thp yes
appendonly no
appendfilename "appendonly.aof"
appenddirname "appendonlydir"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
aof-use-rdb-preamble yes
aof-timestamp-enabled no
slowlog-log-slower-than 10000
slowlog-max-len 128
latency-monitor-threshold 0
notify-keyspace-events ""
hash-max-listpack-entries 512
hash-max-listpack-value 64
list-max-listpack-size -2
list-compress-depth 0
set-max-intset-entries 512
zset-max-listpack-entries 128
zset-max-listpack-value 64
hll-sparse-max-bytes 3000
stream-node-max-bytes 4096
stream-node-max-entries 100
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit replica 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
dynamic-hz yes
aof-rewrite-incremental-fsync yes
rdb-save-incremental-fsync yes
jemalloc-bg-thread yes

Redis logs(exerpt) show it seems to be working (its mostly a bunch of repeated lines as I restarted it)

16109:signal-handler (1692463747) Received SIGTERM scheduling shutdown...
16109:M 19 Aug 2023 09:49:07.623 # User requested shutdown...
16109:M 19 Aug 2023 09:49:07.623 * Saving the final RDB snapshot before exiting.
16109:M 19 Aug 2023 09:49:07.630 * DB saved on disk
16109:M 19 Aug 2023 09:49:07.630 * Removing the pid file.
16109:M 19 Aug 2023 09:49:07.630 * Removing the unix socket file.
16109:M 19 Aug 2023 09:49:07.630 # Redis is now ready to exit, bye bye...
21790:C 19 Aug 2023 09:49:07.746 * Supervised by systemd. Please make sure you set appropriate values for TimeoutStartSec and TimeoutStopSec in your servi>
21790:C 19 Aug 2023 09:49:07.746 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
21790:C 19 Aug 2023 09:49:07.746 # Redis version=7.0.12, bits=64, commit=00000000, modified=0, pid=21790, just started
21790:C 19 Aug 2023 09:49:07.746 # Configuration loaded
21790:M 19 Aug 2023 09:49:07.746 * monotonic clock: POSIX clock_gettime
21790:M 19 Aug 2023 09:49:07.747 * Running mode=standalone, port=0.
21790:M 19 Aug 2023 09:49:07.747 # Server initialized
21790:M 19 Aug 2023 09:49:07.748 * Loading RDB produced by version 7.0.12
21790:M 19 Aug 2023 09:49:07.748 * RDB age 0 seconds
21790:M 19 Aug 2023 09:49:07.748 * RDB memory usage when created 0.50 Mb
21790:M 19 Aug 2023 09:49:07.748 * Done loading RDB, keys loaded: 94, keys expired: 0.
21790:M 19 Aug 2023 09:49:07.748 * DB loaded from disk: 0.000 seconds
21790:M 19 Aug 2023 09:49:07.748 * The server is now ready to accept connections at /run/redis/redis-server.sock

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

this is just logs of me restarting apache2

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.

These logs repeated a bunch once I tried to set up redis, I have filted the repeated ones out. They are all from yesterday, none have appeared today, somehow.

[webdav] Error: Sabre\DAV\Exception\ServiceUnavailable: RedisException: Redis server went away at <<closure>>

0. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php line 179
   OCA\DAV\Connector\Sabre\Auth->check()
1. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php line 135
   Sabre\DAV\Auth\Plugin->check()
2. /var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
   Sabre\DAV\Auth\Plugin->beforeMethod()
3. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 456
   Sabre\DAV\Server->emit()
4. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
   Sabre\DAV\Server->invokeMethod()
5. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
   Sabre\DAV\Server->start()
6. /var/www/html/nextcloud/apps/dav/lib/Server.php line 364
   Sabre\DAV\Server->exec()
7. /var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php line 35
   OCA\DAV\Server->exec()
8. /var/www/html/nextcloud/remote.php line 172
   require_once("/var/www/html/n ... p")


[no app in context] Error: RedisException: Redis server went away at <<closure>>

 0. /var/www/html/nextcloud/lib/private/Memcache/Redis.php line 72
    Redis->get()
 1. /var/www/html/nextcloud/lib/private/Memcache/WithLocalCache.php line 24
    OC\Memcache\Redis->get()
 2. /var/www/html/nextcloud/lib/private/User/Manager.php line 169
    OC\Memcache\WithLocalCache->get()
 3. /var/www/html/nextcloud/apps/password_policy/lib/ComplianceService.php line 97
    OC\User\Manager->get()
 4. /var/www/html/nextcloud/apps/password_policy/lib/Listener/BeforeUserLoggedInEventListener.php line 45
    OCA\Password_Policy\ComplianceService->entryControl()
 5. /var/www/html/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php line 86
    OCA\Password_Policy\Listener\BeforeUserLoggedInEventListener->handle()
 6. /var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
    OC\EventDispatcher\ServiceEventListener->__invoke()
 7. /var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
    Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
 8. /var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 94
    Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
 9. /var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 106
    OC\EventDispatcher\EventDispatcher->dispatch()
10. /var/www/html/nextcloud/lib/private/Server.php line 624
    OC\EventDispatcher\EventDispatcher->dispatchTyped()
11. <<closure>>
    OC\Server->OC\{closure}("*** sensitive parameters replaced ***")
12. /var/www/html/nextcloud/lib/private/Hooks/EmitterTrait.php line 105
    call_user_func_array()
13. /var/www/html/nextcloud/lib/private/Hooks/PublicEmitter.php line 40
    OC\Hooks\BasicEmitter->emit()
14. /var/www/html/nextcloud/lib/private/User/Session.php line 434
    OC\Hooks\PublicEmitter->emit()
15. /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php line 114
    OC\User\Session->logClientIn("*** sensitive parameters replaced ***")
16. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php line 103
    OCA\DAV\Connector\Sabre\Auth->validateUserPass("*** sensitive parameters replaced ***")
17. /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php line 232
    Sabre\DAV\Auth\Backend\AbstractBasic->check()
18. /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php line 139
    OCA\DAV\Connector\Sabre\Auth->auth()
19. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php line 179
    OCA\DAV\Connector\Sabre\Auth->check()
20. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php line 135
    Sabre\DAV\Auth\Plugin->check()
21. /var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\Auth\Plugin->beforeMethod()
22. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 456
    Sabre\DAV\Server->emit()
23. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
24. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
25. /var/www/html/nextcloud/apps/dav/lib/Server.php line 364
    Sabre\DAV\Server->exec()
26. /var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
27. /var/www/html/nextcloud/remote.php line 172
    require_once("/var/www/html/n ... p")

[no app in context] Error: RedisException: No such file or directory at <<closure>>

 0. /var/www/html/nextcloud/lib/private/RedisFactory.php line 137
    Redis->pconnect()
 1. /var/www/html/nextcloud/lib/private/RedisFactory.php line 178
    OC\RedisFactory->create("*** sensitive parameters replaced ***")
 2. /var/www/html/nextcloud/lib/private/Memcache/Redis.php line 66
    OC\RedisFactory->getInstance()
 3. /var/www/html/nextcloud/lib/private/Memcache/Redis.php line 72
    OC\Memcache\Redis->getCache()
 4. /var/www/html/nextcloud/lib/private/Memcache/WithLocalCache.php line 24
    OC\Memcache\Redis->get()
 5. /var/www/html/nextcloud/lib/private/User/Manager.php line 169
    OC\Memcache\WithLocalCache->get()
 6. /var/www/html/nextcloud/lib/private/Files/SetupManager.php line 382
    OC\User\Manager->get()
 7. /var/www/html/nextcloud/lib/private/Files/SetupManager.php line 389
    OC\Files\SetupManager->getUserForPath()
 8. /var/www/html/nextcloud/lib/private/Files/Mount/Manager.php line 95
    OC\Files\SetupManager->setupForPath()
 9. /var/www/html/nextcloud/lib/private/Files/Filesystem.php line 306
    OC\Files\Mount\Manager->find()
10. /var/www/html/nextcloud/lib/private/Files/View.php line 1127
    OC\Files\Filesystem::resolvePath()
11. /var/www/html/nextcloud/lib/private/Files/View.php line 518
    OC\Files\View->basicOperation()
12. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 268
    OC\Files\View->file_exists()
13. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 228
    OC\Encryption\Keys\Storage->getKey()
14. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 120
    OC\Encryption\Keys\Storage->getKeyWithUid()
15. /var/www/html/nextcloud/apps/encryption/lib/KeyManager.php line 624
    OC\Encryption\Keys\Storage->getSystemUserKey()
16. /var/www/html/nextcloud/apps/encryption/lib/KeyManager.php line 169
    OCA\Encryption\KeyManager->getPublicShareKey()
17. /var/www/html/nextcloud/apps/encryption/lib/Users/Setup.php line 62
    OCA\Encryption\KeyManager->validateShareKey()
18. /var/www/html/nextcloud/apps/encryption/lib/AppInfo/Application.php line 55
    OCA\Encryption\Users\Setup->setupSystem()
19. /var/www/html/nextcloud/apps/encryption/appinfo/app.php line 37
    OCA\Encryption\AppInfo\Application->setUp()
20. /var/www/html/nextcloud/lib/private/App/AppManager.php line 525
    require_once("/var/www/html/n ... p")
21. /var/www/html/nextcloud/lib/private/App/AppManager.php line 416
    OC\App\AppManager::requireAppFile()
22. /var/www/html/nextcloud/lib/private/App/AppManager.php line 216
    OC\App\AppManager->loadApp()
23. /var/www/html/nextcloud/lib/private/legacy/OC_App.php line 126
    OC\App\AppManager->loadApps()
24. /var/www/html/nextcloud/remote.php line 157
    OC_App::loadApps()

(probably) Non redis related logs (I think this was an issue with mariadb “max_allowed_packet” and “wait_timeout”

[core] Error: Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1531
    OC\DB\Connection->connect()
 1. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1029
    Doctrine\DBAL\Connection->getWrappedConnection()
 2. /var/www/html/nextcloud/lib/private/DB/Connection.php line 262
    Doctrine\DBAL\Connection->executeQuery()
 3. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 345
    OC\DB\Connection->executeQuery()
 4. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 5. /var/www/html/nextcloud/lib/private/Files/Cache/Cache.php line 168
    OC\DB\QueryBuilder\QueryBuilder->execute()
 6. /var/www/html/nextcloud/lib/private/Files/View.php line 1306
    OC\Files\Cache\Cache->get()
 7. /var/www/html/nextcloud/lib/private/Files/View.php line 1356
    OC\Files\View->getCacheEntry()
 8. /var/www/html/nextcloud/lib/private/Files/Node/Root.php line 202
    OC\Files\View->getFileInfo()
 9. <<closure>>
    OC\Files\Node\Root->get()
10. /var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php line 74
    call_user_func_array()
11. /var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php line 151
    OC\Files\Node\LazyFolder->__call()
12. /var/www/html/nextcloud/lib/private/Files/AppData/AppData.php line 132
    OC\Files\Node\LazyFolder->get()
13. /var/www/html/nextcloud/lib/private/Template/JSCombiner.php line 87
    OC\Files\AppData\AppData->getFolder()
14. /var/www/html/nextcloud/lib/private/Template/JSResourceLocator.php line 145
    OC\Template\JSCombiner->process()
15. /var/www/html/nextcloud/lib/private/Template/JSResourceLocator.php line 75
    OC\Template\JSResourceLocator->cacheAndAppendCombineJsonIfExist()
16. /var/www/html/nextcloud/lib/private/Template/ResourceLocator.php line 73
    OC\Template\JSResourceLocator->doFind()
17. /var/www/html/nextcloud/lib/private/TemplateLayout.php line 377
    OC\Template\ResourceLocator->find()
18. /var/www/html/nextcloud/lib/private/TemplateLayout.php line 222
    OC\TemplateLayout::findJavascriptFiles()
19. /var/www/html/nextcloud/lib/private/legacy/OC_Template.php line 182
    OC\TemplateLayout->__construct()
20. /var/www/html/nextcloud/lib/private/Template/Base.php line 132
    OC_Template->fetchPage()
21. /var/www/html/nextcloud/lib/private/legacy/OC_Template.php line 331
    OC\Template\Base->printPage()
22. /var/www/html/nextcloud/index.php line 74
    OC_Template::printExceptionErrorPage()

[core] Error: Doctrine\DBAL\Exception\ConnectionLost: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1814
    Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert()
 1. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1749
    Doctrine\DBAL\Connection->handleDriverException()
 2. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1055
    Doctrine\DBAL\Connection->convertExceptionDuringQuery()
 3. /var/www/html/nextcloud/lib/private/DB/Connection.php line 262
    Doctrine\DBAL\Connection->executeQuery()
 4. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 345
    OC\DB\Connection->executeQuery()
 5. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 6. /var/www/html/nextcloud/lib/private/Files/Cache/Cache.php line 168
    OC\DB\QueryBuilder\QueryBuilder->execute()
 7. /var/www/html/nextcloud/lib/private/Files/Cache/HomeCache.php line 57
    OC\Files\Cache\Cache->get()
 8. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 93
    OC\Files\Cache\HomeCache->get()
 9. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 115
    OC\Files\Storage\Wrapper\Quota->getSize()
10. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 253
    OC\Files\Storage\Wrapper\Quota->free_space()
11. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Quota->mkdir()
12. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
13. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
14. /var/www/html/nextcloud/lib/private/Files/View.php line 1143
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
15. /var/www/html/nextcloud/lib/private/Files/View.php line 243
    OC\Files\View->basicOperation()
16. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 483
    OC\Files\View->mkdir()
17. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 336
    OC\Encryption\Keys\Storage->keySetPreparation()
18. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 139
    OC\Encryption\Keys\Storage->setKey()
19. /var/www/html/nextcloud/apps/encryption/lib/KeyManager.php line 381
    OC\Encryption\Keys\Storage->setFileKey()
20. /var/www/html/nextcloud/apps/encryption/lib/Crypto/Encryption.php line 319
    OCA\Encryption\KeyManager->setShareKey()
21. /var/www/html/nextcloud/lib/private/Files/Stream/Encryption.php line 452
    OCA\Encryption\Crypto\Encryption->end()
22. <<closure>>
    OC\Files\Stream\Encryption->stream_close("*** sensitive parameters replaced ***")
23. /var/www/html/nextcloud/3rdparty/icewind/streams/src/Wrapper.php line 96
    fclose("*** sensitive parameters replaced ***")
24. /var/www/html/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php line 117
    Icewind\Streams\Wrapper->stream_close("*** sensitive parameters replaced ***")
25. <<closure>>
    Icewind\Streams\CallbackWrapper->stream_close("*** sensitive parameters replaced ***")
26. /var/www/html/nextcloud/lib/private/Files/View.php line 649
    fclose("*** sensitive parameters replaced ***")
27. /var/www/html/nextcloud/lib/private/Files/Node/File.php line 73
    OC\Files\View->file_put_contents()
28. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 257
    OC\Files\Node\File->putContent()
29. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 248
    OC_Util::copyr()
30. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 216
    OC_Util::copyr()
31. /var/www/html/nextcloud/lib/private/User/Session.php line 558
    OC_Util::copySkeleton()
32. /var/www/html/nextcloud/lib/private/User/Session.php line 404
    OC\User\Session->prepareUserLogin()
33. /var/www/html/nextcloud/lib/private/Authentication/Login/CompleteLoginCommand.php line 39
    OC\User\Session->completeLogin("*** sensitive parameters replaced ***")
34. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\CompleteLoginCommand->process()
35. /var/www/html/nextcloud/lib/private/Authentication/Login/LoggedInCheckCommand.php line 60
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
36. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\LoggedInCheckCommand->process()
37. /var/www/html/nextcloud/lib/private/Authentication/Login/EmailLoginCommand.php line 68
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
38. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\EmailLoginCommand->process()
39. /var/www/html/nextcloud/lib/private/Authentication/Login/UidLoginCommand.php line 53
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
40. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\UidLoginCommand->process()
41. /var/www/html/nextcloud/lib/private/Authentication/Login/UserDisabledCheckCommand.php line 57
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
42. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\UserDisabledCheckCommand->process()
43. /var/www/html/nextcloud/lib/private/Authentication/Login/PreLoginHookCommand.php line 52
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
44. /var/www/html/nextcloud/lib/private/Authentication/Login/Chain.php line 107
    OC\Authentication\Login\PreLoginHookCommand->process()
45. /var/www/html/nextcloud/core/Controller/LoginController.php line 326
    OC\Authentication\Login\Chain->process()
46. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OC\Core\Controller\LoginController->tryLogin("*** sensitive parameters replaced ***")
47. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
48. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
49. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
50. /var/www/html/nextcloud/lib/base.php line 1071
    OC\Route\Router->match()
51. /var/www/html/nextcloud/index.php line 36
    OC::handleRequest()

Caused by:

Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php line 103
    Doctrine\DBAL\Driver\PDO\Exception::new()
 1. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1045
    Doctrine\DBAL\Driver\PDO\Statement->execute()
 2. /var/www/html/nextcloud/lib/private/DB/Connection.php line 262
    Doctrine\DBAL\Connection->executeQuery()
 3. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 345
    OC\DB\Connection->executeQuery()
 4. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 5. /var/www/html/nextcloud/lib/private/Files/Cache/Cache.php line 168
    OC\DB\QueryBuilder\QueryBuilder->execute()
 6. /var/www/html/nextcloud/lib/private/Files/Cache/HomeCache.php line 57
    OC\Files\Cache\Cache->get()
 7. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 93
    OC\Files\Cache\HomeCache->get()
 8. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 115
    OC\Files\Storage\Wrapper\Quota->getSize()
 9. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 253
    OC\Files\Storage\Wrapper\Quota->free_space()
10. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Quota->mkdir()
11. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
12. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
13. /var/www/html/nextcloud/lib/private/Files/View.php line 1143
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
14. /var/www/html/nextcloud/lib/private/Files/View.php line 243
    OC\Files\View->basicOperation()
15. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 483
    OC\Files\View->mkdir()
16. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 336
    OC\Encryption\Keys\Storage->keySetPreparation()
17. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 139
    OC\Encryption\Keys\Storage->setKey()
18. /var/www/html/nextcloud/apps/encryption/lib/KeyManager.php line 381
    OC\Encryption\Keys\Storage->setFileKey()
19. /var/www/html/nextcloud/apps/encryption/lib/Crypto/Encryption.php line 319
    OCA\Encryption\KeyManager->setShareKey()
20. /var/www/html/nextcloud/lib/private/Files/Stream/Encryption.php line 452
    OCA\Encryption\Crypto\Encryption->end()
21. <<closure>>
    OC\Files\Stream\Encryption->stream_close("*** sensitive parameters replaced ***")
22. /var/www/html/nextcloud/3rdparty/icewind/streams/src/Wrapper.php line 96
    fclose("*** sensitive parameters replaced ***")
23. /var/www/html/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php line 117
    Icewind\Streams\Wrapper->stream_close("*** sensitive parameters replaced ***")
24. <<closure>>
    Icewind\Streams\CallbackWrapper->stream_close("*** sensitive parameters replaced ***")
25. /var/www/html/nextcloud/lib/private/Files/View.php line 649
    fclose("*** sensitive parameters replaced ***")
26. /var/www/html/nextcloud/lib/private/Files/Node/File.php line 73
    OC\Files\View->file_put_contents()
27. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 257
    OC\Files\Node\File->putContent()
28. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 248
    OC_Util::copyr()
29. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 216
    OC_Util::copyr()
30. /var/www/html/nextcloud/lib/private/User/Session.php line 558
    OC_Util::copySkeleton()
31. /var/www/html/nextcloud/lib/private/User/Session.php line 404
    OC\User\Session->prepareUserLogin()
32. /var/www/html/nextcloud/lib/private/Authentication/Login/CompleteLoginCommand.php line 39
    OC\User\Session->completeLogin("*** sensitive parameters replaced ***")
33. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\CompleteLoginCommand->process()
34. /var/www/html/nextcloud/lib/private/Authentication/Login/LoggedInCheckCommand.php line 60
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
35. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\LoggedInCheckCommand->process()
36. /var/www/html/nextcloud/lib/private/Authentication/Login/EmailLoginCommand.php line 68
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
37. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\EmailLoginCommand->process()
38. /var/www/html/nextcloud/lib/private/Authentication/Login/UidLoginCommand.php line 53
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
39. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\UidLoginCommand->process()
40. /var/www/html/nextcloud/lib/private/Authentication/Login/UserDisabledCheckCommand.php line 57
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
41. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\UserDisabledCheckCommand->process()
42. /var/www/html/nextcloud/lib/private/Authentication/Login/PreLoginHookCommand.php line 52
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
43. /var/www/html/nextcloud/lib/private/Authentication/Login/Chain.php line 107
    OC\Authentication\Login\PreLoginHookCommand->process()
44. /var/www/html/nextcloud/core/Controller/LoginController.php line 326
    OC\Authentication\Login\Chain->process()
45. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OC\Core\Controller\LoginController->tryLogin("*** sensitive parameters replaced ***")
46. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
47. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
48. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
49. /var/www/html/nextcloud/lib/base.php line 1071
    OC\Route\Router->match()
50. /var/www/html/nextcloud/index.php line 36
    OC::handleRequest()

Caused by:

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php line 101
    PDOStatement->execute()
 1. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1045
    Doctrine\DBAL\Driver\PDO\Statement->execute()
 2. /var/www/html/nextcloud/lib/private/DB/Connection.php line 262
    Doctrine\DBAL\Connection->executeQuery()
 3. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 345
    OC\DB\Connection->executeQuery()
 4. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 5. /var/www/html/nextcloud/lib/private/Files/Cache/Cache.php line 168
    OC\DB\QueryBuilder\QueryBuilder->execute()
 6. /var/www/html/nextcloud/lib/private/Files/Cache/HomeCache.php line 57
    OC\Files\Cache\Cache->get()
 7. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 93
    OC\Files\Cache\HomeCache->get()
 8. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 115
    OC\Files\Storage\Wrapper\Quota->getSize()
 9. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 253
    OC\Files\Storage\Wrapper\Quota->free_space()
10. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Quota->mkdir()
11. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
12. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
13. /var/www/html/nextcloud/lib/private/Files/View.php line 1143
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
14. /var/www/html/nextcloud/lib/private/Files/View.php line 243
    OC\Files\View->basicOperation()
15. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 483
    OC\Files\View->mkdir()
16. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 336
    OC\Encryption\Keys\Storage->keySetPreparation()
17. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 139
    OC\Encryption\Keys\Storage->setKey()
18. /var/www/html/nextcloud/apps/encryption/lib/KeyManager.php line 381
    OC\Encryption\Keys\Storage->setFileKey()
19. /var/www/html/nextcloud/apps/encryption/lib/Crypto/Encryption.php line 319
    OCA\Encryption\KeyManager->setShareKey()
20. /var/www/html/nextcloud/lib/private/Files/Stream/Encryption.php line 452
    OCA\Encryption\Crypto\Encryption->end()
21. <<closure>>
    OC\Files\Stream\Encryption->stream_close("*** sensitive parameters replaced ***")
22. /var/www/html/nextcloud/3rdparty/icewind/streams/src/Wrapper.php line 96
    fclose("*** sensitive parameters replaced ***")
23. /var/www/html/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php line 117
    Icewind\Streams\Wrapper->stream_close("*** sensitive parameters replaced ***")
24. <<closure>>
    Icewind\Streams\CallbackWrapper->stream_close("*** sensitive parameters replaced ***")
25. /var/www/html/nextcloud/lib/private/Files/View.php line 649
    fclose("*** sensitive parameters replaced ***")
26. /var/www/html/nextcloud/lib/private/Files/Node/File.php line 73
    OC\Files\View->file_put_contents()
27. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 257
    OC\Files\Node\File->putContent()
28. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 248
    OC_Util::copyr()
29. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 216
    OC_Util::copyr()
30. /var/www/html/nextcloud/lib/private/User/Session.php line 558
    OC_Util::copySkeleton()
31. /var/www/html/nextcloud/lib/private/User/Session.php line 404
    OC\User\Session->prepareUserLogin()
32. /var/www/html/nextcloud/lib/private/Authentication/Login/CompleteLoginCommand.php line 39
    OC\User\Session->completeLogin("*** sensitive parameters replaced ***")
33. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\CompleteLoginCommand->process()
34. /var/www/html/nextcloud/lib/private/Authentication/Login/LoggedInCheckCommand.php line 60
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
35. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\LoggedInCheckCommand->process()
36. /var/www/html/nextcloud/lib/private/Authentication/Login/EmailLoginCommand.php line 68
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
37. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\EmailLoginCommand->process()
38. /var/www/html/nextcloud/lib/private/Authentication/Login/UidLoginCommand.php line 53
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
39. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\UidLoginCommand->process()
40. /var/www/html/nextcloud/lib/private/Authentication/Login/UserDisabledCheckCommand.php line 57
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
41. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\UserDisabledCheckCommand->process()
42. /var/www/html/nextcloud/lib/private/Authentication/Login/PreLoginHookCommand.php line 52
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
43. /var/www/html/nextcloud/lib/private/Authentication/Login/Chain.php line 107
    OC\Authentication\Login\PreLoginHookCommand->process()
44. /var/www/html/nextcloud/core/Controller/LoginController.php line 326
    OC\Authentication\Login\Chain->process()
45. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OC\Core\Controller\LoginController->tryLogin("*** sensitive parameters replaced ***")
46. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
47. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
48. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
49. /var/www/html/nextcloud/lib/base.php line 1071
    OC\Route\Router->match()
50. /var/www/html/nextcloud/index.php line 36
    OC::handleRequest()

[index] Error: Doctrine\DBAL\Exception\ConnectionLost: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1814
    Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert()
 1. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1749
    Doctrine\DBAL\Connection->handleDriverException()
 2. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1055
    Doctrine\DBAL\Connection->convertExceptionDuringQuery()
 3. /var/www/html/nextcloud/lib/private/DB/Connection.php line 262
    Doctrine\DBAL\Connection->executeQuery()
 4. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 345
    OC\DB\Connection->executeQuery()
 5. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 6. /var/www/html/nextcloud/lib/private/Files/Cache/Cache.php line 168
    OC\DB\QueryBuilder\QueryBuilder->execute()
 7. /var/www/html/nextcloud/lib/private/Files/Cache/HomeCache.php line 57
    OC\Files\Cache\Cache->get()
 8. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 93
    OC\Files\Cache\HomeCache->get()
 9. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 115
    OC\Files\Storage\Wrapper\Quota->getSize()
10. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 253
    OC\Files\Storage\Wrapper\Quota->free_space()
11. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Quota->mkdir()
12. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
13. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
14. /var/www/html/nextcloud/lib/private/Files/View.php line 1143
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
15. /var/www/html/nextcloud/lib/private/Files/View.php line 243
    OC\Files\View->basicOperation()
16. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 483
    OC\Files\View->mkdir()
17. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 336
    OC\Encryption\Keys\Storage->keySetPreparation()
18. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 139
    OC\Encryption\Keys\Storage->setKey()
19. /var/www/html/nextcloud/apps/encryption/lib/KeyManager.php line 381
    OC\Encryption\Keys\Storage->setFileKey()
20. /var/www/html/nextcloud/apps/encryption/lib/Crypto/Encryption.php line 319
    OCA\Encryption\KeyManager->setShareKey()
21. /var/www/html/nextcloud/lib/private/Files/Stream/Encryption.php line 452
    OCA\Encryption\Crypto\Encryption->end()
22. <<closure>>
    OC\Files\Stream\Encryption->stream_close("*** sensitive parameters replaced ***")
23. /var/www/html/nextcloud/3rdparty/icewind/streams/src/Wrapper.php line 96
    fclose("*** sensitive parameters replaced ***")
24. /var/www/html/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php line 117
    Icewind\Streams\Wrapper->stream_close("*** sensitive parameters replaced ***")
25. <<closure>>
    Icewind\Streams\CallbackWrapper->stream_close("*** sensitive parameters replaced ***")
26. /var/www/html/nextcloud/lib/private/Files/View.php line 649
    fclose("*** sensitive parameters replaced ***")
27. /var/www/html/nextcloud/lib/private/Files/Node/File.php line 73
    OC\Files\View->file_put_contents()
28. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 257
    OC\Files\Node\File->putContent()
29. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 248
    OC_Util::copyr()
30. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 216
    OC_Util::copyr()
31. /var/www/html/nextcloud/lib/private/User/Session.php line 558
    OC_Util::copySkeleton()
32. /var/www/html/nextcloud/lib/private/User/Session.php line 404
    OC\User\Session->prepareUserLogin()
33. /var/www/html/nextcloud/lib/private/Authentication/Login/CompleteLoginCommand.php line 39
    OC\User\Session->completeLogin("*** sensitive parameters replaced ***")
34. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\CompleteLoginCommand->process()
35. /var/www/html/nextcloud/lib/private/Authentication/Login/LoggedInCheckCommand.php line 60
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
36. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\LoggedInCheckCommand->process()
37. /var/www/html/nextcloud/lib/private/Authentication/Login/EmailLoginCommand.php line 68
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
38. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\EmailLoginCommand->process()
39. /var/www/html/nextcloud/lib/private/Authentication/Login/UidLoginCommand.php line 53
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
40. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\UidLoginCommand->process()
41. /var/www/html/nextcloud/lib/private/Authentication/Login/UserDisabledCheckCommand.php line 57
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
42. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\UserDisabledCheckCommand->process()
43. /var/www/html/nextcloud/lib/private/Authentication/Login/PreLoginHookCommand.php line 52
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
44. /var/www/html/nextcloud/lib/private/Authentication/Login/Chain.php line 107
    OC\Authentication\Login\PreLoginHookCommand->process()
45. /var/www/html/nextcloud/core/Controller/LoginController.php line 326
    OC\Authentication\Login\Chain->process()
46. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OC\Core\Controller\LoginController->tryLogin("*** sensitive parameters replaced ***")
47. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
48. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
49. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
50. /var/www/html/nextcloud/lib/base.php line 1071
    OC\Route\Router->match()
51. /var/www/html/nextcloud/index.php line 36
    OC::handleRequest()

Caused by:

Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php line 103
    Doctrine\DBAL\Driver\PDO\Exception::new()
 1. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1045
    Doctrine\DBAL\Driver\PDO\Statement->execute()
 2. /var/www/html/nextcloud/lib/private/DB/Connection.php line 262
    Doctrine\DBAL\Connection->executeQuery()
 3. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 345
    OC\DB\Connection->executeQuery()
 4. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 5. /var/www/html/nextcloud/lib/private/Files/Cache/Cache.php line 168
    OC\DB\QueryBuilder\QueryBuilder->execute()
 6. /var/www/html/nextcloud/lib/private/Files/Cache/HomeCache.php line 57
    OC\Files\Cache\Cache->get()
 7. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 93
    OC\Files\Cache\HomeCache->get()
 8. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 115
    OC\Files\Storage\Wrapper\Quota->getSize()
 9. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 253
    OC\Files\Storage\Wrapper\Quota->free_space()
10. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Quota->mkdir()
11. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
12. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
13. /var/www/html/nextcloud/lib/private/Files/View.php line 1143
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
14. /var/www/html/nextcloud/lib/private/Files/View.php line 243
    OC\Files\View->basicOperation()
15. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 483
    OC\Files\View->mkdir()
16. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 336
    OC\Encryption\Keys\Storage->keySetPreparation()
17. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 139
    OC\Encryption\Keys\Storage->setKey()
18. /var/www/html/nextcloud/apps/encryption/lib/KeyManager.php line 381
    OC\Encryption\Keys\Storage->setFileKey()
19. /var/www/html/nextcloud/apps/encryption/lib/Crypto/Encryption.php line 319
    OCA\Encryption\KeyManager->setShareKey()
20. /var/www/html/nextcloud/lib/private/Files/Stream/Encryption.php line 452
    OCA\Encryption\Crypto\Encryption->end()
21. <<closure>>
    OC\Files\Stream\Encryption->stream_close("*** sensitive parameters replaced ***")
22. /var/www/html/nextcloud/3rdparty/icewind/streams/src/Wrapper.php line 96
    fclose("*** sensitive parameters replaced ***")
23. /var/www/html/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php line 117
    Icewind\Streams\Wrapper->stream_close("*** sensitive parameters replaced ***")
24. <<closure>>
    Icewind\Streams\CallbackWrapper->stream_close("*** sensitive parameters replaced ***")
25. /var/www/html/nextcloud/lib/private/Files/View.php line 649
    fclose("*** sensitive parameters replaced ***")
26. /var/www/html/nextcloud/lib/private/Files/Node/File.php line 73
    OC\Files\View->file_put_contents()
27. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 257
    OC\Files\Node\File->putContent()
28. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 248
    OC_Util::copyr()
29. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 216
    OC_Util::copyr()
30. /var/www/html/nextcloud/lib/private/User/Session.php line 558
    OC_Util::copySkeleton()
31. /var/www/html/nextcloud/lib/private/User/Session.php line 404
    OC\User\Session->prepareUserLogin()
32. /var/www/html/nextcloud/lib/private/Authentication/Login/CompleteLoginCommand.php line 39
    OC\User\Session->completeLogin("*** sensitive parameters replaced ***")
33. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\CompleteLoginCommand->process()
34. /var/www/html/nextcloud/lib/private/Authentication/Login/LoggedInCheckCommand.php line 60
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
35. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\LoggedInCheckCommand->process()
36. /var/www/html/nextcloud/lib/private/Authentication/Login/EmailLoginCommand.php line 68
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
37. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\EmailLoginCommand->process()
38. /var/www/html/nextcloud/lib/private/Authentication/Login/UidLoginCommand.php line 53
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
39. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\UidLoginCommand->process()
40. /var/www/html/nextcloud/lib/private/Authentication/Login/UserDisabledCheckCommand.php line 57
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
41. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\UserDisabledCheckCommand->process()
42. /var/www/html/nextcloud/lib/private/Authentication/Login/PreLoginHookCommand.php line 52
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
43. /var/www/html/nextcloud/lib/private/Authentication/Login/Chain.php line 107
    OC\Authentication\Login\PreLoginHookCommand->process()
44. /var/www/html/nextcloud/core/Controller/LoginController.php line 326
    OC\Authentication\Login\Chain->process()
45. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OC\Core\Controller\LoginController->tryLogin("*** sensitive parameters replaced ***")
46. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
47. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
48. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
49. /var/www/html/nextcloud/lib/base.php line 1071
    OC\Route\Router->match()
50. /var/www/html/nextcloud/index.php line 36
    OC::handleRequest()

Caused by:

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php line 101
    PDOStatement->execute()
 1. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1045
    Doctrine\DBAL\Driver\PDO\Statement->execute()
 2. /var/www/html/nextcloud/lib/private/DB/Connection.php line 262
    Doctrine\DBAL\Connection->executeQuery()
 3. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 345
    OC\DB\Connection->executeQuery()
 4. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 5. /var/www/html/nextcloud/lib/private/Files/Cache/Cache.php line 168
    OC\DB\QueryBuilder\QueryBuilder->execute()
 6. /var/www/html/nextcloud/lib/private/Files/Cache/HomeCache.php line 57
    OC\Files\Cache\Cache->get()
 7. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 93
    OC\Files\Cache\HomeCache->get()
 8. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 115
    OC\Files\Storage\Wrapper\Quota->getSize()
 9. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php line 253
    OC\Files\Storage\Wrapper\Quota->free_space()
10. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Quota->mkdir()
11. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
12. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 84
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
13. /var/www/html/nextcloud/lib/private/Files/View.php line 1143
    OC\Files\Storage\Wrapper\Wrapper->mkdir()
14. /var/www/html/nextcloud/lib/private/Files/View.php line 243
    OC\Files\View->basicOperation()
15. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 483
    OC\Files\View->mkdir()
16. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 336
    OC\Encryption\Keys\Storage->keySetPreparation()
17. /var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php line 139
    OC\Encryption\Keys\Storage->setKey()
18. /var/www/html/nextcloud/apps/encryption/lib/KeyManager.php line 381
    OC\Encryption\Keys\Storage->setFileKey()
19. /var/www/html/nextcloud/apps/encryption/lib/Crypto/Encryption.php line 319
    OCA\Encryption\KeyManager->setShareKey()
20. /var/www/html/nextcloud/lib/private/Files/Stream/Encryption.php line 452
    OCA\Encryption\Crypto\Encryption->end()
21. <<closure>>
    OC\Files\Stream\Encryption->stream_close("*** sensitive parameters replaced ***")
22. /var/www/html/nextcloud/3rdparty/icewind/streams/src/Wrapper.php line 96
    fclose("*** sensitive parameters replaced ***")
23. /var/www/html/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php line 117
    Icewind\Streams\Wrapper->stream_close("*** sensitive parameters replaced ***")
24. <<closure>>
    Icewind\Streams\CallbackWrapper->stream_close("*** sensitive parameters replaced ***")
25. /var/www/html/nextcloud/lib/private/Files/View.php line 649
    fclose("*** sensitive parameters replaced ***")
26. /var/www/html/nextcloud/lib/private/Files/Node/File.php line 73
    OC\Files\View->file_put_contents()
27. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 257
    OC\Files\Node\File->putContent()
28. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 248
    OC_Util::copyr()
29. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 216
    OC_Util::copyr()
30. /var/www/html/nextcloud/lib/private/User/Session.php line 558
    OC_Util::copySkeleton()
31. /var/www/html/nextcloud/lib/private/User/Session.php line 404
    OC\User\Session->prepareUserLogin()
32. /var/www/html/nextcloud/lib/private/Authentication/Login/CompleteLoginCommand.php line 39
    OC\User\Session->completeLogin("*** sensitive parameters replaced ***")
33. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\CompleteLoginCommand->process()
34. /var/www/html/nextcloud/lib/private/Authentication/Login/LoggedInCheckCommand.php line 60
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
35. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\LoggedInCheckCommand->process()
36. /var/www/html/nextcloud/lib/private/Authentication/Login/EmailLoginCommand.php line 68
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
37. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\EmailLoginCommand->process()
38. /var/www/html/nextcloud/lib/private/Authentication/Login/UidLoginCommand.php line 53
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
39. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\UidLoginCommand->process()
40. /var/www/html/nextcloud/lib/private/Authentication/Login/UserDisabledCheckCommand.php line 57
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
41. /var/www/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php line 39
    OC\Authentication\Login\UserDisabledCheckCommand->process()
42. /var/www/html/nextcloud/lib/private/Authentication/Login/PreLoginHookCommand.php line 52
    OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully()
43. /var/www/html/nextcloud/lib/private/Authentication/Login/Chain.php line 107
    OC\Authentication\Login\PreLoginHookCommand->process()
44. /var/www/html/nextcloud/core/Controller/LoginController.php line 326
    OC\Authentication\Login\Chain->process()
45. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OC\Core\Controller\LoginController->tryLogin("*** sensitive parameters replaced ***")
46. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
47. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
48. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
49. /var/www/html/nextcloud/lib/base.php line 1071
    OC\Route\Router->match()
50. /var/www/html/nextcloud/index.php line 36
    OC::handleRequest()

[cron] Error: Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory at <<closure>>

0. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1531
   OC\DB\Connection->connect()
1. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 813
   Doctrine\DBAL\Connection->getWrappedConnection()
2. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/Expression/ExpressionBuilder.php line 323
   Doctrine\DBAL\Connection->quote()
3. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php line 422
   Doctrine\DBAL\Query\Expression\ExpressionBuilder->literal()
4. /var/www/html/nextcloud/lib/private/BackgroundJob/JobList.php line 358
   OC\DB\QueryBuilder\ExpressionBuilder\ExpressionBuilder->literal()
5. /var/www/html/nextcloud/lib/private/BackgroundJob/JobList.php line 348
   OC\BackgroundJob\JobList->unlockJob()
6. /var/www/html/nextcloud/cron.php line 158
   OC\BackgroundJob\JobList->setLastJob()

at 2023-08-19T00:25:33+00:00

[core] Error: OC\DB\Exceptions\DbalException: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory at <<closure>>

0. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 328
   OC\DB\Exceptions\DbalException::wrap()
1. /var/www/html/nextcloud/lib/private/BackgroundJob/JobList.php line 388
   OC\DB\QueryBuilder\QueryBuilder->executeStatement()
2. /var/www/html/nextcloud/lib/public/BackgroundJob/Job.php line 85
   OC\BackgroundJob\JobList->setExecutionTime()
3. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 103
   OCP\BackgroundJob\Job->start()
4. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 93
   OCP\BackgroundJob\TimedJob->start()
5. /var/www/html/nextcloud/cron.php line 152
   OCP\BackgroundJob\TimedJob->execute()

Caused by:

Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1531
    OC\DB\Connection->connect()
 1. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1135
    Doctrine\DBAL\Connection->getWrappedConnection()
 2. /var/www/html/nextcloud/lib/private/DB/Connection.php line 295
    Doctrine\DBAL\Connection->executeStatement()
 3. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 354
    OC\DB\Connection->executeStatement()
 4. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 5. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 326
    OC\DB\QueryBuilder\QueryBuilder->execute()
 6. /var/www/html/nextcloud/lib/private/BackgroundJob/JobList.php line 388
    OC\DB\QueryBuilder\QueryBuilder->executeStatement()
 7. /var/www/html/nextcloud/lib/public/BackgroundJob/Job.php line 85
    OC\BackgroundJob\JobList->setExecutionTime()
 8. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 103
    OCP\BackgroundJob\Job->start()
 9. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 93
    OCP\BackgroundJob\TimedJob->start()
10. /var/www/html/nextcloud/cron.php line 152
    OCP\BackgroundJob\TimedJob->execute()

at 2023-08-19T00:25:33+00:00

[files_antivirus] Error: Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1531
    OC\DB\Connection->connect()
 1. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1029
    Doctrine\DBAL\Connection->getWrappedConnection()
 2. /var/www/html/nextcloud/lib/private/DB/Connection.php line 262
    Doctrine\DBAL\Connection->executeQuery()
 3. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 345
    OC\DB\Connection->executeQuery()
 4. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 5. /var/www/html/nextcloud/lib/private/Files/Config/UserMountCache.php line 319
    OC\DB\QueryBuilder\QueryBuilder->execute()
 6. /var/www/html/nextcloud/lib/private/Files/Config/UserMountCache.php line 344
    OC\Files\Config\UserMountCache->getCacheInfoFromFileId()
 7. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 158
    OC\Files\Config\UserMountCache->getMountsForFileId()
 8. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 142
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->getNodeForFile()
 9. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 129
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->processFiles()
10. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 80
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scan()
11. /var/www/html/nextcloud/lib/public/BackgroundJob/Job.php line 81
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->run()
12. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 103
    OCP\BackgroundJob\Job->start()
13. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 93
    OCP\BackgroundJob\TimedJob->start()
14. /var/www/html/nextcloud/cron.php line 152
    OCP\BackgroundJob\TimedJob->execute()

at 2023-08-19T00:25:33+00:00

[files_antivirus] Error: OC\DB\Exceptions\DbalException: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at <<closure>>

 0. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 295
    OC\DB\Exceptions\DbalException::wrap()
 1. /var/www/html/nextcloud/lib/public/AppFramework/Db/QBMapper.php line 335
    OC\DB\QueryBuilder\QueryBuilder->executeQuery()
 2. /var/www/html/nextcloud/apps/files_antivirus/lib/Db/RuleMapper.php line 70
    OCP\AppFramework\Db\QBMapper->findEntities()
 3. /var/www/html/nextcloud/apps/files_antivirus/lib/Status.php line 115
    OCA\Files_Antivirus\Db\RuleMapper->findByResult()
 4. /var/www/html/nextcloud/apps/files_antivirus/lib/Scanner/LocalClam.php line 78
    OCA\Files_Antivirus\Status->parseResponse()
 5. /var/www/html/nextcloud/apps/files_antivirus/lib/Scanner/ScannerBase.php line 98
    OCA\Files_Antivirus\Scanner\LocalClam->shutdownScanner()
 6. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 273
    OCA\Files_Antivirus\Scanner\ScannerBase->scan()
 7. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 144
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scanOneFile()
 8. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 129
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->processFiles()
 9. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 80
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scan()
10. /var/www/html/nextcloud/lib/public/BackgroundJob/Job.php line 81
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->run()
11. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 103
    OCP\BackgroundJob\Job->start()
12. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 93
    OCP\BackgroundJob\TimedJob->start()
13. /var/www/html/nextcloud/cron.php line 152
    OCP\BackgroundJob\TimedJob->execute()

Caused by:

Doctrine\DBAL\Exception\ConnectionLost: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1814
    Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert()
 1. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1749
    Doctrine\DBAL\Connection->handleDriverException()
 2. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1055
    Doctrine\DBAL\Connection->convertExceptionDuringQuery()
 3. /var/www/html/nextcloud/lib/private/DB/Connection.php line 262
    Doctrine\DBAL\Connection->executeQuery()
 4. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 345
    OC\DB\Connection->executeQuery()
 5. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 6. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 293
    OC\DB\QueryBuilder\QueryBuilder->execute()
 7. /var/www/html/nextcloud/lib/public/AppFramework/Db/QBMapper.php line 335
    OC\DB\QueryBuilder\QueryBuilder->executeQuery()
 8. /var/www/html/nextcloud/apps/files_antivirus/lib/Db/RuleMapper.php line 70
    OCP\AppFramework\Db\QBMapper->findEntities()
 9. /var/www/html/nextcloud/apps/files_antivirus/lib/Status.php line 115
    OCA\Files_Antivirus\Db\RuleMapper->findByResult()
10. /var/www/html/nextcloud/apps/files_antivirus/lib/Scanner/LocalClam.php line 78
    OCA\Files_Antivirus\Status->parseResponse()
11. /var/www/html/nextcloud/apps/files_antivirus/lib/Scanner/ScannerBase.php line 98
    OCA\Files_Antivirus\Scanner\LocalClam->shutdownScanner()
12. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 273
    OCA\Files_Antivirus\Scanner\ScannerBase->scan()
13. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 144
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scanOneFile()
14. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 129
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->processFiles()
15. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 80
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scan()
16. /var/www/html/nextcloud/lib/public/BackgroundJob/Job.php line 81
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->run()
17. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 103
    OCP\BackgroundJob\Job->start()
18. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 93
    OCP\BackgroundJob\TimedJob->start()
19. /var/www/html/nextcloud/cron.php line 152
    OCP\BackgroundJob\TimedJob->execute()

Caused by:

Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php line 103
    Doctrine\DBAL\Driver\PDO\Exception::new()
 1. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1045
    Doctrine\DBAL\Driver\PDO\Statement->execute()
 2. /var/www/html/nextcloud/lib/private/DB/Connection.php line 262
    Doctrine\DBAL\Connection->executeQuery()
 3. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 345
    OC\DB\Connection->executeQuery()
 4. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 5. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 293
    OC\DB\QueryBuilder\QueryBuilder->execute()
 6. /var/www/html/nextcloud/lib/public/AppFramework/Db/QBMapper.php line 335
    OC\DB\QueryBuilder\QueryBuilder->executeQuery()
 7. /var/www/html/nextcloud/apps/files_antivirus/lib/Db/RuleMapper.php line 70
    OCP\AppFramework\Db\QBMapper->findEntities()
 8. /var/www/html/nextcloud/apps/files_antivirus/lib/Status.php line 115
    OCA\Files_Antivirus\Db\RuleMapper->findByResult()
 9. /var/www/html/nextcloud/apps/files_antivirus/lib/Scanner/LocalClam.php line 78
    OCA\Files_Antivirus\Status->parseResponse()
10. /var/www/html/nextcloud/apps/files_antivirus/lib/Scanner/ScannerBase.php line 98
    OCA\Files_Antivirus\Scanner\LocalClam->shutdownScanner()
11. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 273
    OCA\Files_Antivirus\Scanner\ScannerBase->scan()
12. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 144
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scanOneFile()
13. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 129
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->processFiles()
14. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 80
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scan()
15. /var/www/html/nextcloud/lib/public/BackgroundJob/Job.php line 81
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->run()
16. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 103
    OCP\BackgroundJob\Job->start()
17. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 93
    OCP\BackgroundJob\TimedJob->start()
18. /var/www/html/nextcloud/cron.php line 152
    OCP\BackgroundJob\TimedJob->execute()

Caused by:

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php line 101
    PDOStatement->execute()
 1. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1045
    Doctrine\DBAL\Driver\PDO\Statement->execute()
 2. /var/www/html/nextcloud/lib/private/DB/Connection.php line 262
    Doctrine\DBAL\Connection->executeQuery()
 3. /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 345
    OC\DB\Connection->executeQuery()
 4. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 5. /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 293
    OC\DB\QueryBuilder\QueryBuilder->execute()
 6. /var/www/html/nextcloud/lib/public/AppFramework/Db/QBMapper.php line 335
    OC\DB\QueryBuilder\QueryBuilder->executeQuery()
 7. /var/www/html/nextcloud/apps/files_antivirus/lib/Db/RuleMapper.php line 70
    OCP\AppFramework\Db\QBMapper->findEntities()
 8. /var/www/html/nextcloud/apps/files_antivirus/lib/Status.php line 115
    OCA\Files_Antivirus\Db\RuleMapper->findByResult()
 9. /var/www/html/nextcloud/apps/files_antivirus/lib/Scanner/LocalClam.php line 78
    OCA\Files_Antivirus\Status->parseResponse()
10. /var/www/html/nextcloud/apps/files_antivirus/lib/Scanner/ScannerBase.php line 98
    OCA\Files_Antivirus\Scanner\LocalClam->shutdownScanner()
11. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 273
    OCA\Files_Antivirus\Scanner\ScannerBase->scan()
12. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 144
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scanOneFile()
13. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 129
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->processFiles()
14. /var/www/html/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 80
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scan()
15. /var/www/html/nextcloud/lib/public/BackgroundJob/Job.php line 81
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->run()
16. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 103
    OCP\BackgroundJob\Job->start()
17. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 93
    OCP\BackgroundJob\TimedJob->start()
18. /var/www/html/nextcloud/cron.php line 152
    OCP\BackgroundJob\TimedJob->execute()

at 2023-08-19T00:25:33+00:00

should be:

bind 127.0.0.1 ::1

I use:
stop-writes-on-bgsave-error no

But that is all not that important, you can tweek later. The most important question is: how do you start your redis-server?

Normaly it should be started by systemd. I’m assuming you don’t want to start the server manually every time.

So you have to set

supervised systemd

in order to start the server with

systemctl start redis-server

Since I’m using older Redis versions, it could of course be that some things have changed. please forgive me in advance

I hope that helps,
much luck!

Good morning,

I noticed that you have a typo in this line. Since I assume that you simply copied the file here 1 to 1, this could be the cause:

Just try

‘memcache.locking’

Many Greetings!

looks like
bind 127.0.0.1 -::1
is accurate. The ‘-’ sign before the ipv6 loopback address just means redis wont fault out if that address cant be reached. Its mentioned in commented out parts of the redis.conf

ill look into this later

Redis-server was starting at boot, debian documents say this gets all setup when you install the package. I didnt have to manually start it or interact with it after installation to get it to run.

This looks like just a font quirk. There is no space in the way either are typed out.

On another note, I set redis back up to run on port 6379 on localhost

  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\OC\Memcache\Redis',
  'filelocking.enabled' => 'true',
  'memcahce.locking' => '\OC\Memcache\Redis',
  'redis' =>  
      array(
      'host' => 'localhost',
      'port' => 6379,
      ),

Then I ran

redis-cli monitor

and got a clear sign of life that redis was interfacing with nextcloud as I was clicking around various pages in my nextcloud instance. So at least in port mode it does work. But I still am getting the error on the admin screen

Blockquote
The database is used for transactional file locking. To enhance performance, please configure memcache

I wonder if maybe the problem is with apcu not running right. I guess depending on how you interpret the warning it could be saying that the memcache isnt enabled but file locking is? idk, I noticed error when no file locking was enabled at all. This just popped up in a recent nextcloud upgrade.

I found another post with a method to monitor redis output when using a unix socket

user# redis-cli -s /run/redis/redis-server.sock
redis /run/redis/redis-server.sock> monitor
OK
1692539533.045067 [0 unix:/run/redis/redis-server.sock] "GET" "cadbffde9422edd4fb888ae0d9af588d/user_backend_mapf2568d836f64f71adbb84770512344fa8a985fe8"
1692539533.046081 [0 unix:/run/redis/redis-server.sock] "SETEX" "cadbffde9422edd4fb888ae0d9af588d/user_backend_mapf2568d836f64f71adbb84770512344fa8a985fe8" "300" "0"
1692539533.052417 [0 unix:/run/redis/redis-server.sock] "GET" "cadbffde9422edd4fb888ae0d9af588d/user_backend_mapCloud"
1692539533.532078 [0 unix:/run/redis/redis-server.sock] "GET" "cadbffde9422edd4fb888ae0d9af588d/user_backend_map095dddc3c7bce11a711612b37f9cc53df2e12a21"
1692539533.533966 [0 unix:/run/redis/redis-server.sock] "GET" "cadbffde9422edd4fb888ae0d9af588d/flowevents"
1692539533.534768 [0 unix:/run/redis/redis-server.sock] "GET" "cadbffde9422edd4fb888ae0d9af588d/user_backend_map095dddc3c7bce11a711612b37f9cc53df2e12a21

So redis does work in either mode. The error I am getting must either be bugged or means something completely different than the way I am reading it.

Re-look at the response from @SchVinzenz:

 'memcahce.locking' => '\OC\Memcache\Redis',

needs to be:

 'memcache.locking' => '\OC\Memcache\Redis',

memcaChe :wink:

solved, I am dumb

1 Like

No worry (-;
Be happy that it works!

1 Like

I have a new nextcloud instance in the cloud, I setup with the help of learnlinuxtv. All is working but I am also getting that error…

  • The database is used for transactional file locking. To enhance performance, please configure memcache, if available. For more details see the documentation :arrow_upper_right:.

All the solutions I see reference Redis, I set mine up using mariadb. So I guess my questions is can I add redis to resolve that error, will they work together (mariadb, redis)? Setup seems to be running find, its probably just my OCD that wants that error to go away…

Hope everyone is well

Rick