VMWARE 6.7
Virtual Machine: 16core, 32 GB memory, ssd /(speed ~2000MB/s), raid 6 /mnt/ncdata (speed ~700MB/s)
extcloud version (19.0.1):
Operating system and version (Ubuntu 20.04):
Apache or nginx version ( Apache 2.4.25):
PHP version (PHP-FPM 7.4):
PostgreSQL 12 (DB 2GB)
PHP-FPM 7.4
- Redis Memcache (latest stable version from PECL)
- APCu local cache (latest stable version from PECL)
- PHP-igbinary (latest stable version from PECL
- PHP-smbclient (latest stable version from PECL)
The installation was performed using an official script https://github.com/nextcloud/vm
The issue you are facing:
Terribly slow web interface, loads more than 5 seconds, even the “settings” are loaded very slowly.
Steps to replicate it:
- installed it, created users and shared folders…
The output of your Nextcloud log in Admin > Logging:
PASTE HERE
Error cron Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'UPDATE "oc_jobs" SET "reserved_at" = '0' WHERE "id" = ?' with params [5]: SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php - line 169:
Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php - line 145:
Doctrine\DBAL\DBALException::wrapException()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php - line 1063:
Doctrine\DBAL\DBALException::driverExceptionDuringQuery()
/var/www/nextcloud/lib/private/DB/Connection.php - line 214:
Doctrine\DBAL\Connection->executeUpdate()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php - line 203:
OC\DB\Connection->executeUpdate()
/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php - line 216:
Doctrine\DBAL\Query\QueryBuilder->execute()
/var/www/nextcloud/lib/private/BackgroundJob/JobList.php - line 310:
OC\DB\QueryBuilder\QueryBuilder->execute()
/var/www/nextcloud/lib/private/BackgroundJob/JobList.php - line 295:
OC\BackgroundJob\JobList->unlockJob()
/var/www/nextcloud/cron.php - line 130:
OC\BackgroundJob\JobList->setLastJob()
По причинеDoctrine\DBAL\Driver\PDOException: SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php - line 1054:
Doctrine\DBAL\Driver\PDOStatement->execute()
/var/www/nextcloud/lib/private/DB/Connection.php - line 214:
Doctrine\DBAL\Connection->executeUpdate()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php - line 203:
OC\DB\Connection->executeUpdate()
/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php - line 216:
Doctrine\DBAL\Query\QueryBuilder->execute()
/var/www/nextcloud/lib/private/BackgroundJob/JobList.php - line 310:
OC\DB\QueryBuilder\QueryBuilder->execute()
/var/www/nextcloud/lib/private/BackgroundJob/JobList.php - line 295:
OC\BackgroundJob\JobList->unlockJob()
/var/www/nextcloud/cron.php - line 130:
OC\BackgroundJob\JobList->setLastJob()
По причинеPDOException: SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php - line 117:
PDOStatement->execute()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php - line 1054:
Doctrine\DBAL\Driver\PDOStatement->execute()
/var/www/nextcloud/lib/private/DB/Connection.php - line 214:
Doctrine\DBAL\Connection->executeUpdate()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php - line 203:
OC\DB\Connection->executeUpdate()
/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php - line 216:
Doctrine\DBAL\Query\QueryBuilder->execute()
/var/www/nextcloud/lib/private/BackgroundJob/JobList.php - line 310:
OC\DB\QueryBuilder\QueryBuilder->execute()
/var/www/nextcloud/lib/private/BackgroundJob/JobList.php - line 295:
OC\BackgroundJob\JobList->unlockJob()
/var/www/nextcloud/cron.php - line 130:
OC\BackgroundJob\JobList->setLastJob()
The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'UPDATE "oc_jobs" SET "execution_duration" = ? WHERE "id" = ?' with params [8, 5]: SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php - line 169:
Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php - line 145:
Doctrine\DBAL\DBALException::wrapException()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php - line 1063:
Doctrine\DBAL\DBALException::driverExceptionDuringQuery()
/var/www/nextcloud/lib/private/DB/Connection.php - line 214:
Doctrine\DBAL\Connection->executeUpdate()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php - line 203:
OC\DB\Connection->executeUpdate()
/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php - line 216:
Doctrine\DBAL\Query\QueryBuilder->execute()
/var/www/nextcloud/lib/private/BackgroundJob/JobList.php - line 347:
OC\DB\QueryBuilder\QueryBuilder->execute()
/var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 66:
OC\BackgroundJob\JobList->setExecutionTime()
/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 57:
OC\BackgroundJob\Job->execute()
/var/www/nextcloud/cron.php - line 126:
OC\BackgroundJob\TimedJob->execute()
По причинеDoctrine\DBAL\Driver\PDOException: SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php - line 1054:
Doctrine\DBAL\Driver\PDOStatement->execute()
/var/www/nextcloud/lib/private/DB/Connection.php - line 214:
Doctrine\DBAL\Connection->executeUpdate()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php - line 203:
OC\DB\Connection->executeUpdate()
/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php - line 216:
Doctrine\DBAL\Query\QueryBuilder->execute()
/var/www/nextcloud/lib/private/BackgroundJob/JobList.php - line 347:
OC\DB\QueryBuilder\QueryBuilder->execute()
/var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 66:
OC\BackgroundJob\JobList->setExecutionTime()
/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 57:
OC\BackgroundJob\Job->execute()
/var/www/nextcloud/cron.php - line 126:
OC\BackgroundJob\TimedJob->execute()
Error files Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'SELECT "id", "numeric_id", "available", "last_checked" FROM "oc_storages" WHERE "id" = ?' with params ["home::zhilkind"]: SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php - line 169:
Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php - line 145:
Doctrine\DBAL\DBALException::wrapException()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php - line 911:
Doctrine\DBAL\DBALException::driverExceptionDuringQuery()
/var/www/nextcloud/lib/private/DB/Connection.php - line 194:
Doctrine\DBAL\Connection->executeQuery()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php - line 200:
OC\DB\Connection->executeQuery()
/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php - line 216:
Doctrine\DBAL\Query\QueryBuilder->execute()
/var/www/nextcloud/lib/private/Files/Cache/StorageGlobal.php - line 77:
OC\DB\QueryBuilder\QueryBuilder->execute()
/var/www/nextcloud/lib/private/Files/Cache/Storage.php - line 97:
OC\Files\Cache\StorageGlobal->getStorageInfo()
/var/www/nextcloud/lib/private/Files/Cache/Storage.php - line 75:
OC\Files\Cache\Storage::getStorageById()
/var/www/nextcloud/lib/private/Files/Cache/Cache.php - line 109:
OC\Files\Cache\Storage->__construct()
/var/www/nextcloud/lib/private/Files/Storage/Home.php - line 71:
OC\Files\Cache\Cache->__construct()
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 394:
OC\Files\Storage\Home->getCache()
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 394:
OC\Files\Storage\Wrapper\Wrapper->getCache()
/var/www/nextcloud/lib/private/Files/Mount/MountPoint.php - line 272:
OC\Files\Storage\Wrapper\Wrapper->getCache()
/var/www/nextcloud/lib/private/Files/Filesystem.php - line 440:
OC\Files\Mount\MountPoint->getStorageRootId()
/var/www/nextcloud/lib/private/Files/Filesystem.php - line 376:
OC\Files\Filesystem::initMountPoints()
/var/www/nextcloud/lib/private/legacy/OC_Util.php - line 308:
OC\Files\Filesystem::init()
/var/www/nextcloud/lib/private/Files/Utils/Scanner.php - line 116:
OC_Util::setupFS()
/var/www/nextcloud/lib/private/Files/Utils/Scanner.php - line 155:
OC\Files\Utils\Scanner->getMounts()
/var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php - line 83:
OC\Files\Utils\Scanner->backgroundScan()
/var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php - line 111:
OCA\Files\BackgroundJob\ScanFiles->runScanner()
/var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 62:
OCA\Files\BackgroundJob\ScanFiles->run()
/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 57:
OC\BackgroundJob\Job->execute()
/var/www/nextcloud/cron.php - line 126:
OC\BackgroundJob\TimedJob->execute()
По причинеDoctrine\DBAL\Driver\PDOException: SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php - line 903:
Doctrine\DBAL\Driver\PDOStatement->execute()
/var/www/nextcloud/lib/private/DB/Connection.php - line 194:
Doctrine\DBAL\Connection->executeQuery()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php - line 200:
OC\DB\Connection->executeQuery()
/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php - line 216:
Doctrine\DBAL\Query\QueryBuilder->execute()
/var/www/nextcloud/lib/private/Files/Cache/StorageGlobal.php - line 77:
OC\DB\QueryBuilder\QueryBuilder->execute()
/var/www/nextcloud/lib/private/Files/Cache/Storage.php - line 97:
OC\Files\Cache\StorageGlobal->getStorageInfo()
/var/www/nextcloud/lib/private/Files/Cache/Storage.php - line 75:
OC\Files\Cache\Storage::getStorageById()
/var/www/nextcloud/lib/private/Files/Cache/Cache.php - line 109:
OC\Files\Cache\Storage->__construct()
/var/www/nextcloud/lib/private/Files/Storage/Home.php - line 71:
OC\Files\Cache\Cache->__construct()
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 394:
OC\Files\Storage\Home->getCache()
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 394:
OC\Files\Storage\Wrapper\Wrapper->getCache()
/var/www/nextcloud/lib/private/Files/Mount/MountPoint.php - line 272:
OC\Files\Storage\Wrapper\Wrapper->getCache()
/var/www/nextcloud/lib/private/Files/Filesystem.php - line 440:
OC\Files\Mount\MountPoint->getStorageRootId()
/var/www/nextcloud/lib/private/Files/Filesystem.php - line 376:
OC\Files\Filesystem::initMountPoints()
/var/www/nextcloud/lib/private/legacy/OC_Util.php - line 308:
OC\Files\Filesystem::init()
/var/www/nextcloud/lib/private/Files/Utils/Scanner.php - line 116:
OC_Util::setupFS()
/var/www/nextcloud/lib/private/Files/Utils/Scanner.php - line 155:
OC\Files\Utils\Scanner->getMounts()
/var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php - line 83:
OC\Files\Utils\Scanner->backgroundScan()
/var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php - line 111:
OCA\Files\BackgroundJob\ScanFiles->runScanner()
/var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 62:
OCA\Files\BackgroundJob\ScanFiles->run()
/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 57:
OC\BackgroundJob\Job->execute()
/var/www/nextcloud/cron.php - line 126:
OC\BackgroundJob\TimedJob->execute()
По причинеPDOException: SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php - line 117:
PDOStatement->execute()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php - line 903:
Doctrine\DBAL\Driver\PDOStatement->execute()
/var/www/nextcloud/lib/private/DB/Connection.php - line 194:
Doctrine\DBAL\Connection->executeQuery()
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php - line 200:
OC\DB\Connection->executeQuery()
/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php - line 216:
Doctrine\DBAL\Query\QueryBuilder->execute()
/var/www/nextcloud/lib/private/Files/Cache/StorageGlobal.php - line 77:
OC\DB\QueryBuilder\QueryBuilder->execute()
/var/www/nextcloud/lib/private/Files/Cache/Storage.php - line 97:
OC\Files\Cache\StorageGlobal->getStorageInfo()
/var/www/nextcloud/lib/private/Files/Cache/Storage.php - line 75:
OC\Files\Cache\Storage::getStorageById()
/var/www/nextcloud/lib/private/Files/Cache/Cache.php - line 109:
OC\Files\Cache\Storage->__construct()
/var/www/nextcloud/lib/private/Files/Storage/Home.php - line 71:
OC\Files\Cache\Cache->__construct()
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 394:
OC\Files\Storage\Home->getCache()
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 394:
OC\Files\Storage\Wrapper\Wrapper->getCache()
/var/www/nextcloud/lib/private/Files/Mount/MountPoint.php - line 272:
OC\Files\Storage\Wrapper\Wrapper->getCache()
/var/www/nextcloud/lib/private/Files/Filesystem.php - line 440:
OC\Files\Mount\MountPoint->getStorageRootId()
/var/www/nextcloud/lib/private/Files/Filesystem.php - line 376:
OC\Files\Filesystem::initMountPoints()
/var/www/nextcloud/lib/private/legacy/OC_Util.php - line 308:
OC\Files\Filesystem::init()
/var/www/nextcloud/lib/private/Files/Utils/Scanner.php - line 116:
OC_Util::setupFS()
/var/www/nextcloud/lib/private/Files/Utils/Scanner.php - line 155:
OC\Files\Utils\Scanner->getMounts()
/var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php - line 83:
OC\Files\Utils\Scanner->backgroundScan()
/var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php - line 111:
OCA\Files\BackgroundJob\ScanFiles->runScanner()
/var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 62:
OCA\Files\BackgroundJob\ScanFiles->run()
/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 57:
OC\BackgroundJob\Job->execute()
/var/www/nextcloud/cron.php - line 126:
OC\BackgroundJob\TimedJob->execute()
$CONFIG = array (
'passwordsalt' => 'password',
'secret' => 'password',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.1.7',
2 => 'cloud.domen.ru',
3 => 'office.domen.ru',
),
'datadirectory' => '/mnt/ncdata',
'dbtype' => 'pgsql',
'version' => '19.0.1.1',
'overwrite.cli.url' => 'https://cloud.domen.ru/',
'dbname' => 'nextcloud_db',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'ncadmin',
'dbpassword' => 'password',
'installed' => true,
'instanceid' => 'ertyeryery',
'upgrade.disable-web' => 'true',
'log_type' => 'file',
'logfile' => '/var/log/nextcloud/nextcloud.log',
'loglevel' => '2',
'log.condition' =>
array (
'apps' =>
array (
0 => 'admin_audit',
),
),
'mail_smtpmode' => 'smtp',
'remember_login_cookie_lifetime' => '1800',
'log_rotate_size' => '10485760',
'trashbin_retention_obligation' => 'auto, 180',
'versions_retention_obligation' => 'auto, 365',
'simpleSignUpLink.shown' => false,
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => true,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis-server.sock',
'port' => 0,
'timeout' => 0.5,
'dbindex' => 0,
'password' => 'password',
),
'maintenance' => false,
'logtimezone' => 'Europe/Moscow',
'htaccess.RewriteBase' => '/',
'share_folder' => '/Shared',
'enable_previews' => true,
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\PNG',
1 => 'OC\\Preview\\JPEG',
2 => 'OC\\Preview\\GIF',
3 => 'OC\\Preview\\BMP',
4 => 'OC\\Preview\\MarkDown',
5 => 'OC\\Preview\\MP3',
6 => 'OC\\Preview\\TXT',
7 => 'OC\\Preview\\Movie',
8 => 'OC\\Preview\\Photoshop',
9 => 'OC\\Preview\\SVG',
10 => 'OC\\Preview\\TIFF',
),
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'jpeg_quality' => '60',
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
);
The output of your Apache/nginx/system log in /var/log/____
:
[Sun Aug 16 00:00:01.653699 2020] [mpm_event:notice] [pid 1371:tid 140520954858560] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured>
[Sun Aug 16 00:00:01.653721 2020] [core:notice] [pid 1371:tid 140520954858560] AH00094: Command line: '/usr/sbin/apache2'
[Sun Aug 16 11:47:37.245419 2020] [mpm_event:notice] [pid 1371:tid 140520954858560] AH00491: caught SIGTERM, shutting down
[Sun Aug 16 11:48:50.183943 2020] [mpm_event:notice] [pid 1533:tid 140207209524288] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured>
[Sun Aug 16 11:48:50.184298 2020] [core:notice] [pid 1533:tid 140207209524288] AH00094: Command line: '/usr/sbin/apache2'
[Sun Aug 16 13:09:22.408473 2020] [proxy_fcgi:error] [pid 1538:tid 140206933128960] [client 172.16.1.14:58801] AH01067: Failed to read FastCG>
[Sun Aug 16 13:09:22.408521 2020] [proxy_fcgi:error] [pid 1538:tid 140206933128960] (104)Connection reset by peer: [client 172.16.1.14:58801]>
[Sun Aug 16 13:09:22.427890 2020] [mpm_event:notice] [pid 1533:tid 140207209524288] AH00491: caught SIGTERM, shutting down
[Sun Aug 16 13:09:51.731853 2020] [mpm_event:notice] [pid 1496:tid 140156241042496] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured>
[Sun Aug 16 13:09:51.732559 2020] [core:notice] [pid 1496:tid 140156241042496] AH00094: Command line: '/usr/sbin/apache2'