Hello,
I’m completely in deep shit, I executed today update of nextloud from .5 to .7 which finished as failure but after that seams fine, but after reboot all data are gone I can access gui but looks like fresh installation. even in folder /var/lib/univention-appcenter/apps/nextcloud/data
are no data just that default one and df -h shows me sad info that I have lot of free space. Guys I’m lost I don’t have any idea where to start. I simply cant belive that even failing upgrade can cause such drastic data loss…
Any idea is more than wellcome
Hi,
I checkecked logs and I can’t belive it. Simply if I understand that correctly upgrade script failed which execuded complete uninstall of nextcloud where is automaticaly confirmed data removal. Is this realy reality?
part of log:
Executing interface setup for nextcloud
2607 actions.upgrade 18-11-20 11:06:38 [ INFO]: Copying App Center's setup to container's /usr/share/univention-docker-container-mode/setup_custom
2607 actions.upgrade.container.28ca 18-11-20 11:06:39 [ DEBUG]: Using container.28ca for container 28ca46ddc5079d329f45b4398b9e524e0308b024afb47ee2d86244476cd04049
2607 actions.upgrade.container.28ca 18-11-20 11:06:39 [ DEBUG]: Calling docker exec -u root 28ca46ddc5079d329f45b4398b9e524e0308b024afb47ee2d86244476cd04049 /usr/share/univention-docker-container-mode/setup_custom --username Administrator --app nextcloud --error-file /var/univention/tmp/tmpeNejGL --password-file /var/univention/tmp/tmpZ5ylei --app-version 13.0.7-0
2607 actions.upgrade.container.28ca 18-11-20 11:07:31 [ INFO]: Nextcloud is not installed - only a limited number of commands are available
2607 actions.upgrade.container.28ca 18-11-20 11:07:41 [ INFO]: The username is already being used
2607 actions.upgrade.container.28ca 18-11-20 11:07:42 [ INFO]: Error while installing Nextcloud
2607 packages 18-11-20 11:07:43 [ DEBUG]: Releasing LOCK
2607 actions.upgrade 18-11-20 11:07:43 [CRITICAL]: Setup script failed!
2607 actions.upgrade 18-11-20 11:07:43 [ WARNING]: Aborting...
2607 actions.remove 18-11-20 11:07:43 [ DEBUG]: Calling remove
2607 actions.remove.progress 18-11-20 11:07:43 [ DEBUG]: 0
2607 actions.remove 18-11-20 11:07:43 [ INFO]: Going to remove Nextcloud (13.0.7-0)
2607 actions.remove 18-11-20 11:07:43 [ DEBUG]: Calling prescript (prerm)
2607 actions.remove 18-11-20 11:07:43 [ DEBUG]: /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/nextcloud_20181011141509.prerm does not exist
2607 actions.remove.readme 18-11-20 11:07:43 [ DEBUG]: Calling elinks -dump /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/nextcloud_20181011141509.README_UNINSTALL_EN
2607 actions.remove.readme 18-11-20 11:07:43 [ INFO]: Uninstalling Nextcloud will also remove all your data.
2607 actions.remove.readme 18-11-20 11:07:43 [ INFO]:
2607 actions.remove.readme 18-11-20 11:07:43 [ INFO]: If you want to keep it, back up the nextcloud database in your Postgres
2607 actions.remove.readme 18-11-20 11:07:43 [ INFO]: Database as well as the /var/lib/univention-appcenter/apps/nextcloud/data
2607 actions.remove.readme 18-11-20 11:07:43 [ INFO]: folder before continuing uninstalling Nextcloud.
2607 packages 18-11-20 11:07:43 [ DEBUG]: Holding LOCK
2607 actions.remove.progress 18-11-20 11:07:45 [ DEBUG]: 5
2607 actions.remove.progress 18-11-20 11:07:45 [ DEBUG]: 5
2607 actions.configure 18-11-20 11:07:45 [ DEBUG]: Calling configure
2607 actions.configure.progress 18-11-20 11:07:45 [ DEBUG]: 0
2607 actions.configure 18-11-20 11:07:45 [ INFO]: Configuring 4.1/nextcloud=13.0.7-0
2607 actions.configure 18-11-20 11:07:45 [ DEBUG]: /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/nextcloud_20181011141509.configure_host does not exist
2607 actions.configure 18-11-20 11:07:45 [ INFO]: Executing interface configure for nextcloud
2607 actions.configure 18-11-20 11:07:45 [ INFO]: No interface defined
2607 actions.configure.progress 18-11-20 11:07:45 [ DEBUG]: 100
2607 actions.stop 18-11-20 11:07:45 [ DEBUG]: Calling stop
2607 actions.stop.progress 18-11-20 11:07:45 [ DEBUG]: 0
This looks very bad indeed
Nextcloud is not installed - only a limited number of commands are available
This indicates that the config.php
- was modifed (→ the installed flag removed)
- was overwritten by /var/lib/univention-appcenter/apps/nextcloud/conf/config/config.php (this happens, the config file is being backuped up thereto after setup run and before upgrade happens) which had this flag missing
- or the whole file itself removed
There is no part in the scripts however where the config file is modified in such a way.
On uninstall, the app folder is being removed. I agree, that’s not what one would expect to happen on a failed update.