Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relation does not exist #11085

Closed
Gooberpatrol66 opened this issue Sep 6, 2018 · 6 comments
Closed

Relation does not exist #11085

Gooberpatrol66 opened this issue Sep 6, 2018 · 6 comments
Labels

Comments

@Gooberpatrol66
Copy link

Gooberpatrol66 commented Sep 6, 2018

Steps to reproduce

  1. Follow installation instructions

  2. php occ maintenance:install --database"pgsql" --database-name "nextcloud" --database-user "root" --database-pass"" --admin-user "admin" --admin-pass ""

Expected behaviour

Tell us what should happen
the command should complete

Actual behaviour

Tell us what happens instead
An unhandled exception has been thrown:
PDOException: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "oc_appconfig" does not exist
LINE 1: SELECT * FROM "oc_appconfig"
^ in /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:104
Stack trace:
#0 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(104): PDO->query('SELECT * FROM "...')
#1 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(852): Doctrine\DBAL\Driver\PDOConnection->query('SELECT * FROM "...')
#2 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/Connection.php(195): Doctrine\DBAL\Connection->executeQuery('SELECT * FROM "...', Array, Array, NULL)
#3 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(206): OC\DB\Connection->executeQuery('SELECT * FROM "...', Array, Array)
#4 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(214): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(320): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(94): OC\AppConfig->loadConfigValues()
#7 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(277): OC\AppConfig->getApps()
#8 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(964): OC\AppConfig->getValues(false, 'installed_versi...')
#9 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(494): OC_App::getAppVersions()
#10 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#11 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\Memcache\Fac...')
#12 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\Memcache\Fac...')
#13 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OC\Memcache\Fac...')
#14 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#15 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('MemCacheFactory')
#16 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('MemCacheFactory')
#17 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(1492): OC\ServerContainer->query('MemCacheFactory')
#18 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(691): OC\Server->getMemCacheFactory()
#19 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#20 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\App\AppManag...')
#21 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\App\AppManag...')
#22 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OC\App\AppManag...')
#23 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#24 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('AppManager')
#25 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('AppManager')
#26 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(1684): OC\ServerContainer->query('AppManager')
#27 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(332): OC\Server->getAppManager()
#28 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(113): OC_App::getEnabledApps()
#29 /var/www/gentooserver/htdocs/nextcloud/lib/base.php(662): OC_App::loadApps(Array)
#30 /var/www/gentooserver/htdocs/nextcloud/lib/base.php(1081): OC::init()
#31 /var/www/gentooserver/htdocs/nextcloud/console.php(46): require_once('/var/www/gentoo...')
#32 /var/www/gentooserver/htdocs/nextcloud/occ(11): require_once('/var/www/gentoo...')
#33 {main}

Next Doctrine\DBAL\Driver\PDOException: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "oc_appconfig" does not exist
LINE 1: SELECT * FROM "oc_appconfig"
^ in /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:106
Stack trace:
#0 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(852): Doctrine\DBAL\Driver\PDOConnection->query('SELECT * FROM "...')
#1 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/Connection.php(195): Doctrine\DBAL\Connection->executeQuery('SELECT * FROM "...', Array, Array, NULL)
#2 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(206): OC\DB\Connection->executeQuery('SELECT * FROM "...', Array, Array)
#3 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(214): Doctrine\DBAL\Query\QueryBuilder->execute()
#4 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(320): OC\DB\QueryBuilder\QueryBuilder->execute()
#5 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(94): OC\AppConfig->loadConfigValues()
#6 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(277): OC\AppConfig->getApps()
#7 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(964): OC\AppConfig->getValues(false, 'installed_versi...')
#8 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(494): OC_App::getAppVersions()
#9 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#10 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\Memcache\Fac...')
#11 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\Memcache\Fac...')
#12 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OC\Memcache\Fac...')
#13 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#14 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('MemCacheFactory')
#15 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('MemCacheFactory')
#16 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(1492): OC\ServerContainer->query('MemCacheFactory')
#17 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(691): OC\Server->getMemCacheFactory()
#18 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#19 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\App\AppManag...')
#20 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\App\AppManag...')
#21 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OC\App\AppManag...')
#22 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#23 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('AppManager')
#24 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('AppManager')
#25 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(1684): OC\ServerContainer->query('AppManager')
#26 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(332): OC\Server->getAppManager()
#27 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(113): OC_App::getEnabledApps()
#28 /var/www/gentooserver/htdocs/nextcloud/lib/base.php(662): OC_App::loadApps(Array)
#29 /var/www/gentooserver/htdocs/nextcloud/lib/base.php(1081): OC::init()
#30 /var/www/gentooserver/htdocs/nextcloud/console.php(46): require_once('/var/www/gentoo...')
#31 /var/www/gentooserver/htdocs/nextcloud/occ(11): require_once('/var/www/gentoo...')
#32 {main}

