Bug 13721

Summary: owncloud should require a SQL driver package (virtual packages, choose the one that fits you at install)
Product: Mageia Reporter: Simon Parsons <simonnzg>
Component: RPM PackagesAssignee: Nicolas Lécureuil <mageia>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: contact, fri, mageia, mageia
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard: MGA5TOO
Source RPM: owncloud-6.0.4-1.mga4 CVE:
Status comment:

Description Simon Parsons 2014-07-11 00:41:58 CEST
Description of problem:
No PDO driver installed for Postgresql when installing this RPM. 

The result of this is an error at running owncloud's setup.php when it tries to access the database.  Error shown is "Error while trying to create admin user:" "could not find driver".

I manually installed php-pdo_pgsql-5.5.8-2.mga4.x86_64 and initial configuration of admin user was successful.

PDO driver for sqlite is part of the RPM install process. MySQL PDO driver is not included but doesn't appear to cause the same problem.





Reproducible: 

Steps to Reproduce:
Comment 1 David Walser 2014-07-11 00:46:40 CEST
Maybe it could do like mediawiki and have three virtual subpackages that pull in the appropriate php requires for each SQL type, and the main package requires that you install one of them.  We could have something in prefer.vendor.list if needed to ensure that it prefers sqlite.

CC: (none) => mageia
Assignee: bugsquad => mageia

Comment 2 Simon Parsons 2014-07-11 01:24:43 CEST
That would make sense. I note that in /usr/share/owncloud/lib/private/db.php there's a rather long list of databases that Frank obviously intends owncloud to support at some time. They all seem to require a database-specific pdo driver.

It's not going to be practical to look for pre-existing database engines on the target system and install appropriate drivers, I guess?
Comment 3 Nicolas Lécureuil 2014-12-23 11:11:26 CET
@David: can you do this please ?
Samuel Verschelde 2015-05-21 11:46:22 CEST

Summary: php-pdo_pgsql missing from install list => owncloud should require a SQL driver package (virtual packages, choose the one that fits you at install)

Samuel Verschelde 2015-05-21 11:46:30 CEST

Whiteboard: (none) => MGA5TOO

Comment 4 Daniel Tartavel 2015-05-21 16:54:18 CEST
Hi,

After install of owncloud 8.03 in Mageia 5 RC, when choosing mysql as database server, sazme error as above.
I had to manually install php-pdo_mysql

CC: (none) => contact

Comment 5 Morgan Leijström 2015-09-04 09:36:32 CEST
An alternate "fix" is to in the owncloud server package description have an URL to our wiki page?
https://wiki.mageia.org/en/OwnCloud

CC: (none) => fri

Comment 6 Marc Krämer 2017-12-05 00:13:24 CET
Closing. In mga6 we moved to nextcloud. Subpackages for mysql/pgsql have been added to that package.

Status: NEW => RESOLVED
CC: (none) => mageia
Resolution: (none) => FIXED