[Pkg-owncloud-maintainers] Bug#773052: owncloud: White page (web admin broken) if "External storage support" app is enabled, also breaks CardDAV, CalDAV, WebDAV

Fabian Rodriguez magicfab at member.fsf.org
Sat Dec 13 17:50:37 UTC 2014


Package: owncloud
Version: 7.0.3+dfsg-1
Severity: important



Debian Testing (as of 2014-12-13), Owncloud v. 7.0.3+dfsg-1

After enabling the "External storage support" application, access to the web admin interface is lost and CalDav/CardDav (and possibly WebDAV will stop responding.

In /var/log/apache2/error.log you will see repeating errors such as:

[Sat Dec 13 12:23:51.430988 2014] [:error] [pid 686] [client 192.168.35.10:40562] PHP Fatal error:  require_once(): Failed opening required 'Dropbox/autoload.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/php:/usr/share/pear:/usr/share/owncloud:/usr/share/owncloud/apps/search_lucene/3rdparty') in /usr/share/owncloud/apps/files_external/lib/dropbox.php on line 25, referer: http://192.168.35.140/owncloud/index.php/settings/apps?installed
[Sat Dec 13 12:23:55.531979 2014] [:error] [pid 687] [client 192.168.35.10:40564] PHP Fatal error:  require_once(): Failed opening required 'Dropbox/autoload.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/php:/usr/share/pear:/usr/share/owncloud:/usr/share/owncloud/apps/search_lucene/3rdparty') in /usr/share/owncloud/apps/files_external/lib/dropbox.php on line 25, referer: http://192.168.35.140/owncloud/index.php/settings/apps?installed
[Sat Dec 13 12:24:06.309946 2014] [:error] [pid 684] [client 192.168.35.10:40567] PHP Fatal error:  require_once(): Failed opening required 'Dropbox/autoload.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/php:/usr/share/pear:/usr/share/owncloud:/usr/share/owncloud/apps/search_lucene/3rdparty') in /usr/share/owncloud/apps/files_external/lib/dropbox.php on line 25
[Sat Dec 13 12:24:08.040422 2014] [:error] [pid 701] [client 192.168.35.10:40568] PHP Fatal error:  require_once(): Failed opening required 'Dropbox/autoload.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/php:/usr/share/pear:/usr/share/owncloud:/usr/share/owncloud/apps/search_lucene/3rdparty') in /usr/share/owncloud/apps/files_external/lib/dropbox.php on line 25

It's bad enough the web admin access is lost, but this also results in complete loss of access to calendars, address books, webdav files and possibly other services for any and all configured users.

Steps to reproduce:
1) Install Debian Testing using net-install, with no desktop environment
2) sudo apt-get install owncloud --no-install-recommends
3) sudo apt-get install mysql-server
4) Access the web interface at http://localhost/owncloud, configure as usual, login
5) Enable "External storage support", the try to logout

Access to the web interface is lost, CardDAV/CalDAV stop responding, WebDAV access reports "Internal server error" to Gnome/nautilus clients

Workaround:

1) Edit /usr/share/owncloud/apps/files_external/lib/dropbox.php and comment out this line:

#require_once 'Dropbox/autoload.php';

2) Attempting to gain access again through the web admin interface will generate more error messages in /var/log/apache2/error.log such as:

[Sat Dec 13 12:27:41.202201 2014] [:error] [pid 695] [client 192.168.35.10:40575] PHP Fatal error:  require_once(): Failed opening required 'Google_Client.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/php:/usr/share/pear:/usr/share/owncloud:/usr/share/owncloud/apps/search_lucene/3rdparty:/usr/share/php/google-api-php-client/src') in /usr/share/owncloud/apps/files_external/lib/google.php on line 26
[Sat Dec 13 12:27:44.250575 2014] [:error] [pid 688] [client 192.168.35.10:40576] PHP Fatal error:  require_once(): Failed opening required 'Google_Client.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/php:/usr/share/pear:/usr/share/owncloud:/usr/share/owncloud/apps/search_lucene/3rdparty:/usr/share/php/google-api-php-client/src') in /usr/share/owncloud/apps/files_external/lib/google.php on line 26
[Sat Dec 13 12:27:45.794097 2014] [:error] [pid 3749] [client 192.168.35.10:40577] PHP Fatal error:  require_once(): Failed opening required 'Google_Client.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/php:/usr/share/pear:/usr/share/owncloud:/usr/share/owncloud/apps/search_lucene/3rdparty:/usr/share/php/google-api-php-client/src') in /usr/share/owncloud/apps/files_external/lib/google.php on line 26

Edit /usr/share/owncloud/apps/files_external/lib/google.php and comment out these lines:

#require_once 'Google_Client.php';
#require_once 'contrib/Google_DriveService.php';

3) Reload the web admin interface, you will have access again. Login as usual, disable the "External storage support" application

4) Optionally restore the files you modified to their previous state - don't enable the app again.


-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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.10-8
ii  fonts-font-awesome                                  4.2.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.2+dfsg-1
ii  libjs-jcrop                                         0.9.12+dfsg-1
ii  libjs-jquery-minicolors                             1.2.1-1
ii  libjs-jquery-mousewheel                             10-1
ii  libjs-jquery-timepicker                             1.2-1
ii  libjs-mediaelement                                  2.15.1+dfsg-1
ii  libjs-pdf                                           1.0.907+dfsg-1
ii  libjs-underscore                                    1.7.0~dfsg-1
ii  libphp-phpmailer                                    5.2.9+dfsg-2
ii  owncloud-doc                                        0~20141107-1
ii  php-assetic                                         1.2.0-2
ii  php-doctrine-dbal                                   2.4.3-1
ii  php-getid3                                          1.9.8-3
ii  php-opencloud                                       1.10.0-2
ii  php-patchwork-utf8                                  1.1.25-1
ii  php-pear                                            5.6.2+dfsg-1
ii  php-pimple                                          1.1.1-1
ii  php-sabre-dav                                       1.8.10-2
ii  php-seclib                                          0.3.8-1
ii  php-symfony-class-loader [php-symfony-classloader]  2.3.21+dfsg-1
ii  php-symfony-classloader                             2.3.21+dfsg-1
ii  php-symfony-console                                 2.3.21+dfsg-1
ii  php-symfony-routing                                 2.3.21+dfsg-1
ii  php5                                                5.6.2+dfsg-1
ii  php5-gd                                             5.6.2+dfsg-1
ii  php5-json                                           1.3.6-1
ii  php5-mysql                                          5.6.2+dfsg-1
ii  zendframework                                       1.12.9+dfsg-2

Versions of packages owncloud recommends:
ii  exim4                                      4.84-3
ii  exim4-daemon-light [mail-transport-agent]  4.84-3
pn  php-aws-sdk                                <none>
pn  php-crypt-blowfish                         <none>
pn  php-dropbox                                <none>
pn  php-google-api-php-client                  <none>
pn  php5-apcu | php5-xcache                    <none>
ii  php5-cli                                   5.6.2+dfsg-1
ii  php5-curl                                  5.6.2+dfsg-1
pn  php5-intl                                  <none>
pn  php5-ldap                                  <none>
pn  php5-mcrypt                                <none>
pn  smbclient                                  <none>

Versions of packages owncloud suggests:
pn  libapache2-mod-xsendfile                 <none>
pn  libav-tools                              <none>
pn  libreoffice                              <none>
ii  mysql-server                             5.5.40-1
ii  mysql-server-5.5 [virtual-mysql-server]  5.5.40-1
pn  php5-imagick                             <none>

-- 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