Next Doctrine\DBAL\Exception\TableNotFoundException: An exception occurred while executing 'SELECT * FROM "oc_appconfig"':

SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "oc_appconfig" does not exist
LINE 1: SELECT * FROM "oc_appconfig"
^ in /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php:76
Stack trace:
#0 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(128): Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))
#1 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(855): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOPgSql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'SELECT * FROM "...', Array)
#2 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/Connection.php(195): Doctrine\DBAL\Connection->executeQuery('SELECT * FROM "...', Array, Array, NULL)
#3 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(206): OC\DB\Connection->executeQuery('SELECT * FROM "...', Array, Array)
#4 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(214): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(320): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(94): OC\AppConfig->loadConfigValues()
#7 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(277): OC\AppConfig->getApps()
#8 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(964): OC\AppConfig->getValues(false, 'installed_versi...')
#9 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(494): OC_App::getAppVersions()
#10 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#11 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\Memcache\Fac...')
#12 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\Memcache\Fac...')
#13 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OC\Memcache\Fac...')
#14 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#15 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('MemCacheFactory')
#16 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('MemCacheFactory')
#17 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(1492): OC\ServerContainer->query('MemCacheFactory')
#18 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(691): OC\Server->getMemCacheFactory()
#19 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#20 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\App\AppManag...')
#21 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\App\AppManag...')
#22 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OC\App\AppManag...')
#23 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#24 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('AppManager')
#25 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('AppManager')
#26 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(1684): OC\ServerContainer->query('AppManager')
#27 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(332): OC\Server->getAppManager()
#28 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(113): OC_App::getEnabledApps()
#29 /var/www/gentooserver/htdocs/nextcloud/lib/base.php(662): OC_App::loadApps(Array)
#30 /var/www/gentooserver/htdocs/nextcloud/lib/base.php(1081): OC::init()
#31 /var/www/gentooserver/htdocs/nextcloud/console.php(46): require_once('/var/www/gentoo...')
#32 /var/www/gentooserver/htdocs/nextcloud/occ(11): require_once('/var/www/gentoo...')
#33 {main}

Server configuration

Operating system: Gentoo Linux

Web server: apache-2.4.34-r2

Database: postgresql-10.5

PHP version: php-7.1.18

Nextcloud version: (see Nextcloud admin page) nextcloud-13.0.2

Updated from an older Nextcloud/ownCloud or fresh install: fresh

Where did you install Nextcloud from: portage

Signing status:

Signing status
N/A

List of activated apps:

App list
apache@gentooserver ~/gentooserver/htdocs/nextcloud $ php occ app:list
An unhandled exception has been thrown:
PDOException: SQLSTATE[42P01]: Undefined table: 7 ERROR:  relation "oc_appconfig" does not exist
LINE 1: SELECT * FROM "oc_appconfig"
                      ^ in /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:104
Stack trace:
#0 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(104): PDO->query('SELECT * FROM "...')
#1 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(852): Doctrine\DBAL\Driver\PDOConnection->query('SELECT * FROM "...')
#2 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/Connection.php(195): Doctrine\DBAL\Connection->executeQuery('SELECT * FROM "...', Array, Array, NULL)
#3 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(206): OC\DB\Connection->executeQuery('SELECT * FROM "...', Array, Array)
#4 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(214): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(320): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(94): OC\AppConfig->loadConfigValues()
#7 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(277): OC\AppConfig->getApps()
#8 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(964): OC\AppConfig->getValues(false, 'installed_versi...')
#9 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(494): OC_App::getAppVersions()
#10 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#11 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\\Memcache\\Fac...')
#12 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\Memcache\\Fac...')
#13 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OC\\Memcache\\Fac...')
#14 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#15 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('MemCacheFactory')
#16 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('MemCacheFactory')
#17 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(1492): OC\ServerContainer->query('MemCacheFactory')
#18 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(691): OC\Server->getMemCacheFactory()
#19 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#20 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\\App\\AppManag...')
#21 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\App\\AppManag...')
#22 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OC\\App\\AppManag...')
#23 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#24 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('AppManager')
#25 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('AppManager')
#26 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(1684): OC\ServerContainer->query('AppManager')
#27 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(332): OC\Server->getAppManager()
#28 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(113): OC_App::getEnabledApps()
#29 /var/www/gentooserver/htdocs/nextcloud/lib/base.php(662): OC_App::loadApps(Array)
#30 /var/www/gentooserver/htdocs/nextcloud/lib/base.php(1081): OC::init()
#31 /var/www/gentooserver/htdocs/nextcloud/console.php(46): require_once('/var/www/gentoo...')
#32 /var/www/gentooserver/htdocs/nextcloud/occ(11): require_once('/var/www/gentoo...')
#33 {main}

Next Doctrine\DBAL\Driver\PDOException: SQLSTATE[42P01]: Undefined table: 7 ERROR:  relation "oc_appconfig" does not exist
LINE 1: SELECT * FROM "oc_appconfig"
                      ^ in /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:106
Stack trace:
#0 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(852): Doctrine\DBAL\Driver\PDOConnection->query('SELECT * FROM "...')
#1 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/Connection.php(195): Doctrine\DBAL\Connection->executeQuery('SELECT * FROM "...', Array, Array, NULL)
#2 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(206): OC\DB\Connection->executeQuery('SELECT * FROM "...', Array, Array)
#3 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(214): Doctrine\DBAL\Query\QueryBuilder->execute()
#4 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(320): OC\DB\QueryBuilder\QueryBuilder->execute()
#5 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(94): OC\AppConfig->loadConfigValues()
#6 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(277): OC\AppConfig->getApps()
#7 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(964): OC\AppConfig->getValues(false, 'installed_versi...')
#8 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(494): OC_App::getAppVersions()
#9 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#10 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\\Memcache\\Fac...')
#11 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\Memcache\\Fac...')
#12 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OC\\Memcache\\Fac...')
#13 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#14 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('MemCacheFactory')
#15 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('MemCacheFactory')
#16 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(1492): OC\ServerContainer->query('MemCacheFactory')
#17 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(691): OC\Server->getMemCacheFactory()
#18 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#19 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\\App\\AppManag...')
#20 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\App\\AppManag...')
#21 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OC\\App\\AppManag...')
#22 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#23 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('AppManager')
#24 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('AppManager')
#25 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(1684): OC\ServerContainer->query('AppManager')
#26 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(332): OC\Server->getAppManager()
#27 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(113): OC_App::getEnabledApps()
#28 /var/www/gentooserver/htdocs/nextcloud/lib/base.php(662): OC_App::loadApps(Array)
#29 /var/www/gentooserver/htdocs/nextcloud/lib/base.php(1081): OC::init()
#30 /var/www/gentooserver/htdocs/nextcloud/console.php(46): require_once('/var/www/gentoo...')
#31 /var/www/gentooserver/htdocs/nextcloud/occ(11): require_once('/var/www/gentoo...')
#32 {main}

Next Doctrine\DBAL\Exception\TableNotFoundException: An exception occurred while executing 'SELECT * FROM "oc_appconfig"':

SQLSTATE[42P01]: Undefined table: 7 ERROR:  relation "oc_appconfig" does not exist
LINE 1: SELECT * FROM "oc_appconfig"
                      ^ in /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php:76
Stack trace:
#0 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(128): Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))
#1 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(855): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOPgSql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'SELECT * FROM "...', Array)
#2 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/Connection.php(195): Doctrine\DBAL\Connection->executeQuery('SELECT * FROM "...', Array, Array, NULL)
#3 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(206): OC\DB\Connection->executeQuery('SELECT * FROM "...', Array, Array)
#4 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(214): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(320): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(94): OC\AppConfig->loadConfigValues()
#7 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppConfig.php(277): OC\AppConfig->getApps()
#8 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(964): OC\AppConfig->getValues(false, 'installed_versi...')
#9 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(494): OC_App::getAppVersions()
#10 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#11 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\\Memcache\\Fac...')
#12 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\Memcache\\Fac...')
#13 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OC\\Memcache\\Fac...')
#14 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#15 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('MemCacheFactory')
#16 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('MemCacheFactory')
#17 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(1492): OC\ServerContainer->query('MemCacheFactory')
#18 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(691): OC\Server->getMemCacheFactory()
#19 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#20 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\\App\\AppManag...')
#21 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\App\\AppManag...')
#22 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OC\\App\\AppManag...')
#23 /var/www/gentooserver/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#24 /var/www/gentooserver/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('AppManager')
#25 /var/www/gentooserver/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('AppManager')
#26 /var/www/gentooserver/htdocs/nextcloud/lib/private/Server.php(1684): OC\ServerContainer->query('AppManager')
#27 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(332): OC\Server->getAppManager()
#28 /var/www/gentooserver/htdocs/nextcloud/lib/private/legacy/app.php(113): OC_App::getEnabledApps()
#29 /var/www/gentooserver/htdocs/nextcloud/lib/base.php(662): OC_App::loadApps(Array)
#30 /var/www/gentooserver/htdocs/nextcloud/lib/base.php(1081): OC::init()
#31 /var/www/gentooserver/htdocs/nextcloud/console.php(46): require_once('/var/www/gentoo...')
#32 /var/www/gentooserver/htdocs/nextcloud/occ(11): require_once('/var/www/gentoo...')
#33 {main}

Nextcloud configuration:

Config report
apache@gentooserver ~/gentooserver/htdocs/nextcloud $ cat config/config.php
<?php
$CONFIG = array (
  'passwordsalt' => 
  'secret' => 
  'trusted_domains' => 
  array (
    0 => 'localhost',
  ),
  'datadirectory' => '/var/www/gentooserver/htdocs/nextcloud/data',
  'overwrite.cli.url' => 'http://localhost',
  'dbtype' => 'pgsql',
  'version' => '13.0.2.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'apache',
  'dbpassword' => 
  'installed' => true,
);

Are you using external storage, if yes which one: local/smb/sftp/...
no

Are you using encryption: yes/no
no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no

Client configuration

Browser:
chromium

Operating system:
gentoo

Logs

Web server error log

