Paket: owncloud-deps-php5
Neu: ja
Zustand: Installiert
Automatisch installiert: ja
Version: 10.0.0-1.1
Priorität: optional
Bereich: devel
Verwalter: Juergen Weigert jw@owncloud.com
Architektur: all
Unkomprimierte Größe: 8.192
Hängt ab von: php5 (>= 5.4.0) , php5-common, php5-gd, php-xml-parser, php5-intl, php5-mcrypt, php5-curl, php5-json, php5-mysqlnd | php5-mysql, php5-sqlite,
php5-pgsql, php5-cgi | php5-fpm | libapache2-mod-php5, apache2 (>= 2.4.0) | httpd, owncloud-files
Empfiehlt: mysql-server | mariadb-server | postgresql, curl, exim4 | mail-transport-agent
Schlägt vor: php5-apcu (>= 4.0.6) | php-apc, php5-imagick, php5-ldap, php-smbclient | libsmbclient
Liefert: owncloud-deps
Beschreibung: ownCloud - dependencies for php5
–
This version of ownCloud requires at least PHP 5.6.0
You are currently running 5.4.45-0+deb7u8. Please update your PHP version.
A software that’s dependent on PHP 5.6 which happily installs on PHP 5.4.
Thanks a fucking lot.
Let me guess: Downgrading is still unsupported?
To anyone else affected: If you’re lucky enough to not have purged your apt-cache, you can restore from /var/cache/apt/archives.
Should go (as root) along the lines of
cp /var/cache/apt/archives/owncloud*9.1.5* /tmp;
cd /tmp;
dpkg -i owncloud-files_9.1.5-1.1_all.deb;
dpkg -i owncloud-deps-php5_9.1.5-1.1_all.deb;
dpkg -i owncloud_9.1.5-1.1_all.deb;
The install order above worked for me. The mismatching PHP-versions seem to have prevented the database upgrade from running, so that the DB was still in 9.1.5 state.
I haven’t done extensive tests yet, but my Owncloud is at least accessible and uploads work.
I do notice that the fucked up packages have been quietly purged, without any acknowledgement or help that I was able to find.
When you’re done fixing your installation, (re)move /var/lib/apt/lists/download.owncloud.org_download_repositories_stable_Debian%5f7.0_* and do an aptitude update.
The removed files should be recreated with the 9.1.5er packages/repo data.
1 Like
Some one seems to have already reported this to the correct place where such issues belongs to:
opened 04:11AM - 28 Apr 17 UTC
closed 09:41PM - 07 May 17 UTC
status/STALE
### Steps to reproduce
1. update php using: sudo add-apt-repository ppa:ondrej/… php
sudo apt-get update
sudo apt-get install php5.6 php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml \
php5.6-apcu php5.6-zip php5.6-gd php5.6-curl
sudo a2dismod php5
sudo a2enmod php5.6
sudo service apache2 restart
Tried mysql and phpmyadmin and working
2. run automated update (synaptic) to update Owncloud to latest version (10.0)
3. run owncloud update and got:
#######################
/var/www/owncloud$ sudo -u www-data php occ upgrade
[sudo] password for viking:
An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /var/www/owncloud/lib/private/DB/Connection.php:63
Stack trace:
#0 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/owncloud/lib/private/DB/Connection.php(146): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /var/www/owncloud/lib/private/DB/ConnectionFactory.php(136): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /var/www/owncloud/lib/private/Server.php(461): OC\DB\ConnectionFactory->getConnection('mysql', Array)
#8 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#9 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('DatabaseConnect...')
#10 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('DatabaseConnect...')
#11 /var/www/owncloud/lib/private/Server.php(1101): OC\ServerContainer->query('DatabaseConnect...')
#12 /var/www/owncloud/lib/private/Server.php(226): OC\Server->getDatabaseConnection()
#13 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#14 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('UserManager')
#15 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('UserManager')
#16 /var/www/owncloud/lib/private/Server.php(953): OC\ServerContainer->query('UserManager')
#17 /var/www/owncloud/lib/private/Server.php(267): OC\Server->getUserManager()
#18 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#19 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('UserSession')
#20 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('UserSession')
#21 /var/www/owncloud/lib/private/Server.php(970): OC\ServerContainer->query('UserSession')
#22 /var/www/owncloud/lib/private/Server.php(507): OC\Server->getUserSession()
#23 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#24 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('AppManager')
#25 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('AppManager')
#26 /var/www/owncloud/lib/private/Server.php(1288): OC\ServerContainer->query('AppManager')
#27 /var/www/owncloud/lib/private/legacy/app.php(310): OC\Server->getAppManager()
#28 /var/www/owncloud/lib/private/legacy/app.php(106): OC_App::getEnabledApps()
#29 /var/www/owncloud/lib/base.php(579): OC_App::loadApps(Array)
#30 /var/www/owncloud/lib/base.php(994): OC::init()
#31 /var/www/owncloud/console.php(57): require_once('/var/www/ownclo...')
#32 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')
#33 {main}PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /var/www/owncloud/lib/private/DB/Connection.php:63
Stack trace:
#0 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/owncloud/lib/private/DB/Connection.php(146): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\D in
#################################
### Expected behaviour
Tell us what should happen
Owncloud should have updated normally
### Actual behaviour
Tell us what happens instead
Errors as shown above Owncloud server cannot start
### Server configuration
**Operating system**:
Ubuntu 14.04.5
Linux Sibyl 3.13.0-117-generic #164-Ubuntu SMP Fri Apr 7 11:05:26 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
**Web server:**
Server version: Apache/2.4.7 (Ubuntu)
Server built: Jul 15 2016 15:34:04
**Database:**
mysql Ver 14.14 Distrib 5.5.55, for debian-linux-gnu (x86_64) using readline 6.3
**PHP version:**
php -v
PHP 7.1.4-1+deb.sury.org~trusty+1 (cli) (built: Apr 11 2017 22:45:20) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.4-1+deb.sury.org~trusty+1, Copyright (c) 1999-2017, by Zend Technologies
**ownCloud version:** (see ownCloud admin page) version 10.0 I think (latest)
**Updated from an older ownCloud or fresh install:**
Updated from 9.1x
**Where did you install ownCloud from:**
used ppa from Owncloud and synaptic package manager as had been done successfully for previous owncloud versions
**Signing status (ownCloud 9.0 and above):**
```
Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results into https://gist.github.com/ and puth the link here.
```
Cannot sign into my ownCloud server because it's broken all I see is:
Update needed
Please use the command line updater because you have a big instance.
For help, see the documentation.
**The content of config/config.php:**
<?php
$CONFIG = array (
'updatechecker' => false,
'instanceid' => 'xxxxxxx',
'passwordsalt' => 'xxxxxxx',
'secret' => 'xxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.1.10',
2 => 'xxr',
3 => 'xxl',
4 => 'xxx.xxx.xx.x49',
5 => 'xxr',
6 => 'xx',
),
'datadirectory' => '/carbonics/owncloud',
'overwrite.cli.url' => 'https://localhost/owncloud',
'dbtype' => 'mysql',
'version' => '9.1.5.2',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_xxxxx',
'dbpassword' => 'xxxxx',
'logtimezone' => 'UTC',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'maintenance' => false,
'ldapIgnoreNamingRules' => false,
'loglevel' => 3,
'session_lifetime' => 1728000,
'session_keepalive' => true,
'mail_from_address' => 'cloud',
'mail_smtpmode' => 'php',
'mail_domain' => 'xx.com',
);
```
Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.
or
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder
*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.
```
**List of activated apps:**
```
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.
```
**Are you using external storage, if yes which one:** local/smb/sftp/...
**Are you using encryption:** yes/no
**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...
#### LDAP configuration (delete this part if not used)
```
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder
Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';
Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
```
### Client configuration
**Browser:**
**Operating system:**
### Logs
#### Web server error log
```
Insert your webserver log here
```
#### ownCloud log (data/owncloud.log)
```
Insert your ownCloud log here
```nothing in this file
#### Browser log
```
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
```
1 Like
Yes, that is a correct way to revert something like this. Until you’re running occ upgrade (which upgrades the database) you can always revert the packages to the previous state.
Btw. thanks for posting the workaround.
That’s a different issue. The OP in the linked issue is explicitly already installing PHP 5.6, and screwed up his install by installing different versions for Apache and CLI.
My issue was that in an utter lack of QA, someone released Owncloud 10 packages with botched dependencies in the official repositories, thus allowing the installation of Owncloud requiring PHP 5.6 on a machine with only 5.4.
Sorry, pasted the wrong link:
opened 09:10PM - 27 Apr 17 UTC
closed 01:01AM - 20 Dec 17 UTC
### Steps to reproduce
upgrade owncloud packages
1. apt-get update && apt-get … -y upgrade
Upgrades owncloud from 9.1.5-1.1 to 10.0.0-1.1
2. sudo -u www-data php /var/www/owncloud/occ maintenance:mode --off
### Expected behaviour
The package upgrade should not proceed if the dependencies for the software are not met.
### Actual behaviour
The package upgrade completes, but occ upgrade does not work because the PHP version is not high enough....
This version of ownCloud requires at least PHP 5.6.0
You are currently running 5.5.9-1ubuntu4.21. Please update your PHP version.
### Server configuration
**Operating system**:
Ubuntu 14.04.5 LTS
**Web server:**
apache 2.4.7-1ubuntu4.13
**Database:**
mariadb 5.5.54-1ubuntu0.14.04.1
**PHP version:**
php5 5.5.9+dfsg-1ubuntu4.21
**ownCloud version:** (see ownCloud admin page)
ownCloud 9.1.5 (stable)
**Updated from an older ownCloud or fresh install:**
upgraded several times from older versions
**Where did you install ownCloud from:**
http://download.owncloud.org/download/repositories/stable/Ubuntu_14.04/
**Signing status (ownCloud 9.0 and above):**
passed
**Suggested fix:
owncloud-deps-php5 should depend on php5 (>= 5.6.0)
```
--- owncloud-10.0.0/debian/control.orig 2017-04-27 15:37:57.000000000 -0500
+++ owncloud-10.0.0/debian/control 2017-04-27 16:07:52.839586806 -0500
@@ -32,7 +32,7 @@
Provides: owncloud-deps
# https://github.com/owncloud/core/issues/21342
# https://github.com/owncloud/core/issues/23878
-Depends: ${misc:Depends}, php5 (>= 5.4.0),
+Depends: ${misc:Depends}, php5 (>= 5.6.0),
php5-common, php5-gd, php-xml-parser, php5-intl, php5-mcrypt, php5-curl, php5-json,
php5-mysqlnd | php5-mysql, php5-sqlite, php5-pgsql,
php5-cgi | php5-fpm | libapache2-mod-php5,
```