Unable to upgrade 8.0.16 to 8.1.12

help

#1

When trying to upgrade ownCloud 8.0.16 to 8.1.12 on CentOS 6 running SCL php54. Following errors occurs:
[code]
Resolving Dependencies
--> Running transaction check
---> Package owncloud.noarch 0:8.1.12-1.1 will be obsoleting
---> Package owncloud-3rdparty.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-activity.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-external.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-files.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-files_encryption.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-files_external.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-files_locking.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-files_pdfviewer.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-files_sharing.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-files_texteditor.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-files_trashbin.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-files_versions.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-files_videoviewer.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-firstrunwizard.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-gallery.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-provisioning_api.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-templateeditor.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-user_external.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-user_ldap.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-app-user_webdavauth.noarch 0:8.0.16-1.1 will be obsoleted
---> Package owncloud-config-apache.noarch 0:8.0.16-1.1 will be updated
---> Package owncloud-config-apache.noarch 0:8.1.12-1.1 will be an update
---> Package owncloud-server.noarch 0:8.1.12-1.1 will be obsoleting
--> Processing Dependency: php54-php-ldap for package: owncloud-server-8.1.12-1.1.noarch
---> Package owncloud-server-scl-php54.noarch 0:8.0.16-1.1 will be obsoleted
--> Processing Dependency: owncloud-server-core = 8.0.16 for package: owncloud-app-files_antivirus-8.0.16-1.1.noarch
--> Processing Dependency: owncloud-server-core = 8.0.16 for package: owncloud-app-files_antivirus-8.0.16-1.1.noarch
--> Running transaction check
---> Package owncloud-server-scl-php54.noarch 0:8.0.16-1.1 will be obsoleted
--> Processing Dependency: owncloud-server-core = 8.0.16 for package: owncloud-app-files_antivirus-8.0.16-1.1.noarch
--> Processing Dependency: owncloud-server-core = 8.0.16 for package: owncloud-app-files_antivirus-8.0.16-1.1.noarch
---> Package php54-php-ldap.x86_64 0:5.4.40-4.el6 will be installed
--> Finished Dependency Resolution
Error: Package: owncloud-app-files_antivirus-8.0.16-1.1.noarch (@isv_ownCloud_community_8.0)
Requires: owncloud-server-core = 8.0.16
Removing: owncloud-server-scl-php54-8.0.16-1.1.noarch (@isv_ownCloud_community_8.0)
owncloud-server-core
owncloud-server-core = 8.0.16
Obsoleted By: owncloud-8.1.12-1.1.noarch (isv_ownCloud_community_8.1)
Not found
Available: owncloud-server-8.0.16-1.1.noarch (isv_ownCloud_community_8.0)
owncloud-server-core = 8.0.16
Installing: owncloud-server-8.1.12-1.1.noarch (isv_ownCloud_community_8.1)
Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[\code]

[code]

rpm -qa |grep owncloud |sort

owncloud-3rdparty-8.0.16-1.1.noarch
owncloud-app-activity-8.0.16-1.1.noarch
owncloud-app-external-8.0.16-1.1.noarch
owncloud-app-files-8.0.16-1.1.noarch
owncloud-app-files_antivirus-8.0.16-1.1.noarch
owncloud-app-files_encryption-8.0.16-1.1.noarch
owncloud-app-files_external-8.0.16-1.1.noarch
owncloud-app-files_locking-8.0.16-1.1.noarch
owncloud-app-files_pdfviewer-8.0.16-1.1.noarch
owncloud-app-files_sharing-8.0.16-1.1.noarch
owncloud-app-files_texteditor-8.0.16-1.1.noarch
owncloud-app-files_trashbin-8.0.16-1.1.noarch
owncloud-app-files_versions-8.0.16-1.1.noarch
owncloud-app-files_videoviewer-8.0.16-1.1.noarch
owncloud-app-firstrunwizard-8.0.16-1.1.noarch
owncloud-app-gallery-8.0.16-1.1.noarch
owncloud-app-provisioning_api-8.0.16-1.1.noarch
owncloud-app-templateeditor-8.0.16-1.1.noarch
owncloud-app-user_external-8.0.16-1.1.noarch
owncloud-app-user_ldap-8.0.16-1.1.noarch
owncloud-app-user_webdavauth-8.0.16-1.1.noarch
owncloud-config-apache-8.0.16-1.1.noarch
owncloud-server-scl-php54-8.0.16-1.1.noarch
[\code]

Steps to reproduce
1. cd /etc/yum.repos.d/
2. wget http://download.opensuse.org/repositories/isv:ownCloud:community:8.1/CentOS_6_PHP54/isv:ownCloud:community:8.1.repo
3. yum update

Server configuration
Operating system: CentOS release 6.8 (Final)
Web server: httpd-2.2.15-56.el6.centos.3.x86_64
Database:
PHP version: PHP 5.4.40 (cli) (built: Aug 30 2016 13:52:21)
ownCloud version (see ownCloud admin page): 8.0.16
Updated from an older ownCloud or fresh install: updated
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):
server-side-encryption


#2

Following worked:

  1. yum remove owncloud-server-scl-php54-8.0.16-1.1.noarch
  2. yum install owncloud
  3. sudo -u apache /opt/rh/php54/root/usr/bin/php occ upgrade
  4. sudo -u apache /opt/rh/php54/root/usr/bin/php occ maintenance:mode --off
  5. sudo -u apache /opt/rh/php54/root/usr/bin/php occ maintenance:singleuser --on
  6. Enable encryption module from Apps
  7. Enable encryption from Admin GUI
  8. sudo -u apache /opt/rh/php54/root/usr/bin/php occ encryption:migrate <-- Crashed first time, due php.ini had memory_limit = 128M. Changed it to 1024M and encryption:migrate went through.
  9. re-do SELinux labels for following folder/paths: config / config.php, config(/.)?, data(/.)?
  10. sudo -u apache /opt/rh/php54/root/usr/bin/php occ maintenance:singleuser --off
  11. /etc/init.d/httpd restart

Lessons learned: check php.ini memory settings before starting the encryption:migrate.