Nextcloud 18.0.4 Maintenance mode

When I updated my Nextcloud trough Univention App Center from 18.0.3 to 18.0.4 Nextcloud got stuck in maintenance mode.

Here is what I did to get out of maintenance mode and finish the update manually in a webbrowser:

Login in Univention via SSH by using for example Putty as administrator.

In console:

$ sudo su

to switch to root user

$ univention-app shell nextcloud

to get in the docker container where nextcloud is installed

$ cd /var/www/html

there should be a file occ

$ sudo -u www-data php occ maintenance:mode --off

Console tells you

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
Maintenance mode disabled

I finished to update Nextcloud by clicking update in browser window.

Since this the second time my installation of Nextcloud on Univention did this (18.0.2->18.0.3 and 18.0.3->18.0.4) I wanted to share the way I solved the problem.

As I’m a beginner in Linux terminal all hints, critics and overall better ways to solve the problem are welcome. I would prefer update driven by Univention App center.

Stay healthy
mangrovenjazz

1 Like

Thanks for sharing your workaround. Nevertheless, you should not end up to need this. Do you still have the appcenter.log from the upgrade?

@blizzz
Hello
Actually

$ sudo nano /var/log/univention/appcenter.log

shows me an empty file (0 rows read)

$ ls /var/log/univention/

shows me :

actualise.log
actualise.log.1.gz
admindiary.log
admindiary.log.1.gz
admindiary.log.2.gz
admindiary.log.3.gz
admindiary.log.4.gz
admindiary.log.5.gz
admindiary.log.6.gz
admindiary.log.7.gz
admindiary.log.8.gz
appcenter.log
appcenter.log.10.gz
appcenter.log.11.gz
appcenter.log.12.gz
appcenter.log.1.gz
appcenter.log.2.gz
appcenter.log.3.gz
appcenter.log.4.gz
appcenter.log.5.gz
appcenter.log.6.gz
appcenter.log.7.gz
appcenter.log.8.gz
appcenter.log.9.gz
check_join_status.log
check_join_status.log.10.gz
check_join_status.log.11.gz
check_join_status.log.12.gz
check_join_status.log.1.gz
check_join_status.log.2.gz
check_join_status.log.3.gz
check_join_status.log.4.gz
check_join_status.log.5.gz
check_join_status.log.6.gz
check_join_status.log.7.gz
check_join_status.log.8.gz
check_join_status.log.9.gz
config-registry.replog
config-registry.replog.10.gz
config-registry.replog.11.gz
config-registry.replog.12.gz
config-registry.replog.1.gz
config-registry.replog.2.gz
config-registry.replog.3.gz
config-registry.replog.4.gz
config-registry.replog.5.gz
config-registry.replog.6.gz
config-registry.replog.7.gz
config-registry.replog.8.gz
config-registry.replog.9.gz
directory-manager-cmd.log
directory-manager-cmd.log.10.gz
directory-manager-cmd.log.11.gz
directory-manager-cmd.log.12.gz
directory-manager-cmd.log.1.gz
directory-manager-cmd.log.2.gz
directory-manager-cmd.log.3.gz
directory-manager-cmd.log.4.gz
directory-manager-cmd.log.5.gz
directory-manager-cmd.log.6.gz
directory-manager-cmd.log.7.gz
directory-manager-cmd.log.8.gz
directory-manager-cmd.log.9.gz
directory-manager-rest.log
directory-reports-cleanup.log
directory-reports.log
ec2.log
errata-updates.log
join.log
ldap-policy.log
letsencrypt.log
listener.log
listener.log.10.gz
listener.log.11.gz
listener.log.12.gz
listener.log.1.gz
listener.log.2.gz
listener.log.3.gz
listener.log.4.gz
listener.log.5.gz
listener.log.6.gz
listener.log.7.gz
listener.log.8.gz
listener.log.9.gz
listener_modules
management-console-module-appcenter.log
management-console-module-appcenter.log.10.gz
management-console-module-appcenter.log.11.gz
management-console-module-appcenter.log.12.gz
management-console-module-appcenter.log.1.gz
management-console-module-appcenter.log.2.gz
management-console-module-appcenter.log.3.gz
management-console-module-appcenter.log.4.gz
management-console-module-appcenter.log.5.gz
management-console-module-appcenter.log.6.gz
management-console-module-appcenter.log.7.gz
management-console-module-appcenter.log.8.gz
management-console-module-appcenter.log.9.gz
management-console-module-apps.log
management-console-module-apps.log.10.gz
management-console-module-apps.log.11.gz
management-console-module-apps.log.12.gz
management-console-module-apps.log.1.gz
management-console-module-apps.log.2.gz
management-console-module-apps.log.3.gz
management-console-module-apps.log.4.gz
management-console-module-apps.log.5.gz
management-console-module-apps.log.6.gz
management-console-module-apps.log.7.gz
management-console-module-apps.log.8.gz
management-console-module-apps.log.9.gz
management-console-module-diagnostic.log
management-console-module-diagnostic.log.1.gz
management-console-module-diagnostic.log.2.gz
management-console-module-diagnostic.log.3.gz
management-console-module-join.log
management-console-module-join.log.10.gz
management-console-module-join.log.11.gz
management-console-module-join.log.12.gz
management-console-module-join.log.1.gz
management-console-module-join.log.2.gz
management-console-module-join.log.3.gz
management-console-module-join.log.4.gz
management-console-module-join.log.5.gz
management-console-module-join.log.6.gz
management-console-module-join.log.7.gz
management-console-module-join.log.8.gz
management-console-module-join.log.9.gz
management-console-module-lib.log
management-console-module-lib.log.10.gz
management-console-module-lib.log.11.gz
management-console-module-lib.log.12.gz
management-console-module-lib.log.1.gz
management-console-module-lib.log.2.gz
management-console-module-lib.log.3.gz
management-console-module-lib.log.4.gz
management-console-module-lib.log.5.gz
management-console-module-lib.log.6.gz
management-console-module-lib.log.7.gz
management-console-module-lib.log.8.gz
management-console-module-lib.log.9.gz
management-console-module-mrtg.log
management-console-module-mrtg.log.1.gz
management-console-module-mrtg.log.2.gz
management-console-module-mrtg.log.3.gz
management-console-module-passwordreset.log
management-console-module-passwordreset.log.1.gz
management-console-module-passwordreset.log.2.gz
management-console-module-passwordreset.log.3.gz
management-console-module-quota.log
management-console-module-quota.log.1.gz
management-console-module-quota.log.2.gz
management-console-module-quota.log.3.gz
management-console-module-quota.log.4.gz
management-console-module-quota.log.5.gz
management-console-module-services.log
management-console-module-services.log.1.gz
management-console-module-services.log.2.gz
management-console-module-setup.log
management-console-module-setup.log.1.gz
management-console-module-setup.log.2.gz
management-console-module-sysinfo.log
management-console-module-sysinfo.log.1.gz
management-console-module-sysinfo.log.2.gz
management-console-module-sysinfo.log.3.gz
management-console-module-top.log
management-console-module-top.log.1.gz
management-console-module-top.log.2.gz
management-console-module-top.log.3.gz
management-console-module-ucr.log
management-console-module-ucr.log.1.gz
management-console-module-udm.log
management-console-module-udm.log.10.gz
management-console-module-udm.log.11.gz
management-console-module-udm.log.12.gz
management-console-module-udm.log.1.gz
management-console-module-udm.log.2.gz
management-console-module-udm.log.3.gz
management-console-module-udm.log.4.gz
management-console-module-udm.log.5.gz
management-console-module-udm.log.6.gz
management-console-module-udm.log.7.gz
management-console-module-udm.log.8.gz
management-console-module-udm.log.9.gz
management-console-module-updater.log
management-console-module-updater.log.10.gz
management-console-module-updater.log.11.gz
management-console-module-updater.log.12.gz
management-console-module-updater.log.1.gz
management-console-module-updater.log.2.gz
management-console-module-updater.log.3.gz
management-console-module-updater.log.4.gz
management-console-module-updater.log.5.gz
management-console-module-updater.log.6.gz
management-console-module-updater.log.7.gz
management-console-module-updater.log.8.gz
management-console-module-updater.log.9.gz
management-console-server.log
management-console-server.log.10.gz
management-console-server.log.11.gz
management-console-server.log.12.gz
management-console-server.log.1.gz
management-console-server.log.2.gz
management-console-server.log.3.gz
management-console-server.log.4.gz
management-console-server.log.5.gz
management-console-server.log.6.gz
management-console-server.log.7.gz
management-console-server.log.8.gz
management-console-server.log.9.gz
management-console-web-server.log
management-console-web-server.log.10.gz
management-console-web-server.log.11.gz
management-console-web-server.log.12.gz
management-console-web-server.log.1.gz
management-console-web-server.log.2.gz
management-console-web-server.log.3.gz
management-console-web-server.log.4.gz
management-console-web-server.log.5.gz
management-console-web-server.log.6.gz
management-console-web-server.log.7.gz
management-console-web-server.log.8.gz
management-console-web-server.log.9.gz
notifier.log
notifier.log.10.gz
notifier.log.11.gz
notifier.log.12.gz
notifier.log.1.gz
notifier.log.2.gz
notifier.log.3.gz
notifier.log.4.gz
notifier.log.5.gz
notifier.log.6.gz
notifier.log.7.gz
notifier.log.8.gz
notifier.log.9.gz
pkgdb.log
portal.log
portal.log.1.gz
portal.log.2.gz
portal.log.3.gz
portal.log.4.gz
portal.log.5.gz
portal.log.6.gz
portal.log.7.gz
portal.log.8.gz
portal.log.9.gz
repository.log
security-updates.log
server_password_change.log
server_password_change.log.10.gz
server_password_change.log.11.gz
server_password_change.log.12.gz
server_password_change.log.1.gz
server_password_change.log.2.gz
server_password_change.log.3.gz
server_password_change.log.4.gz
server_password_change.log.5.gz
server_password_change.log.6.gz
server_password_change.log.7.gz
server_password_change.log.8.gz
server_password_change.log.9.gz
setup.log
setup.log.1.gz
ssl-sync.log
sync-memberuid.log
system-setup-boot.log
system-stats.log
system-stats.log.10.gz
system-stats.log.11.gz
system-stats.log.12.gz
system-stats.log.1.gz
system-stats.log.2.gz
system-stats.log.3.gz
system-stats.log.4.gz
system-stats.log.5.gz
system-stats.log.6.gz
system-stats.log.7.gz
system-stats.log.8.gz
system-stats.log.9.gz
updater.log
updater.log.10.gz
updater.log.11.gz
updater.log.12.gz
updater.log.1.gz
updater.log.2.gz
updater.log.3.gz
updater.log.4.gz
updater.log.5.gz
updater.log.6.gz
updater.log.7.gz
updater.log.8.gz
updater.log.9.gz

Am I looking at the right place? Any of these are could help us?
Greetings mangrovenjazz

Yes. You have to take a look in the rotated zipped log files: appcenter.log.n.gz

@SirTux: Thank you, with your help I was able to investigate the archives of the log files.
@blizzz: Hello again
As I don’t know exactly what I should look for find bellow what the command $ zcat appcenter.log.4.gz | less gives me from the file mentioning 18.0.3. The next one is already talking about 18.0.4. Maybe it’s talking to you:

27601 actions.upgrade-search           20-04-19 07:10:49 [   DEBUG]: Calling upgrade-search
 27601 actions.upgrade-search.progress  20-04-19 07:10:49 [   DEBUG]: 0
 27601 actions.update                   20-04-19 07:10:49 [   DEBUG]: Calling update
 27601 actions.update.progress          20-04-19 07:10:49 [   DEBUG]: 0
 27601 actions.update                   20-04-19 07:10:49 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/app-categories.ini"...
 27601 actions.update                   20-04-19 07:10:50 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:50 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/rating.ini"...
 27601 actions.update                   20-04-19 07:10:50 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:50 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/license_types.ini"...
 27601 actions.update                   20-04-19 07:10:50 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:50 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/ucs.ini"...
 27601 actions.update                   20-04-19 07:10:50 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:50 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/suggestions.json"...
 27601 actions.update                   20-04-19 07:10:50 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:50 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.4/index.json.gz"...
 27601 actions.update                   20-04-19 07:10:50 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:50 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.4/index.json.gz.gpg"...
 27601 actions.update                   20-04-19 07:10:50 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:50 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.4/all.tar.gpg"...
 27601 actions.update                   20-04-19 07:10:50 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:51 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.3/index.json.gz"...
 27601 actions.update                   20-04-19 07:10:51 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:51 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.3/index.json.gz.gpg"...
 27601 actions.update                   20-04-19 07:10:51 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:51 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.3/all.tar.gpg"...
 27601 actions.update                   20-04-19 07:10:51 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:51 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.2/index.json.gz"...
 27601 actions.update                   20-04-19 07:10:51 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:51 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.2/index.json.gz.gpg"...
 27601 actions.update                   20-04-19 07:10:51 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:51 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.2/all.tar.gpg"...
 27601 actions.update                   20-04-19 07:10:51 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:51 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz"...
 27601 actions.update                   20-04-19 07:10:51 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:51 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz.gpg"...
 27601 actions.update                   20-04-19 07:10:52 [   DEBUG]:   ... Not Modified
 27601 actions.update                   20-04-19 07:10:52 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.1/all.tar.gpg"...
 27601 actions.update                   20-04-19 07:10:52 [   DEBUG]:   ... Not Modified
 27601 actions.update.progress          20-04-19 07:10:52 [   DEBUG]: 100
 27601 cache                            20-04-19 07:10:52 [   DEBUG]: Cache outdated. Need to rebuild
 27601 cache                            20-04-19 07:10:52 [   DEBUG]: Loaded 134 apps from cache
 27601 cache                            20-04-19 07:10:52 [   DEBUG]: Cache outdated. Need to rebuild
 27601 cache                            20-04-19 07:10:52 [   DEBUG]: Loaded 240 apps from cache
 27601 cache                            20-04-19 07:10:52 [   DEBUG]: Cache outdated. Need to rebuild
 27601 cache                            20-04-19 07:10:52 [   DEBUG]: Loaded 219 apps from cache
 27601 cache                            20-04-19 07:10:52 [   DEBUG]: Cache outdated. Need to rebuild
 27601 cache                            20-04-19 07:10:53 [   DEBUG]: Loaded 398 apps from cache
 27601 actions.upgrade-search           20-04-19 07:10:53 [   DEBUG]: Checking admindiary-backend=1.0
 27601 actions.upgrade-search           20-04-19 07:10:53 [   DEBUG]: Checking letsencrypt=1.2.2-8
 27601 actions.upgrade-search           20-04-19 07:10:53 [   DEBUG]: Checking onlyoffice-ds=5.4.2.46
 27601 actions.upgrade-search           20-04-19 07:10:53 [    INFO]: Executing interface update_available for onlyoffice-ds
 27601 actions.upgrade-search           20-04-19 07:10:53 [    INFO]: No interface defined
 27601 actions.upgrade-search           20-04-19 07:10:53 [   DEBUG]: Checking self-service=4.0
 27601 actions.upgrade-search           20-04-19 07:10:53 [   DEBUG]: Checking 4.3/rocketchat=3.0.2
 27601 actions.upgrade-search           20-04-19 07:10:54 [    INFO]: Executing interface update_available for rocketchat
 27601 actions.upgrade-search           20-04-19 07:10:54 [    INFO]: No interface defined
 27601 actions.upgrade-search           20-04-19 07:10:54 [   DEBUG]: Checking 4.1/nextcloud=18.0.3-0
 27601 actions.upgrade-search           20-04-19 07:10:54 [    INFO]: Executing interface update_available for nextcloud
 27601 actions.upgrade-search           20-04-19 07:10:54 [    INFO]: No interface defined
 27601 actions.upgrade-search.progress  20-04-19 07:10:54 [   DEBUG]: 100
   848 actions.upgrade-search           20-04-19 08:06:25 [   DEBUG]: Calling upgrade-search
   848 actions.upgrade-search.progress  20-04-19 08:06:25 [   DEBUG]: 0
   848 actions.update                   20-04-19 08:06:25 [   DEBUG]: Calling update
   848 actions.update.progress          20-04-19 08:06:25 [   DEBUG]: 0
   848 actions.update                   20-04-19 08:06:25 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/app-categories.ini"...
   848 actions.update                   20-04-19 08:06:25 [   DEBUG]:   ... Not Modified
   848 actions.update                   20-04-19 08:06:25 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/rating.ini"...
   848 actions.update                   20-04-19 08:06:26 [   DEBUG]:   ... Not Modified
   848 actions.update                   20-04-19 08:06:26 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/license_types.ini"...
   848 actions.update                   20-04-19 08:06:26 [   DEBUG]:   ... Not Modified
   848 actions.update                   20-04-19 08:06:26 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/ucs.ini"...
   848 actions.update                   20-04-19 08:06:26 [   DEBUG]:   ... Not Modified
   848 actions.update                   20-04-19 08:06:26 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/suggestions.json"...
   848 actions.update                   20-04-19 08:06:26 [   DEBUG]:   ... Not Modified
   848 actions.update                   20-04-19 08:06:26 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.4/index.json.gz"...
   848 actions.update                   20-04-19 08:06:26 [   DEBUG]:   ... Not Modified
   848 actions.update                   20-04-19 08:06:26 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.4/index.json.gz.gpg"...
   848 actions.update                   20-04-19 08:06:26 [   DEBUG]:   ... Not Modified
   848 actions.update                   20-04-19 08:06:26 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.4/all.tar.gpg"...
   848 actions.update                   20-04-19 08:06:26 [   DEBUG]:   ... Not Modified
   848 actions.update                   20-04-19 08:06:26 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.3/index.json.gz"...
   848 actions.update                   20-04-19 08:06:26 [   DEBUG]:   ... Not Modified
   848 actions.update                   20-04-19 08:06:26 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.3/index.json.gz.gpg"...
   848 actions.update                   20-04-19 08:06:27 [   DEBUG]:   ... Not Modified
   848 actions.update                   20-04-19 08:06:27 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.3/all.tar.gpg"...
   848 actions.update                   20-04-19 08:06:27 [   DEBUG]:   ... Not Modified
   848 actions.update                   20-04-19 08:06:27 [    INFO]: Downloading "https://appcenter.software-univention.de/meta-inf/4.2/index.json.gz"...

Hi @mangrovenjazz this is not the correct file, as of the date – April 19th. Univention put 18.0.4 live on 29th of April. You opened this topic on May first. So the potential log file(s) should cover that range.

hi @blizzz,
Here is the passage out of what

zcat appcenter.log.3.gz | less

gives me about that period. I’m struggling with zcat command and copying piece by piece. Hope it contains the information you’re interessted in (note that domain has been replaced by xxx.xxx.xx). As the post is limited me to 32000 caracters here are just some portions. For further information contact me.

14963 actions.upgrade                  20-05-01 17:12:39 [    INFO]: Going to upgrade Nextcloud Hub (18.0.4-0)
 14963 actions.upgrade                  20-05-01 17:12:40 [   DEBUG]: Calling prescript (preinst)
 14963 actions.upgrade                  20-05-01 17:12:40 [   DEBUG]: Calling /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/nextcloud_20200422233313.preinst --binddn uid=Administrator,cn=users,dc=xxxxx,dc=xx --locale de --old-version 18.0.3-0 --error-file /tmp/tmpNFudNm --version 18.0.4-0 --bindpwdfile /tmp/tmpF6EmPs
 14963 actions.upgrade                  20-05-01 17:12:40 [   DEBUG]: /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/nextcloud_20200422233313.preinst returned with 0
 14963 packages                         20-05-01 17:12:40 [   DEBUG]: Holding LOCK
 14963 actions.start                    20-05-01 17:12:40 [   DEBUG]: Calling start
 14963 actions.start.progress           20-05-01 17:12:40 [   DEBUG]: 0
 14963 actions.start                    20-05-01 17:12:40 [   DEBUG]: Calling /etc/init.d/docker-app-nextcloud start
 14963 actions.start                    20-05-01 17:12:40 [    INFO]: Starting docker-app-nextcloud (via systemctl): docker-app-nextcloud.service.
 14963 actions.start                    20-05-01 17:12:41 [   DEBUG]: /etc/init.d/docker-app-nextcloud returned with 0
 14963 actions.start.progress           20-05-01 17:12:41 [   DEBUG]: 100
 14963 actions.configure                20-05-01 17:12:41 [ WARNING]: Cannot write settings while 4.1/nextcloud=18.0.4-0 is not running
 14963 actions.upgrade                  20-05-01 17:12:41 [    INFO]: Executing interface update_available for nextcloud
 14963 actions.upgrade                  20-05-01 17:12:41 [    INFO]: No interface defined
 14963 actions.upgrade                  20-05-01 17:12:41 [    INFO]: Upgrading image (u'docker.software-univention.de/nextcloud:18.0.4-0')
 14963 actions.upgrade                  20-05-01 17:12:41 [    INFO]: Verifying Docker registry manifest for app image docker.software-univention.de/nextcloud:18.0.4-0
 14963 actions.upgrade                  20-05-01 17:12:41 [    INFO]: Pulling Docker image docker.software-univention.de/nextcloud:18.0.4-0
 14963 actions.upgrade                  20-05-01 17:12:41 [    INFO]: Downloading app image docker.software-univention.de/nextcloud:18.0.4-0
 14963 docker                           20-05-01 17:12:41 [    INFO]: Running command: docker pull docker.software-univention.de/nextcloud:18.0.4-0
....
14963 actions.stop                     20-05-01 17:14:06 [    INFO]: Stopping docker-app-nextcloud (via systemctl): docker-app-nextcloud.service.
 14963 actions.stop                     20-05-01 17:14:06 [   DEBUG]: /etc/init.d/docker-app-nextcloud returned with 0
 14963 actions.stop.progress            20-05-01 17:14:06 [   DEBUG]: 100
 14963 actions.upgrade                  20-05-01 17:14:06 [    INFO]: Removing old container
 14963 actions.upgrade                  20-05-01 17:14:06 [    INFO]: Setting up new container (4.1/nextcloud=18.0.4-0)
 14963 actions.upgrade                  20-05-01 17:14:06 [    INFO]: Creating data directories for nextcloud...
 14963 actions.upgrade                  20-05-01 17:14:06 [    INFO]: Copying /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/nextcloud_20200422233313.schema
 14963 actions.upgrade.progress         20-05-01 17:14:06 [   DEBUG]: 5
 14963 actions.upgrade                  20-05-01 17:14:06 [    INFO]: Registering UCR for nextcloud
 14963 actions.upgrade                  20-05-01 17:14:06 [    INFO]: Marking 4.1/nextcloud=18.0.4-0 as installed
 14963 actions.upgrade                  20-05-01 17:14:10 [    INFO]: Setting ports for apache proxy
 14963 actions.upgrade                  20-05-01 17:14:10 [    INFO]: Creating /etc/init.d/docker-app-nextcloud
 14963 actions.upgrade                  20-05-01 17:14:10 [   DEBUG]: Calling /usr/sbin/update-rc.d docker-app-nextcloud defaults 41 14
 14963 actions.upgrade                  20-05-01 17:14:10 [   DEBUG]: /usr/sbin/update-rc.d returned with 0
 14963 actions.upgrade                  20-05-01 17:14:10 [   DEBUG]: Calling /bin/systemctl daemon-reload
 14963 actions.upgrade                  20-05-01 17:14:10 [   DEBUG]: /bin/systemctl returned with 0
 14963 actions.upgrade                  20-05-01 17:14:10 [    INFO]: Adding localhost to LDAP object
 14963 actions.upgrade                  20-05-01 17:14:11 [    INFO]: Setting overview variables
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Changed: set(['nextcloud'])
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Local hosts are: ['xxx.xxx.xx', 'XXX.XXX.XX.XX']
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Matched 'ucs/web/overview/entries/service/nextcloud/label/de' -> 'Nextcloud'
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Matched 'ucs/web/overview/entries/service/nextcloud/link' -> '/nextcloud'
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Matched 'ucs/web/overview/entries/service/nextcloud/description' -> 'Secure data storage & digital collaboration in and outside your organization'
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Matched 'ucs/web/overview/entries/service/nextcloud/label' -> 'Nextcloud'
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Matched 'ucs/web/overview/entries/service/nextcloud/port_https' -> '443'
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Matched 'ucs/web/overview/entries/service/nextcloud/description/de' -> 'Daten sicher speichern, synchronisieren & teilen in und au\xc3\x9ferhalb Ihrer Organisation'
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Matched 'ucs/web/overview/entries/service/nextcloud/port_http' -> ''
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Matched 'ucs/web/overview/entries/service/nextcloud/icon' -> u'/univention/js/dijit/themes/umc/icons/scalable/apps-nextcloud_20200422233313.svg'
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Processing cn=nextcloud,cn=portal,cn=univention,dc=xxxxx,dc=xx
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Attrs: {'category': 'service', 'displayName': [('de_DE', 'Nextcloud'), ('en_US', 'Nextcloud')], 'name': 'nextcloud', 'description': [('en_US', 'Secure data storage & digital collaboration in and outside your organization'), ('de_DE', 'Daten sicher speichern, synchronisieren & teilen in und au\xc3\x9ferhalb Ihrer Organisation')], 'icon': u'x:
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Links: ['https://XXX.XXX.XX.XX/nextcloud', 'https://xxx.xxx.xx/nextcloud']
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Existing links: ['https://XXX.XXX.XX.XX/nextcloud', 'https://xxx.xxx.xx/nextcloud']
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: New links: ['https://XXX.XXX.XX.XX/nextcloud', 'https://xxx.xxx.xx/nextcloud']
 14963 portalentries                    20-05-01 17:14:11 [   DEBUG]: Modifying DN
 14963 actions.upgrade                  20-05-01 17:14:11 [   DEBUG]: Calling /etc/init.d/apache2 reload
 14963 actions.upgrade                  20-05-01 17:14:11 [    INFO]: Reloading apache2 configuration (via systemctl): apache2.service.
 14963 actions.upgrade                  20-05-01 17:14:11 [   DEBUG]: /etc/init.d/apache2 returned with 0
 14963 actions.upgrade.progress         20-05-01 17:14:11 [   DEBUG]: 10
 14963 database                         20-05-01 17:14:11 [   DEBUG]: 4.1/nextcloud=18.0.4-0 uses PostgreSQL
 14963 packages                         20-05-01 17:14:12 [   DEBUG]: Calling /usr/bin/apt-mark manual univention-postgresql
 14963 packages                         20-05-01 17:14:12 [    INFO]: univention-postgresql wurde bereits auf manuell installiert gesetzt.
 14963 database                         20-05-01 17:14:12 [   DEBUG]: Calling service postgresql start
 14963 database                         20-05-01 17:14:13 [   DEBUG]: Password already exists
 14963 database                         20-05-01 17:14:14 [    INFO]: Checking if database nextcloud exists (postgresql implementation)
 14963 database                         20-05-01 17:14:15 [    INFO]: Database nextcloud already exists
 14963 database                         20-05-01 17:14:15 [   DEBUG]: Database and User already exist
 14963 database                         20-05-01 17:14:15 [    INFO]: 4.1/nextcloud=18.0.4-0 already has its database
 14963 actions.upgrade.progress         20-05-01 17:14:15 [   DEBUG]: 15
 14963 actions.upgrade                  20-05-01 17:14:15 [    INFO]: Registering schema /usr/share/univention-appcenter/apps/nextcloud/nextcloud.schema
 14963 actions.upgrade.progress         20-05-01 17:14:17 [   DEBUG]: 25
 14963 actions.upgrade                  20-05-01 17:14:17 [    INFO]: Already found cn=nextc-59181308,cn=memberserver,cn=computers,dc=xxxxx,dc=eu as a host for nextcloud. Trying to retrieve machine secret.
 14963 actions.upgrade.progress         20-05-01 17:14:17 [   DEBUG]: 30
 14963 actions.upgrade                  20-05-01 17:14:17 [    INFO]: Verifying Docker registry manifest for app image docker.software-univention.de/nextcloud:18.0.4-0
 14963 actions.upgrade                  20-05-01 17:14:17 [    INFO]: Downloading app image docker.software-univention.de/nextcloud:18.0.4-0
 14963 docker                           20-05-01 17:14:17 [    INFO]: Running command: docker pull docker.software-univention.de/nextcloud:18.0.4-0
.....
14963 docker                           20-05-01 17:14:18 [    INFO]: Digest: sha256:8a8b1ae5eb3113d0804e2dbd2a97a25ccc91885c97507af023955e8f083aa793
 14963 docker                           20-05-01 17:14:18 [    INFO]: Status: Image is up to date for docker.software-univention.de/nextcloud:18.0.4-0
 14963 actions.upgrade                  20-05-01 17:14:18 [    INFO]: Initializing app image
 14963 database                         20-05-01 17:14:18 [   DEBUG]: 4.1/nextcloud=18.0.4-0 uses PostgreSQL
 14963 utils                            20-05-01 17:14:18 [    INFO]: Running command: docker create --hostname nextc-59181308 --env-file /var/lib/univention-appcenter/apps/nextcloud/nextcloud.env -p 40000:80/tcp -v /var/lib/univention-appcenter/apps/nextcloud/data:/var/lib/univention-appcenter/apps/nextcloud/data -v /etc/apt/apt.conf.d/80proxy:/etc/apt/apt.conf.d/80proxy:ro -v /var/lib/univention-appcenter/apps/nextcloud/conf:/var/lib/univention-appcenter/apps/nextcloud/conf -v /sys/fs/cgroup:/sys/fs/cgroup:ro --tmpfs /run --tmpfs /run/lock --security-opt seccomp:/etc/docker/seccomp-systemd.json -e container=docker docker.software-univention.de/nextcloud:18.0.4-0 /usr/sbin/entrypoint.sh
 14963 utils                            20-05-01 17:14:18 [    INFO]: 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54
 14963 actions.upgrade                  20-05-01 17:14:19 [    INFO]: Preconfiguring container 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54
 14963 actions.start                    20-05-01 17:14:19 [   DEBUG]: Calling start
 14963 actions.start.progress           20-05-01 17:14:19 [   DEBUG]: 0
 14963 actions.start                    20-05-01 17:14:19 [   DEBUG]: Calling /etc/init.d/docker-app-nextcloud start
 24385 cache                            20-05-01 17:14:19 [   DEBUG]: Cache outdated. Need to rebuild
 24385 cache                            20-05-01 17:14:20 [   DEBUG]: Loaded 142 apps from cache
 24385 cache                            20-05-01 17:14:20 [   DEBUG]: Cache outdated. Need to rebuild
 24385 cache                            20-05-01 17:14:20 [   DEBUG]: Loaded 243 apps from cache
 24385 cache                            20-05-01 17:14:20 [   DEBUG]: Cache outdated. Need to rebuild
 24385 cache                            20-05-01 17:14:20 [   DEBUG]: Loaded 219 apps from cache
 24385 cache                            20-05-01 17:14:20 [   DEBUG]: Cache outdated. Need to rebuild
 24385 cache                            20-05-01 17:14:21 [   DEBUG]: Loaded 399 apps from cache
 24385 actions.get                      20-05-01 17:14:21 [   DEBUG]: Calling get
 24385 actions.get.progress             20-05-01 17:14:21 [   DEBUG]: 0
 24385 actions.get                      20-05-01 17:14:21 [    INFO]: appcenter/apps/nextcloud/container
 24385 actions.get.progress             20-05-01 17:14:21 [   DEBUG]: 100
 24599 cache                            20-05-01 17:14:22 [   DEBUG]: Cache outdated. Need to rebuild
 24599 cache                            20-05-01 17:14:23 [   DEBUG]: Loaded 142 apps from cache
 24599 cache                            20-05-01 17:14:23 [   DEBUG]: Cache outdated. Need to rebuild
 24599 cache                            20-05-01 17:14:23 [   DEBUG]: Loaded 243 apps from cache
 24599 cache                            20-05-01 17:14:23 [   DEBUG]: Cache outdated. Need to rebuild
 24599 cache                            20-05-01 17:14:23 [   DEBUG]: Loaded 219 apps from cache
 24599 cache                            20-05-01 17:14:23 [   DEBUG]: Cache outdated. Need to rebuild
 24599 cache                            20-05-01 17:14:24 [   DEBUG]: Loaded 399 apps from cache
 24599 actions.get                      20-05-01 17:14:24 [   DEBUG]: Calling get
 24599 actions.get.progress             20-05-01 17:14:24 [   DEBUG]: 0
 24599 actions.get                      20-05-01 17:14:24 [    INFO]: appcenter/apps/nextcloud/ip
 24599 actions.get.progress             20-05-01 17:14:24 [   DEBUG]: 100
 14963 actions.start                    20-05-01 17:14:24 [    INFO]: Starting docker-app-nextcloud (via systemctl): docker-app-nextcloud.service.
 14963 actions.start                    20-05-01 17:14:24 [   DEBUG]: /etc/init.d/docker-app-nextcloud returned with 0
 14963 actions.start.progress           20-05-01 17:14:24 [   DEBUG]: 100
 14963 actions.upgrade                  20-05-01 17:14:27 [    INFO]: Running command: docker cp /etc/postgresql-nextcloud.secret 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54:/etc/postgresql-nextcloud.secret
 14963 docker.base.container.2522       20-05-01 17:14:28 [   DEBUG]: Using container.2522 for container 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54
 14963 docker.base.container.2522       20-05-01 17:14:28 [   DEBUG]: Calling docker exec -u root 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54 rm -f /etc/timezone /etc/localtime
 14963 docker.base                      20-05-01 17:14:28 [    INFO]: Running command: docker cp /etc/timezone 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54:/etc/timezone
 14963 docker.base                      20-05-01 17:14:29 [    INFO]: Running command: docker cp /etc/localtime 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54:/etc/localtime
 14963 actions.configure                20-05-01 17:14:30 [   DEBUG]: Calling configure
 14963 actions.configure.progress       20-05-01 17:14:30 [   DEBUG]: 0
 14963 actions.configure                20-05-01 17:14:30 [    INFO]: Configuring 4.1/nextcloud=18.0.4-0
 14963 docker.configure.container.2522  20-05-01 17:14:30 [   DEBUG]: Using container.2522 for container 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54
 14963 docker.configure.container.2522  20-05-01 17:14:30 [   DEBUG]: Calling docker exec -u root 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54 which ucr
 14963 actions.configure                20-05-01 17:14:30 [ WARNING]: ucr cannot be found, falling back to changing the database file directly
 14963 actions.configure.progress       20-05-01 17:14:30 [   DEBUG]: 100
 14963 actions.upgrade.progress         20-05-01 17:14:30 [   DEBUG]: 50
 14963 actions.upgrade                  20-05-01 17:14:30 [    INFO]: Executing interface restore_data_before_setup for nextcloud
 14963 actions.upgrade                  20-05-01 17:14:30 [    INFO]: Copying App Center's restore_data_before_setup to container's /usr/share/univention-docker-container-mode/restore_data_before_setup_custom
 14963 actions.upgrade.container.2522   20-05-01 17:14:30 [   DEBUG]: Using container.2522 for container 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54
 14963 actions.upgrade.container.2522   20-05-01 17:14:30 [   DEBUG]: Calling docker exec -u root 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54 /usr/share/univention-docker-container-mode/restore_data_before_setup_custom --app nextcloud --app-version 18.0.4-0 --error-file /var/univention/tmp/tmpEk2ksQ
 14963 actions.upgrade                  20-05-01 17:14:31 [    INFO]: Executing interface setup for nextcloud
 14963 actions.upgrade                  20-05-01 17:14:31 [    INFO]: Copying App Center's setup to container's /usr/share/univention-docker-container-mode/setup_custom
 14963 actions.upgrade.container.2522   20-05-01 17:14:31 [   DEBUG]: Using container.2522 for container 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54
 14963 actions.upgrade.container.2522   20-05-01 17:14:31 [   DEBUG]: Calling docker exec -u root 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54 /usr/share/univention-docker-container-mode/setup_custom --username Administrator --app nextcloud --error-file /var/univention/tmp/tmprc5CYb --password-file /var/univention/tmp/tmpJgAl4F --app-version 18.0.4-0
 14963 actions.upgrade.container.2522   20-05-01 17:14:31 [ WARNING]:
 14963 actions.upgrade.container.2522   20-05-01 17:14:31 [ WARNING]: Updating certificates in /etc/ssl/certs...
 14963 actions.upgrade.container.2522   20-05-01 17:14:33 [    INFO]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
 14963 actions.upgrade.container.2522   20-05-01 17:14:33 [    INFO]: You may use your browser or the occ upgrade command to do the upgrade
 14963 actions.upgrade.container.2522   20-05-01 17:14:34 [    INFO]: No such app enabled: updatenotification
 14963 actions.upgrade.container.2522   20-05-01 17:14:34 [    INFO]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
 14963 actions.upgrade.container.2522   20-05-01 17:14:34 [    INFO]: You may use your browser or the occ upgrade command to do the upgrade
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]: You may use your browser or the occ upgrade command to do the upgrade
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - installed: true
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - version: 18.0.4.2
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - versionstring: 18.0.4
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - edition:
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]: You may use your browser or the occ upgrade command to do the upgrade
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]: Enabled:
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - accessibility: 1.4.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - activity: 2.11.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - cloud_federation_api: 1.1.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - comments: 1.8.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - dav: 1.14.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - federatedfilesharing: 1.8.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - federation: 1.8.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - files: 1.13.1
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - files_pdfviewer: 1.7.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - files_rightclick: 0.15.2
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - files_sharing: 1.10.1
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - files_trashbin: 1.8.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - files_versions: 1.11.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - files_videoplayer: 1.7.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - firstrunwizard: 2.7.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - logreader: 2.3.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - lookup_server_connector: 1.6.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - nextcloud_announcements: 1.7.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - notifications: 2.6.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - oauth2: 1.6.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - onlyoffice: 4.1.4
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - password_policy: 1.8.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - photos: 1.0.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - privacy: 1.2.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - provisioning_api: 1.8.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - recommendations: 0.6.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - serverinfo: 1.8.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - settings: 1.0.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - sharebymail: 1.8.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - support: 1.1.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - survey_client: 1.6.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - systemtags: 1.8.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - text: 2.0.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - theming: 1.9.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - twofactor_backupcodes: 1.7.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - user_ldap: 1.8.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - viewer: 1.2.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - workflowengine: 2.0.0
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]: Disabled:
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - admin_audit
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - encryption
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - files_external
 14963 actions.upgrade.container.2522   20-05-01 17:14:35 [    INFO]:   - richdocuments
 14963 actions.upgrade.container.2522   20-05-01 17:14:58 [    INFO]: PHP Fatal error:  Cannot declare class OCA\Talk\Migration\Version8000Date20200407073807, because the name is already in use in /var/www/html/apps/spreed/lib/Migration/Version8000Date20200407073807.php on line 46
 14963 actions.upgrade.container.2522   20-05-01 17:14:58 [ WARNING]: The upgrade log is written to /var/log/nextcloud-upgrade_20_05_01.log within the nextcloud container
 14963 actions.upgrade.container.2522   20-05-01 17:14:58 [    INFO]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
 14963 actions.upgrade.container.2522   20-05-01 17:14:58 [    INFO]: You may use your browser or the occ upgrade command to do the upgrade
 14963 actions.upgrade.container.2522   20-05-01 17:15:00 [    INFO]: calendar enabled
 14963 actions.upgrade.container.2522   20-05-01 17:15:00 [    INFO]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
 14963 actions.upgrade.container.2522   20-05-01 17:15:00 [    INFO]: You may use your browser or the occ upgrade command to do the upgrade
 14963 actions.upgrade.container.2522   20-05-01 17:15:02 [    INFO]: contacts enabled
 14963 actions.upgrade.container.2522   20-05-01 17:15:02 [    INFO]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
 14963 actions.upgrade.container.2522   20-05-01 17:15:02 [    INFO]: You may use your browser or the occ upgrade command to do the upgrade
 14963 actions.upgrade.container.2522   20-05-01 17:15:04 [    INFO]: drawio enabled
 14963 actions.upgrade.container.2522   20-05-01 17:15:04 [    INFO]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
 14963 actions.upgrade.container.2522   20-05-01 17:15:04 [    INFO]: You may use your browser or the occ upgrade command to do the upgrade
 14963 actions.upgrade.container.2522   20-05-01 17:15:10 [    INFO]: spreed enabled
 14963 actions.upgrade.container.2522   20-05-01 17:15:11 [    INFO]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
 14963 actions.upgrade.container.2522   20-05-01 17:15:11 [    INFO]: You may use your browser or the occ upgrade command to do the upgrade
 14963 actions.upgrade.container.2522   20-05-01 17:15:15 [    INFO]: user_saml enabled
 14963 actions.upgrade.container.2522   20-05-01 17:15:16 [    INFO]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
 14963 actions.upgrade.container.2522   20-05-01 17:15:16 [    INFO]: You may use your browser or the occ upgrade command to do the upgrade
 14963 actions.upgrade.container.2522   20-05-01 17:15:16 [    INFO]: .htaccess has been updated
 14963 actions.upgrade                  20-05-01 17:15:16 [    INFO]: Executing interface restore_data_after_setup for nextcloud
 14963 actions.upgrade                  20-05-01 17:15:16 [    INFO]: Copying App Center's restore_data_after_setup to container's /usr/share/univention-docker-container-mode/restore_data_after_setup_custom
 14963 actions.upgrade.container.2522   20-05-01 17:15:16 [   DEBUG]: Using container.2522 for container 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54
 14963 actions.upgrade.container.2522   20-05-01 17:15:16 [   DEBUG]: Calling docker exec -u root 25222bb82ee150a36c12fd1b9380a2d995d98887628f55b1c7bb198650d6ef54 /usr/share/univention-docker-container-mode/restore_data_after_setup_custom --app nextcloud --app-version 18.0.4-0 --error-file /var/univention/tmp/tmp85h637
 14963 actions.update-certificates      20-05-01 17:15:17 [   DEBUG]: Calling update-certificates

Try:

univention-app shell nextcloud sudo -u www-data /var/www/html/occ db:add-missing-indices
univention-app shell nextcloud sudo -u www-data /var/www/html/occ upgrade
univention-app shell nextcloud sudo -u www-data /var/www/html/occ maintenance:mode --off

The first instruction adds possible missing indices to the database.
The second does the app-upgrade
The third turns off the maintenance mode.

If I see it right, you only did the second step in your first posting using the browser.

@Mornsgrans
Hi,
I was convinced the add-missing-incidices was just indicated if upgrade from version 13 (I think I read this somewhere when the upgrade finished). Nethertheless I did:
$ univention-app shell nextcloud sudo -u www-data /var/www/html/occ db:add-missing-indices
which gave me:

Check indices of the share table.
Check indices of the filecache table.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Adding calendarobject_calid_index index to the calendarobjects_props table, this can take some time...
calendarobjects_props table updated successfully.
Check indices of the schedulingobjects table.
Adding schedulobj_principuri_index index to the schedulingobjects table, this can take some time...
schedulingobjects table updated successfully.

It found some items to update, do you think this could have blocked the upgrade from appcenter?

Concerning the 2 other steps: I first turned off maintenance mode as described above and the browser window to nextcloud allowed me to finish the upgrade.

It may be possible, that missing indices may block the updates from appcenter.
My last three Nextcloud - updates ended with getting stuck in maintenance mode.
I always could finish the upgrade with the three instructions I posted above. After that procedure my Nextcloud started and ran properly. At every update new indices had been added.

I recommend to run the updates first and then finally turn off the maintenance mode to prevent from client logins, which may lead to inconsistency. - I believe, that there is a special reason, why these updates are done in Nextcloud while maintenance mode is on.

Hint:
Please also check the Nextcloud logfile:
If Nextcloud gets stuck in maintenance mode, the loglevel might be in the wrong mode and the logfile becomes flooded by messages (several GBytes per hour).

See Nextcloud 18.02 massive log flooding with LDAP Errors

Hi @Mornsgrans, checked that:

  • Change the value of the line
    ’loglevel’ => 0,
    to
    ’loglevel’ => 2,
  • and safe the file.

It was set to 0 as in your case. Changed loglevel to 2. Where do I find Nextcloud logfile?

The Nextcloud logfile can be found in

/var/lib/univention-appcenter/apps/nextcloud/data/nextcloud-data

If I’m right to search for:

> Deprecated event type for OCA\User_LDAP\User\User::postLDAPBackendAdded: null
Yes, there are a lot of these. May be this was the reason why some clients should reconnect multiple times after arbitrairy deconnection by the system? Hope loglevel=>2, will solve the problem.