Iâve updated Nextcloud 12.0.4-1. Anyway, the update failed : Nextcloud is âunder maintenanceâ and doesnât work at all. Everything else (OpenLDAP, Surricata, SOGo, webmail and so on) works fine on my server.
Removing and reinstalling ânextcloudâ and ânethserver-nextcloudâ didnât solve the problem.
Yum log with my latest updates :
Dec 20 06:19:35 Updated: collectd-5.8.0-1.el7.x86_64
Dec 20 06:20:18 Updated: nextcloud-12.0.4-1.el7.noarch
Dec 20 06:20:18 Updated: nethserver-nextcloud-1.1.9-1.ns7.noarch
Dec 20 06:20:18 Updated: collectd-rrdtool-5.8.0-1.el7.x86_64
Dec 20 06:20:18 Updated: collectd-ping-5.8.0-1.el7.x86_64
Do you have any idea ?
Thanks dnutan. These are the errors logged in /var/log/messages and related to nextcloud :
Dec 20 06:20:41 services esmith::event[24752]: Event: nethserver-nextcloud-update
Dec 20 06:20:42 services esmith::event[24752]: Migrating existing database fwservices
Dec 20 06:20:42 services dbus[974]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service'
Dec 20 06:20:42 services dbus-daemon: dbus[974]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service'
Dec 20 06:20:42 services systemd: Starting Time & Date Service...
Dec 20 06:20:42 services dbus-daemon: dbus[974]: [system] Successfully activated service 'org.freedesktop.timedate1'
Dec 20 06:20:42 services dbus[974]: [system] Successfully activated service 'org.freedesktop.timedate1'
Dec 20 06:20:42 services systemd: Started Time & Date Service.
Dec 20 06:20:42 services esmith::event[24752]: Migrating existing database certificates
Dec 20 06:20:42 services esmith::event[24752]: Migrating existing database portforward
Dec 20 06:20:42 services esmith::event[24752]: Migrating existing database accounts
Dec 20 06:20:42 services esmith::event[24752]: Migrating existing database networks
Dec 20 06:20:42 services esmith::event[24752]: Migrating existing database hosts
Dec 20 06:20:42 services esmith::event[24752]: Migrating existing database routes
Dec 20 06:20:43 services esmith::event[24752]: Migrating existing database fwrules
Dec 20 06:20:43 services esmith::event[24752]: Migrating existing database dhcp
Dec 20 06:20:43 services esmith::event[24752]: Migrating existing database getmail
Dec 20 06:20:43 services esmith::event[24752]: Migrating existing database proxypass
Dec 20 06:20:43 services esmith::event[24752]: Migrating existing database configuration
Dec 20 06:20:43 services esmith::event[24752]: Migrating existing database domains
Dec 20 06:20:43 services esmith::event[24752]: Migrating existing database tc
Dec 20 06:20:43 services esmith::event[24752]: Action: /etc/e-smith/events/nethserver-nextcloud-update/S00initialize-default-databases SUCCESS [2.5427]
Dec 20 06:20:44 services esmith::event[24752]: expanding /etc/httpd/conf.d/default-virtualhost.inc
Dec 20 06:20:45 services esmith::event[24752]: expanding /etc/httpd/conf.d/nethserver.conf
Dec 20 06:20:45 services esmith::event[24752]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [1.437468]
Dec 20 06:20:45 services esmith::event[24752]: /etc/e-smith/events/nethserver-nextcloud-update/S20nethserver-nextcloud-conf: line 8: runuser: command not found
Dec 20 06:20:45 services esmith::event[24752]: /etc/e-smith/events/nethserver-nextcloud-update/S20nethserver-nextcloud-conf: line 8: runuser: command not found
Dec 20 06:20:45 services esmith::event[24752]: /etc/e-smith/events/nethserver-nextcloud-update/S20nethserver-nextcloud-conf: line 8: runuser: command not found
Dec 20 06:20:45 services esmith::event[24752]: /etc/e-smith/events/nethserver-nextcloud-update/S20nethserver-nextcloud-conf: line 8: runuser: command not found
Dec 20 06:20:45 services esmith::event[24752]: /etc/e-smith/events/nethserver-nextcloud-update/S20nethserver-nextcloud-conf: line 8: runuser: command not found
Dec 20 06:20:45 services esmith::event[24752]: Action: /etc/e-smith/events/nethserver-nextcloud-update/S20nethserver-nextcloud-conf FAILED: 127 [0.556776]
Dec 20 06:20:46 services su: (to apache) root on none
Dec 20 06:20:47 services esmith::event[24752]: Cannot load Zend OPcache - extension already loaded
Dec 20 06:20:49 services esmith::event[24752]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Dec 20 06:20:49 services esmith::event[24752]: You may use your browser or the occ upgrade command to do the upgrade
Dec 20 06:20:49 services esmith::event[24752]: System config value trusted_domains => 0 set to string localhost
Dec 20 06:20:49 services su: (to apache) root on none
Dec 20 06:20:49 services esmith::event[24752]: Cannot load Zend OPcache - extension already loaded
Dec 20 06:20:50 services esmith::event[24752]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Dec 20 06:20:50 services esmith::event[24752]: You may use your browser or the occ upgrade command to do the upgrade
Dec 20 06:20:50 services esmith::event[24752]: System config value trusted_domains => 1 set to string #[* FQDN REMOVED FROM LOG *]
Dec 20 06:20:51 services su: (to apache) root on none
Dec 20 06:20:51 services esmith::event[24752]: Cannot load Zend OPcache - extension already loaded
Dec 20 06:20:52 services esmith::event[24752]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Dec 20 06:20:52 services esmith::event[24752]: You may use your browser or the occ upgrade command to do the upgrade
Dec 20 06:20:52 services esmith::event[24752]: System config value trusted_domains => 2 set to string #[* IP REMOVED FROM LOG *]
Dec 20 06:20:52 services su: (to apache) root on none
Dec 20 06:20:52 services esmith::event[24752]: Cannot load Zend OPcache - extension already loaded
Dec 20 06:20:53 services esmith::event[24752]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Dec 20 06:20:53 services esmith::event[24752]: You may use your browser or the occ upgrade command to do the upgrade
Dec 20 06:20:53 services esmith::event[24752]: System config value trusted_domains => 3 set to string #[* IP REMOVED FROM LOG *]
Dec 20 06:20:54 services su: (to apache) root on none
Dec 20 06:20:54 services esmith::event[24752]: Cannot load Zend OPcache - extension already loaded
Dec 20 06:20:55 services esmith::event[24752]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Dec 20 06:20:55 services esmith::event[24752]: You may use your browser or the occ upgrade command to do the upgrade
Dec 20 06:20:55 services esmith::event[24752]:
Dec 20 06:20:55 services esmith::event[24752]:
Dec 20 06:20:55 services esmith::event[24752]: [Symfony\Component\Console\Exception\CommandNotFoundException]
Dec 20 06:20:55 services esmith::event[24752]: There are no commands defined in the "ldap" namespace.
Dec 20 06:20:55 services esmith::event[24752]:
Dec 20 06:20:55 services esmith::event[24752]:
Dec 20 06:20:55 services su: (to apache) root on none
Ok, the command is located exactly where it is supposed to be.
Iâve never user this one, but the man page says : ârun a command with
substitute user and group IDâ.
Cannot load Zend OPcache - extension already loaded
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
2017-12-21T12:30:23+00:00 Set log level to debug
2017-12-21T12:30:23+00:00 Repair step: Repair MySQL collation
2017-12-21T12:30:23+00:00 Repair info: Not a mysql database -> nothing to do
2017-12-21T12:30:23+00:00 Repair step: Repair SQLite autoincrement
2017-12-21T12:31:13+00:00 Repair step: Copy data from accounts table
when migrating from ownCloud
2017-12-21T12:31:13+00:00 Repair step: Drop account terms table when
migrating from ownCloud
2017-12-21T12:31:13+00:00 Updating database schema
2017-12-21T12:31:13+00:00 Updated database
2017-12-21T12:31:13+00:00 Disabled 3rd-party app: audioplayer
2017-12-21T12:31:13+00:00 Disabled 3rd-party app: bookmarks
2017-12-21T12:31:13+00:00 Disabled 3rd-party app: calendar
2017-12-21T12:31:13+00:00 Disabled 3rd-party app: contacts
2017-12-21T12:31:13+00:00 Disabled 3rd-party app: files_reader
2017-12-21T12:31:14+00:00 Disabled 3rd-party app: socialsharing_diaspora
2017-12-21T12:31:14+00:00 Disabled 3rd-party app: socialsharing_email
2017-12-21T12:31:14+00:00 Disabled 3rd-party app: socialsharing_facebook
2017-12-21T12:31:14+00:00 Disabled 3rd-party app: socialsharing_googleplus
2017-12-21T12:31:14+00:00 Disabled 3rd-party app: socialsharing_twitter
2017-12-21T12:31:14+00:00 Disabled 3rd-party app: tasks
2017-12-21T12:31:14+00:00 Checking for update of app activity in appstore
2017-12-21T12:31:17+00:00 Checked for update of app âactivityâ in appstore
2017-12-21T12:31:17+00:00 Checking for update of app comments in appstore
2017-12-21T12:31:17+00:00 Checked for update of app âcommentsâ in appstore
2017-12-21T12:31:17+00:00 Checking for update of app dav in appstore
2017-12-21T12:31:17+00:00 Checked for update of app âdavâ in appstore
2017-12-21T12:31:17+00:00 Checking for update of app
federatedfilesharing in appstore
2017-12-21T12:31:17+00:00 Checked for update of app
"federatedfilesharing" in appstore
2017-12-21T12:31:17+00:00 Checking for update of app federation in appstore
2017-12-21T12:31:17+00:00 Checked for update of app âfederationâ in
appstore
2017-12-21T12:31:17+00:00 Checking for update of app files in appstore
2017-12-21T12:31:17+00:00 Checked for update of app âfilesâ in appstore
2017-12-21T12:31:17+00:00 Checking for update of app files_pdfviewer in
appstore
2017-12-21T12:31:17+00:00 Checked for update of app âfiles_pdfviewerâ in
appstore
2017-12-21T12:31:17+00:00 Checking for update of app files_sharing in
appstore
2017-12-21T12:31:17+00:00 Checked for update of app âfiles_sharingâ in
appstore
2017-12-21T12:31:17+00:00 Checking for update of app files_texteditor in
appstore
2017-12-21T12:31:17+00:00 Checked for update of app âfiles_texteditor"
in appstore
2017-12-21T12:31:17+00:00 Checking for update of app files_trashbin in
appstore
2017-12-21T12:31:17+00:00 Checked for update of app âfiles_trashbinâ in
appstore
2017-12-21T12:31:17+00:00 Checking for update of app files_versions in
appstore
2017-12-21T12:31:17+00:00 Checked for update of app âfiles_versionsâ in
appstore
2017-12-21T12:31:17+00:00 Checking for update of app files_videoplayer
in appstore
2017-12-21T12:31:18+00:00 Checked for update of app âfiles_videoplayer"
in appstore
2017-12-21T12:31:18+00:00 Checking for update of app firstrunwizard in
appstore
2017-12-21T12:31:18+00:00 Checked for update of app âfirstrunwizardâ in
appstore
2017-12-21T12:31:18+00:00 Checking for update of app gallery in appstore
2017-12-21T12:31:18+00:00 Checked for update of app âgalleryâ in appstore
2017-12-21T12:31:18+00:00 Checking for update of app logreader in appstore
2017-12-21T12:31:18+00:00 Checked for update of app âlogreaderâ in appstore
2017-12-21T12:31:18+00:00 Checking for update of app
lookup_server_connector in appstore
2017-12-21T12:31:18+00:00 Checked for update of app
"lookup_server_connectorâ in appstore
2017-12-21T12:31:18+00:00 Checking for update of app
nextcloud_announcements in appstore
2017-12-21T12:31:18+00:00 Checked for update of app
"nextcloud_announcementsâ in appstore
2017-12-21T12:31:18+00:00 Checking for update of app notifications in
appstore
2017-12-21T12:31:18+00:00 Checked for update of app ânotificationsâ in
appstore
2017-12-21T12:31:18+00:00 Checking for update of app oauth2 in appstore
2017-12-21T12:31:18+00:00 Checked for update of app âoauth2â in appstore
2017-12-21T12:31:18+00:00 Checking for update of app password_policy in
appstore
2017-12-21T12:31:18+00:00 Checked for update of app âpassword_policyâ in
appstore
2017-12-21T12:31:18+00:00 Checking for update of app provisioning_api in
appstore
2017-12-21T12:31:18+00:00 Checked for update of app âprovisioning_api"
in appstore
2017-12-21T12:31:18+00:00 Checking for update of app serverinfo in appstore
2017-12-21T12:31:18+00:00 Checked for update of app âserverinfoâ in
appstore
2017-12-21T12:31:18+00:00 Checking for update of app sharebymail in appstore
2017-12-21T12:31:18+00:00 Checked for update of app âsharebymailâ in
appstore
2017-12-21T12:31:18+00:00 Checking for update of app survey_client in
appstore
2017-12-21T12:31:18+00:00 Checked for update of app âsurvey_clientâ in
appstore
2017-12-21T12:31:18+00:00 Checking for update of app systemtags in appstore
2017-12-21T12:31:18+00:00 Checked for update of app âsystemtagsâ in
appstore
2017-12-21T12:31:18+00:00 Checking for update of app theming in appstore
2017-12-21T12:31:18+00:00 Checked for update of app âthemingâ in appstore
2017-12-21T12:31:18+00:00 Checking for update of app
twofactor_backupcodes in appstore
2017-12-21T12:31:18+00:00 Checked for update of app
"twofactor_backupcodesâ in appstore
2017-12-21T12:31:18+00:00 Checking for update of app updatenotification
in appstore
2017-12-21T12:31:19+00:00 Checked for update of app "updatenotification"
in appstore
2017-12-21T12:31:19+00:00 Checking for update of app user_ldap in appstore
2017-12-21T12:31:19+00:00 Checked for update of app âuser_ldapâ in appstore
2017-12-21T12:31:19+00:00 Checking for update of app workflowengine in
appstore
2017-12-21T12:31:19+00:00 Checked for update of app âworkflowengineâ in
appstore
2017-12-21T12:31:19+00:00 Repair step: Repair MySQL collation
2017-12-21T12:31:19+00:00 Repair info: Not a mysql database -> nothing to do
2017-12-21T12:31:19+00:00 Repair step: Repair mime types
2017-12-21T12:31:19+00:00 Repair step: Clean tags and favorites
2017-12-21T12:31:19+00:00 Repair info: 0 tags of deleted users have been
removed.
2017-12-21T12:31:19+00:00 Repair info: 0 tags for delete files have been
removed.
2017-12-21T12:31:19+00:00 Repair info: 0 tag entries for deleted tags
have been removed.
2017-12-21T12:31:19+00:00 Repair info: 0 tags with no entries have been
removed.
2017-12-21T12:31:19+00:00 Repair step: Repair invalid shares
2017-12-21T12:31:19+00:00 Repair step: Remove shares of a users root folder
2017-12-21T12:31:20+00:00 Repair step: Move .step file of updater to
backup location
2017-12-21T12:31:20+00:00 Repair step: Add move avatar background job
2017-12-21T12:31:20+00:00 Repair info: Repair step already executed
2017-12-21T12:31:20+00:00 Repair step: Add preview cleanup background jobs
2017-12-21T12:31:20+00:00 Repair step: Fix potential broken mount points
2017-12-21T12:31:20+00:00 Repair info: No mounts updated
2017-12-21T12:31:20+00:00 Repair step: Repair language codes
2017-12-21T12:31:20+00:00 Repair step: Install new core bundle components
2017-12-21T12:31:20+00:00 Repair step: Repair invalid paths in file cache
2017-12-21T12:31:20+00:00 Repair step: Rename folder with user specific keys
2017-12-21T12:31:20+00:00 Starting code integrity checkâŠ
2017-12-21T12:32:12+00:00 Finished code integrity check
2017-12-21T12:32:12+00:00 Update successful
2017-12-21T12:32:12+00:00 Maintenance mode is kept active
2017-12-21T12:32:12+00:00 Reset log level
Cannot load Zend OPcache - extension already loaded
Nextcloud is in maintenance mode - no app have been loaded
<warning>Nextcloud is in maintenance mode</warning>
Maybe an upgrade is already in process. Please check the logfile
(data/nextcloud.log). If you want to re-run the upgrade procedure,
remove the "maintenance mode" from config.php and call this script again.
So i tried to check the log file, but it was empty.
cat /usr/share/nextcloud/data/nextcloud.log
Then, i opened config.php nano /usr/share/nextcloud/config/config.php
âŠand turned the maintenance mode to âfalseâ in the config file. 'maintenance' => false,
Finally, i re-run your command and IT FINALLY WORKED ! :-d :-d :-d source /opt/rh/rh-php56/enable; runuser -s /bin/bash apache -c "/usr/share/nextcloud/occ upgrade -vvv"
Glad you got it working. If config.php has dbtype as mysql, and ldap users are able to login, Iâd say the problem is solved.
/cc @giacomo, @alep: do you want to ask something more to know the source of the problem?
I knew stephdl is french and that he needed help funding his server a
few time ago, but could not help at that time - neither now,
unfortunately, in fact.
I agree, problem is solved but iâll wait tomorrow before tagging this
subject as [solved].
Yesterday evening I also did an update on Nextcloud and also ran into troubles, after a peek in the log i saw there was a problem with the database-connection. In my case the password of the nextcloud database user as stored in /usr/share/nextcloud/config/config.php seemed to have changed by the update (is this normal?). After changing the password for user nextcloud in the database via phpmyadmin with the one in config.php and running the update again as stated earlier in this post, Nextcloud was marching again.
I didnât see any error neither ; my final thought was a missing
instruction inside the template associated with the update in order to
disable the maintenance mode in php.ini after the update itself.
No third party software at all, neither third party repository.
Why would i change perfect choices ?
Well, a few months ago i had to restore a backup on an other machine due to faulty hardware, but i cannot recall if i had to temper with the database password or the password in the config-file. I will monitor closely with the next update on Nextcloud whether this happens again.