Upgrade fails due to owncloud related issues

Upgrading to latest version yields the following:

Mail-in-a-Box Version: v0.21b

Updating system packages…
Installing system packages…
Initializing system random number generator…
Firewall is active and enabled on system startup
Installing nsd (DNS server)…
Installing Postfix (SMTP server)…
Installing Dovecot (IMAP server)…
Installing OpenDKIM/OpenDMARC…
Installing SpamAssassin…
Installing Nginx (web server)…
Installing Roundcube (webmail)…
Installing ownCloud (contacts/calendar)…
ownCloud 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

Nginx is not running and won’t start. Owncloud seems to be hosed or something. Is there a way to drop owncloud from this installation? I hate owncloud, it always has upgrade issues.

Additional info from the nginx logs looks like some files got removed:

2017/01/04 04:08:36 [emerg] 5762#0: open() “/etc/nginx/nginx-ssl.conf” failed (2: No such file or directory) in /etc/nginx/conf.d/local.conf:46

I manually git cloned mail-in-a-box from github to a local repository. I commented out the setup/owncloud.sh from setup/start.sh, and ran it manually.

Everything seems fine and nginx started right up. My contacts are still visible. Is owncloud even in use here?

Hi,

I would like to check which version you are upgrading from. Do you know what the previous version of miab was? Could you run:

cat /usr/local/lib/owncloud/version.php

The contacts are stored in ownCloud, so you are running an older version.

Hi,

Here is the contents of the file you mentioned:

ubuntu@box:~$ cat /usr/local/lib/owncloud/version.php

<?php $OC_Version = array(9,1,2,5); $OC_VersionString = '9.1.2'; $OC_Edition = ''; $OC_Channel = 'stable'; $OC_VersionCanBeUpgradedFrom = array(9,0); $OC_Build = '2016-11-08T10:54:28+00:00 d47c589b0429eafa5add3a9ffc1c89f8ecccf9cc';