Upgrade to 8.1.3 fails with DBALException: Unknown database

Ask all your questions regarding OC 8.0 and 8.1 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
hitchhiker
Newbie
Posts: 2
Joined: Wed Oct 14, 2015 1:42 am
ownCloud version: 8.1.3
Webserver: Apache
Database: SQLite
OS: Linux
PHP version: 5.4.45

Upgrade to 8.1.3 fails with DBALException: Unknown database

Postby hitchhiker » Wed Oct 14, 2015 2:00 am

Hi all gurus,

I've upgraded recently to 8.1.3, but occ fails with this message:

Code: Select all

www-data@oc:~/owncloud$ php ./occ upgrade
ownCloud or one of the apps require upgrade - only a limited number of commands are available
Turned on maintenance mode
Doctrine\DBAL\DBALException: Unknown database type  requested, OC\DB\OCSqlitePlatform may not support it.
Update failed
Maintenance mode is kept active


I suppose there is some Sqlite related issue, my data/owncloud.log shows this error:

Code: Select all

{"reqId":"6\/c2A6r+S8tmnWdc636T","remoteAddr":"","app":"update","message":"Exception: {\"Exception\":\"Doctrine\\\\DBAL\\\\DBALException\",\"Message\":\"Unknown database type  requested, OC\\\\DB\\\\OCSqlitePlatform may not support it.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Schema\\\/SqliteSchemaManager.php(288): Doctrine\\\\DBAL\\\\Platforms\\\\AbstractPlatform->getDoctrineTypeMapping('')\\n#1 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Schema\\\/AbstractSchemaManager.php(820): Doctrine\\\\DBAL\\\\Schema\\\\SqliteSchemaManager->_getPortableTableColumnDefinition(Array)\\n#2 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Schema\\\/SqliteSchemaManager.php(228): Doctrine\\\\DBAL\\\\Schema\\\\AbstractSchemaManager->_getPortableTableColumnList('oc_clndr_object...', '\\\/var\\\/www\\\/ownclo...', Array)\\n#3 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Schema\\\/AbstractSchemaManager.php(175): Doctrine\\\\DBAL\\\\Schema\\\\SqliteSchemaManager->_getPortableTableColumnList('oc_clndr_object...', '\\\/var\\\/www\\\/ownclo...', Array)\\n#4 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Schema\\\/AbstractSchemaManager.php(281): Doctrine\\\\DBAL\\\\Schema\\\\AbstractSchemaManager->listTableColumns('oc_clndr_object...')\\n#5 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Schema\\\/AbstractSchemaManager.php(268): Doctrine\\\\DBAL\\\\Schema\\\\AbstractSchemaManager->listTableDetails('oc_clndr_object...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Schema\\\/AbstractSchemaManager.php(1040): Doctrine\\\\DBAL\\\\Schema\\\\AbstractSchemaManager->listTables()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/repair\\\/sqliteautoincrement.php(61): Doctrine\\\\DBAL\\\\Schema\\\\AbstractSchemaManager->createSchema()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/repair.php(84): OC\\\\Repair\\\\SqliteAutoincrement->run()\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/updater.php(289): OC\\\\Repair->run()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/updater.php(195): OC\\\\Updater->doUpgrade('8.1.3.0', '8.0.3.4')\\n#11 \\\/var\\\/www\\\/owncloud\\\/core\\\/command\\\/upgrade.php(181): OC\\\\Updater->upgrade()\\n#12 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/symfony\\\/console\\\/Symfony\\\/Component\\\/Console\\\/Command\\\/Command.php(253): OC\\\\Core\\\\Command\\\\Upgrade->execute(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#13 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/symfony\\\/console\\\/Symfony\\\/Component\\\/Console\\\/Application.php(874): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#14 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/symfony\\\/console\\\/Symfony\\\/Component\\\/Console\\\/Application.php(195): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand(Object(OC\\\\Core\\\\Command\\\\Upgrade), Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#15 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/symfony\\\/console\\\/Symfony\\\/Component\\\/Console\\\/Application.php(126): Symfony\\\\Component\\\\Console\\\\Application->doRun(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#16 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/console\\\/application.php(94): Symfony\\\\Component\\\\Console\\\\Application->run(NULL, NULL)\\n#17 \\\/var\\\/www\\\/owncloud\\\/console.php(68): OC\\\\Console\\\\Application->run()\\n#18 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#19 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Platforms\\\/AbstractPlatform.php\",\"Line\":423}","level":4,"time":"2015-09-28T22:36:42+00:00"}


I'm really confused about this error, can anyone help please?

Greets,
Hitchhiker

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Upgrade to 8.1.3 fails with DBALException: Unknown datab

Postby RealRancor » Wed Oct 14, 2015 8:16 am

Hi,

no idea about the error but a sane thing you could do is to convert your SQLite to a real database like described here:

https://doc.owncloud.org/server/8.1/adm ... rsion.html

and then Upgrade to oC 8.1.3 afterwards.
*gone*

hitchhiker
Newbie
Posts: 2
Joined: Wed Oct 14, 2015 1:42 am
ownCloud version: 8.1.3
Webserver: Apache
Database: SQLite
OS: Linux
PHP version: 5.4.45

Re: Upgrade to 8.1.3 fails with DBALException: Unknown datab

Postby hitchhiker » Wed Oct 14, 2015 8:20 am

I have thought about this, and I'll give it a try tonight.

Thanks!


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 8.0 and 8.1”

Who is online

Users browsing this forum: No registered users and 1 guest