Skip to content

Migration from Owncloud 10.0.9 on Ubuntu 18.04.01 LTS fails #11596

Description

@JochenHWezel

Executed steps with success:
wget https://download.nextcloud.com/server/installer/migrator/index.php
...
https://owncloud.myserver.com/owncloud/updater/index.php
Web-Update part completed, maintenance mode kept active, next step is to run occ upgrade

occ upgrade fails with

root@localhost:/var/www/owncloud# sudo -u www-data /usr/bin/php5.6 occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
Maintenance mode is kept active
Reset log level

I used php5.6 since ubuntu 18.04 doesn't contain php5 any more and nextcloud v12 doesn't support php7.2 which is installed at ubuntu 18.04

This is how I installed php5.6:

sudo add-apt-repository -y ppa:ondrej/php
sudo apt update
sudo apt install php5.6
apt-get install php5.6-mysql php5.6-mcrypt  php5.6-mbstring php5.6-curl php5.6-common php5.6-xml php5.6-json php5.6-intl php5.6-gd php5.6-zip

Expected behaviour

  • migration should work with php 7.2
  • migration should work with php 5.6 at step sudo -u www-data /usr/bin/php5.6 occ upgrade

Actual behaviour

  1. migration not possible with php 7.2 because nextcloud 12 doesn't support php 7.2
  2. migration fails with above error statement

Server configuration

Operating system:
ubuntu 18.04 LTS

Web server:
current apache

Database:
mysql

PHP version:
ubuntu LTS default: php7
manually installed php5.6

Nextcloud version: (see Nextcloud admin page)
12.0.10

Updated from an older Nextcloud/ownCloud or fresh install:
owncloud 10.0.9

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions