If your NextCloud update failed during upgrade, then this is what I did to get the upgrade to complete:
- In /user-name/mailinabox/setup is the nextcloud.sh script. You need to comment out the line
echo "ALTER TABLE oc_flow_operations ADD COLUMN entity VARCHAR;" | sqlite3 $STORAGE_ROOT/owncloud/owncloud.db
by adding a # in front of it - Edit /usr/local/lib/owncloud/config/config.php and change the last line to
'maintenance' => false,
- Re-run
curl -s https://mailinabox.email/setup.sh | sudo -E bash
It should complete without error