Web server error log
[Thu Sep 06 02:40:58.759364 2018] [mpm_prefork:notice] [pid 4053] AH00163: Apache/2.4.34 (Unix) OpenSSL/1.0.2o PHP/7.1.18 configured -- resuming normal operations
[Thu Sep 06 02:40:58.759422 2018] [core:notice] [pid 4053] AH00094: Command line: '/usr/sbin/apache2 -D INFO -D DEFAULT_VHOST -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP -D PROXY -D FOREGROUND'
[Thu Sep 06 02:42:15.623496 2018] [mpm_prefork:notice] [pid 4053] AH00170: caught SIGWINCH, shutting down gracefully
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 2605:6000:1020:24d::3. Set the 'ServerName' directive globally to suppress this message
[Thu Sep 06 02:42:19.306935 2018] [mpm_prefork:notice] [pid 4110] AH00163: Apache/2.4.34 (Unix) OpenSSL/1.0.2o PHP/7.1.18 configured -- resuming normal operations
[Thu Sep 06 02:42:19.306991 2018] [core:notice] [pid 4110] AH00094: Command line: '/usr/sbin/apache2 -D INFO -D DEFAULT_VHOST -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP -D PROXY -D FOREGROUND'
[Thu Sep 06 02:43:11.522627 2018] [php7:error] [pid 4114] [client 2605:6000:1020:24d::5:48146] PHP Fatal error:  Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[08006] [7] FATAL:  role "apache" does not exist in /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/Connection.php:64\nStack trace:\n#0 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\\DB\\Connection->connect()\n#1 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\\DBAL\\Connection->getDatabasePlatformVersion()\n#2 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\\DBAL\\Connection->detectDatabasePlatform()\n#3 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\\DBAL\\Connection->getDatabasePlatform()\n#4 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/Connection.php(151): Doctrine\\DBAL\\Connection->setTransactionIsolation(2)\n#5 /var/www/gentooserver/htdocs/nextcloud/3rd in /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/Connection.php on line 64, referer: http://[2605:6000:1020:24d::9]/
[Thu Sep 06 02:43:11.525311 2018] [php7:error] [pid 4114] [client 2605:6000:1020:24d::5:48146] PHP Fatal error:  Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[08006] [7] FATAL:  role "apache" does not exist in /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/Connection.php:64\nStack trace:\n#0 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\\DB\\Connection->connect()\n#1 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\\DBAL\\Connection->getDatabasePlatformVersion()\n#2 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\\DBAL\\Connection->detectDatabasePlatform()\n#3 /var/www/gentooserver/htdocs/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\\DBAL\\Connection->getDatabasePlatform()\n#4 /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/Connection.php(151): Doctrine\\DBAL\\Connection->setTransactionIsolation(2)\n#5 /var/www/gentooserver/htdocs/nextcloud/3rd in /var/www/gentooserver/htdocs/nextcloud/lib/private/DB/Connection.php on line 64, referer: http://[2605:6000:1020:24d::9]/
[Thu Sep 06 02:51:01.666967 2018] [mpm_prefork:notice] [pid 4110] AH00170: caught SIGWINCH, shutting down gracefully
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 2605:6000:1020:24d::3. Set the 'ServerName' directive globally to suppress this message
[Thu Sep 06 02:51:08.292417 2018] [mpm_prefork:notice] [pid 4178] AH00163: Apache/2.4.34 (Unix) OpenSSL/1.0.2o PHP/7.1.18 configured -- resuming normal operations
[Thu Sep 06 02:51:08.292475 2018] [core:notice] [pid 4178] AH00094: Command line: '/usr/sbin/apache2 -D INFO -D DEFAULT_VHOST -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP -D PROXY -D FOREGROUND'

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"W5DccsritWNl1MonR0WeFQAAAAA","level":3,"time":"2018-09-06T07:51:14+00:00","remoteAddr":"2605:6000:1020:24d::5","user":"--","app":"index","method":"GET","url":"\/nextcloud\/","message":"Exception: {\"Exception\":\"Doctrine\\\\DBAL\\\\Exception\\\\TableNotFoundException\",\"Message\":\"An exception occurred while executing 'SELECT * FROM \\\"oc_appconfig\\\"':\\n\\nSQLSTATE[42P01]: Undefined table: 7 ERROR:  relation \\\"oc_appconfig\\\" does not exist\\nLINE 1: SELECT * FROM \\\"oc_appconfig\\\"\\n                      ^\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(128): Doctrine\\\\DBAL\\\\Driver\\\\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException))\\n#1 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(855): Doctrine\\\\DBAL\\\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOPgSql\\\\Driver), Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException), 'SELECT * FROM \\\"...', Array)\\n#2 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/DB\\\/Connection.php(195): Doctrine\\\\DBAL\\\\Connection->executeQuery('SELECT * FROM \\\"...', Array, Array, NULL)\\n#3 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Query\\\/QueryBuilder.php(206): OC\\\\DB\\\\Connection->executeQuery('SELECT * FROM \\\"...', Array, Array)\\n#4 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/DB\\\/QueryBuilder\\\/QueryBuilder.php(214): Doctrine\\\\DBAL\\\\Query\\\\QueryBuilder->execute()\\n#5 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppConfig.php(320): OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder->execute()\\n#6 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppConfig.php(94): OC\\\\AppConfig->loadConfigValues()\\n#7 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppConfig.php(277): OC\\\\AppConfig->getApps()\\n#8 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/app.php(964): OC\\\\AppConfig->getValues(false, 'installed_versi...')\\n#9 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/Server.php(494): OC_App::getAppVersions()\\n#10 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(113): OC\\\\Server->OC\\\\{closure}(*** sensitive parameters replaced ***)\\n#11 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(116): Pimple\\\\Container->offsetGet('OC\\\\\\\\Memcache\\\\\\\\Fac...')\\n#12 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('OC\\\\\\\\Memcache\\\\\\\\Fac...')\\n#13 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(164): OC\\\\ServerContainer->query('OC\\\\\\\\Memcache\\\\\\\\Fac...')\\n#14 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(109): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->OC\\\\AppFramework\\\\Utility\\\\{closure}(*** sensitive parameters replaced ***)\\n#15 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(116): Pimple\\\\Container->offsetGet('MemCacheFactory')\\n#16 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('MemCacheFactory')\\n#17 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/Server.php(1492): OC\\\\ServerContainer->query('MemCacheFactory')\\n#18 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/Server.php(691): OC\\\\Server->getMemCacheFactory()\\n#19 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(113): OC\\\\Server->OC\\\\{closure}(*** sensitive parameters replaced ***)\\n#20 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(116): Pimple\\\\Container->offsetGet('OC\\\\\\\\App\\\\\\\\AppManag...')\\n#21 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('OC\\\\\\\\App\\\\\\\\AppManag...')\\n#22 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(164): OC\\\\ServerContainer->query('OC\\\\\\\\App\\\\\\\\AppManag...')\\n#23 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(109): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->OC\\\\AppFramework\\\\Utility\\\\{closure}(*** sensitive parameters replaced ***)\\n#24 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(116): Pimple\\\\Container->offsetGet('AppManager')\\n#25 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('AppManager')\\n#26 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/Server.php(1684): OC\\\\ServerContainer->query('AppManager')\\n#27 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/app.php(332): OC\\\\Server->getAppManager()\\n#28 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/app.php(113): OC_App::getEnabledApps()\\n#29 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/base.php(662): OC_App::loadApps(Array)\\n#30 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/base.php(1081): OC::init()\\n#31 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/index.php(35): require_once('\\\/var\\\/www\\\/gentoo...')\\n#32 {main}\",\"File\":\"\\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/AbstractPostgreSQLDriver.php\",\"Line\":76}","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/67.0.3396.87 Safari\/537.36","version":"13.0.2.1"}
{"reqId":"W5DccsritWNl1MonR0WeFQAAAAA","level":3,"time":"2018-09-06T07:51:14+00:00","remoteAddr":"2605:6000:1020:24d::5","user":"--","app":"core","method":"GET","url":"\/nextcloud\/","message":"Exception: {\"Exception\":\"Doctrine\\\\DBAL\\\\Exception\\\\TableNotFoundException\",\"Message\":\"An exception occurred while executing 'SELECT * FROM \\\"oc_appconfig\\\"':\\n\\nSQLSTATE[42P01]: Undefined table: 7 ERROR:  relation \\\"oc_appconfig\\\" does not exist\\nLINE 1: SELECT * FROM \\\"oc_appconfig\\\"\\n                      ^\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(128): Doctrine\\\\DBAL\\\\Driver\\\\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException))\\n#1 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(855): Doctrine\\\\DBAL\\\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOPgSql\\\\Driver), Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException), 'SELECT * FROM \\\"...', Array)\\n#2 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/DB\\\/Connection.php(195): Doctrine\\\\DBAL\\\\Connection->executeQuery('SELECT * FROM \\\"...', Array, Array, NULL)\\n#3 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Query\\\/QueryBuilder.php(206): OC\\\\DB\\\\Connection->executeQuery('SELECT * FROM \\\"...', Array, Array)\\n#4 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/DB\\\/QueryBuilder\\\/QueryBuilder.php(214): Doctrine\\\\DBAL\\\\Query\\\\QueryBuilder->execute()\\n#5 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppConfig.php(320): OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder->execute()\\n#6 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppConfig.php(94): OC\\\\AppConfig->loadConfigValues()\\n#7 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppConfig.php(277): OC\\\\AppConfig->getApps()\\n#8 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/app.php(964): OC\\\\AppConfig->getValues(false, 'installed_versi...')\\n#9 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/Server.php(494): OC_App::getAppVersions()\\n#10 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(113): OC\\\\Server->OC\\\\{closure}(*** sensitive parameters replaced ***)\\n#11 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(116): Pimple\\\\Container->offsetGet('OC\\\\\\\\Memcache\\\\\\\\Fac...')\\n#12 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('OC\\\\\\\\Memcache\\\\\\\\Fac...')\\n#13 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(164): OC\\\\ServerContainer->query('OC\\\\\\\\Memcache\\\\\\\\Fac...')\\n#14 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(109): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->OC\\\\AppFramework\\\\Utility\\\\{closure}(*** sensitive parameters replaced ***)\\n#15 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(116): Pimple\\\\Container->offsetGet('MemCacheFactory')\\n#16 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('MemCacheFactory')\\n#17 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/Server.php(1492): OC\\\\ServerContainer->query('MemCacheFactory')\\n#18 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/Server.php(691): OC\\\\Server->getMemCacheFactory()\\n#19 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(113): OC\\\\Server->OC\\\\{closure}(*** sensitive parameters replaced ***)\\n#20 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(116): Pimple\\\\Container->offsetGet('OC\\\\\\\\App\\\\\\\\AppManag...')\\n#21 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('OC\\\\\\\\App\\\\\\\\AppManag...')\\n#22 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(164): OC\\\\ServerContainer->query('OC\\\\\\\\App\\\\\\\\AppManag...')\\n#23 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(109): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->OC\\\\AppFramework\\\\Utility\\\\{closure}(*** sensitive parameters replaced ***)\\n#24 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(116): Pimple\\\\Container->offsetGet('AppManager')\\n#25 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('AppManager')\\n#26 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/Server.php(1684): OC\\\\ServerContainer->query('AppManager')\\n#27 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/app.php(332): OC\\\\Server->getAppManager()\\n#28 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/app.php(113): OC_App::getEnabledApps()\\n#29 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/base.php(662): OC_App::loadApps(Array)\\n#30 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/base.php(1081): OC::init()\\n#31 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/index.php(35): require_once('\\\/var\\\/www\\\/gentoo...')\\n#32 {main}\",\"File\":\"\\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/AbstractPostgreSQLDriver.php\",\"Line\":76}","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/67.0.3396.87 Safari\/537.36","version":"13.0.2.1"}
{"reqId":"W5DccsritWNl1MonR0WeFQAAAAA","level":3,"time":"2018-09-06T07:51:14+00:00","remoteAddr":"2605:6000:1020:24d::5","user":"--","app":"core","method":"GET","url":"\/nextcloud\/","message":"Exception: {\"Exception\":\"Doctrine\\\\DBAL\\\\Exception\\\\TableNotFoundException\",\"Message\":\"An exception occurred while executing 'SELECT * FROM \\\"oc_appconfig\\\"':\\n\\nSQLSTATE[42P01]: Undefined table: 7 ERROR:  relation \\\"oc_appconfig\\\" does not exist\\nLINE 1: SELECT * FROM \\\"oc_appconfig\\\"\\n                      ^\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(128): Doctrine\\\\DBAL\\\\Driver\\\\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException))\\n#1 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(855): Doctrine\\\\DBAL\\\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOPgSql\\\\Driver), Object(Doctrine\\\\DBAL\\\\Driver\\\\PDOException), 'SELECT * FROM \\\"...', Array)\\n#2 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/DB\\\/Connection.php(195): Doctrine\\\\DBAL\\\\Connection->executeQuery('SELECT * FROM \\\"...', Array, Array, NULL)\\n#3 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Query\\\/QueryBuilder.php(206): OC\\\\DB\\\\Connection->executeQuery('SELECT * FROM \\\"...', Array, Array)\\n#4 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/DB\\\/QueryBuilder\\\/QueryBuilder.php(214): Doctrine\\\\DBAL\\\\Query\\\\QueryBuilder->execute()\\n#5 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppConfig.php(320): OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder->execute()\\n#6 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppConfig.php(94): OC\\\\AppConfig->loadConfigValues()\\n#7 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/AppConfig.php(277): OC\\\\AppConfig->getApps()\\n#8 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/app.php(964): OC\\\\AppConfig->getValues(false, 'installed_versi...')\\n#9 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/TemplateLayout.php(137): OC_App::getAppVersions()\\n#10 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/template.php(207): OC\\\\TemplateLayout->__construct('error', '')\\n#11 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/Base.php(132): OC_Template->fetchPage()\\n#12 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/template.php(351): OC\\\\Template\\\\Base->printPage()\\n#13 \\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/index.php(65): OC_Template::printExceptionErrorPage(Object(Doctrine\\\\DBAL\\\\Exception\\\\TableNotFoundException))\\n#14 {main}\",\"File\":\"\\\/var\\\/www\\\/gentooserver\\\/htdocs\\\/nextcloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/AbstractPostgreSQLDriver.php\",\"Line\":76}","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/67.0.3396.87 Safari\/537.36","version":"13.0.2.1"}

Browser log

Browser log
Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #6054 (OCP\AppFramework\QueryException: Could not resolve OCA\BruteForceSettings\Settings\IPWhitelist! Class OCA\BruteForceSettings\Settings\IPWhitelist does not exist), #2733 (Class CardDavBackend does not exist after upgrade to NC11), #10446 (Unable to unshare link if ldap user does not exist anymore), #8402 (Error app in context "username"doesn't exist, can't verify user data.), and #9761 (No new encryption key is being created when old one exists but password does not match).

@doronbehar
Copy link

Are there any news on this? I'm experiencing the exact same issue here on Arch Linux while trying to setup an instance from scratch with PostgreSQL as well.

I haven't had this problem in with a previous installation with the same versions which had it's database migrated from an old installation but I'm setting up a new instance now and it seems the new version of Nextcloud isn't capable of initializing itself.

@kesselb
Copy link
Contributor

kesselb commented Nov 23, 2018

I can reproduce this issue when I try to run the installer and config.php with installed => true already exist. Is there a config.php in config/?

@doronbehar
Copy link

Of course. BTW, I've tried to setup my instance with MySQL as well and I get exactly the same errors.

@kesselb
Copy link
Contributor

kesselb commented Nov 23, 2018

Yes. config.php is created during setup. Delete config.php and try again.

@doronbehar
Copy link

Thank you so much @danielkesselberg , that worked!

@kesselb kesselb closed this as completed Nov 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants