[Pkg-owncloud-maintainers] Bug#817937: owncloud: Update to 7.0.13~~rc2~dfsg-1 fails - wrong include_path

Dieter dieter at sarina-ist-doof.de
Fri Mar 11 18:46:18 UTC 2016


Package: owncloud
Version: 7.0.13~~rc2~dfsg-1
Severity: important

Hello dear maintainer!

I have encountered the following problem when upgrading owncloud on my freedombox from an earlier version to 7.0.13~~rc2~dfsg-1

In the beginning, i had 2 issues, the first one being: 

sudo -u www-data occ upgrade failing with this error:
An unhandled exception has been thrown:
PDOException: could not find driver in
/usr/share/php/Doctrine/DBAL/Driver/PDOConnection.php:40
Stack trace:
#0 /usr/share/php/Doctrine/DBAL/Driver/PDOConnection.php(40):
PDO->__construct('pgsql:host=loca...', 'owncloud', 'somepassword', Array)
#1 /usr/share/php/Doctrine/DBAL/Driver/PDOPgSql/Driver.php(37):
Doctrine\DBAL\Driver\PDOConnection->__construct('pgsql:host=loca...',
'owncloud', 'somepassword', Array)

which was fixed by installing the php-pgsql package (which depends on php7-pgsql, although owncloud uses php5?)


The second problem is that when opening owncloud in a browser, apache logs this error: 
[Thu Mar 10 22:26:05.419048 2016] [:error] [pid 32754] [client
xx.yy.zz.xx:port] PHP Fatal error:  require_once(): Failed opening
required 'Symfony/Component/ClassLoader/ClassLoader.php'
(include_path='/usr/share/owncloud/lib/private:/usr/share/owncloud/config:/usr/share/owncloud/3rdparty:/usr/share/owncloud/apps:/usr/share/owncloud/lib:.::/usr/share/pear:/usr/share/owncloud')
in /usr/share/owncloud/3rdparty/autoload.php on line 7

I'm guessing that it can't find the ClassLoader.php, because the include_path is wrong, as ClassLoader.php can be found in /usr/share/php/Symfony/...

How can i add the correct path to the include list? 


Thank you very much for your help and the great work in including the package in debian! :)


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: armhf (armv7l)

Kernel: Linux 4.4.0-1-armmp-lpae (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages owncloud depends on:
ii  apache2 [httpd]           2.4.18-1
ii  fonts-font-awesome        4.5.0~dfsg-1
ii  fonts-liberation          1.07.4-1
ii  fonts-linuxlibertine      5.3.0-2
ii  fonts-lohit-deva          2.5.3-1
ii  fonts-sil-gentium-basic   1.1-7
ii  fonts-wqy-microhei        0.2.0-beta-2
ii  libjs-chosen              0.9.11-2
ii  libjs-dojo-dojox          1.10.4+dfsg-2
ii  libjs-jcrop               0.9.13+dfsg-1
ii  libjs-jquery-minicolors   1.2.1-1
ii  libjs-jquery-mousewheel   10-2
ii  libjs-jquery-timepicker   1.2-1
ii  libjs-mediaelement        2.15.1+dfsg-1
ii  libjs-pdf                 1.1.366+dfsg-1
ii  libjs-underscore          1.7.0~dfsg-1
ii  libphp-phpmailer          5.2.14+dfsg-2
ii  owncloud-doc              0~20160302-1
ii  php-assetic               1.3.2-1
ii  php-doctrine-dbal         2.4.5-1
ii  php-getid3                1.9.12+dfsg-1
ii  php-opencloud             1.16.0+dfsg-1
ii  php-patchwork-utf8        1.3.0-1
ii  php-pear                  1:1.10.1+submodules+notgz-4
ii  php-pimple                1.1.1-1
ii  php-sabre-dav             1.8.12-1
ii  php-seclib                1.0.1-2
ii  php-symfony-class-loader  2.7.9+dfsg-1
ii  php-symfony-console       2.7.9+dfsg-1
ii  php-symfony-routing       2.7.9+dfsg-1
ii  php5                      5.6.19+dfsg-1
ii  php5-cli                  5.6.19+dfsg-1
ii  php5-gd                   5.6.19+dfsg-1
ii  php5-json                 1.3.7-1
ii  php5-pgsql                5.6.19+dfsg-1
ii  zendframework             1.12.17+dfsg-2

Versions of packages owncloud recommends:
ii  exim4                                      4.86.2-2
ii  exim4-daemon-light [mail-transport-agent]  4.86.2-2
pn  php-aws-sdk                                <none>
ii  php-crypt-blowfish                         1.1.0~RC2-4
ii  php-dropbox                                1.0.0-4
ii  php-google-api-php-client                  0.6.7-2
pn  php5-apcu | php5-xcache                    <none>
ii  php5-curl                                  5.6.19+dfsg-1
pn  php5-imap                                  <none>
pn  php5-intl                                  <none>
pn  php5-ldap                                  <none>
ii  php5-mcrypt                                5.6.19+dfsg-1
pn  smbclient                                  <none>

Versions of packages owncloud suggests:
pn  libapache2-mod-xsendfile  <none>
pn  libav-tools               <none>
pn  libreoffice               <none>
ii  php5-imagick              3.3.0~rc2-1
ii  postgresql                9.5+172

-- Configuration Files:
/etc/owncloud/htaccess [Errno 13] Permission denied: u'/etc/owncloud/htaccess'

-- no debconf information



More information about the Pkg-owncloud-maintainers mailing list