[Solved] Nethserver v7.4 : update to Nextcloud 12.0.4-1 failed

NethServer Version: 7.4
Module: Nextcloud

Hi all,

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.

Stef

Look for errors related to nethserver-nextcloud-update event in /var/log/messages.

1 Like

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

can you locate runuser command on your system?

# whereis runuser
  /usr/sbin/runuser
1 Like

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”.

is /usr/sbin in the PATH?

echo $PATH
1 Like

I see what you mean. Yes it is, echo $PATH gives me :
/sbin/e-smith:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

Can you provide the output of:

rpm -qa \*nextcloud \*php\*
ls -la /usr/share/nextcloud/
1 Like

Once again, thanks for your help. It’s time for lunch, don’t forget it :slight_smile:

rpm -qa *nextcloud *php* gives me the following output :

php-imap-5.4.16-7.el7.x86_64
nextcloud-12.0.4-1.el7.noarch
nethserver-php-1.2.0-1.ns7.noarch
rh-php56-runtime-2.3-1.el7.x86_64
php54-php-pear-1.9.4-10.el7.noarch
php-mysql-5.4.16-43.el7_4.x86_64
sclo-php56-php-smbclient-0.9.0-1.el7.x86_64
php-pear-Auth-SASL-1.0.6-5.el7.noarch
php-pear-Net-Sieve-1.3.4-4.el7.noarch
php-common-5.4.16-43.el7_4.x86_64
php54-php-cli-5.4.40-4.el7.x86_64
rh-php56-php-pdo-5.6.25-1.el7.x86_64
php-pspell-5.4.16-43.el7_4.x86_64
rh-php56-php-mbstring-5.6.25-1.el7.x86_64
php54-php-pecl-zendopcache-7.0.4-3.el7.x86_64
php-pear-Net-LDAP2-2.1.0-1.el7.noarch
php-pear-Net-IDNA2-0.1.1-10.el7.noarch
rh-php56-php-pecl-jsonc-1.3.6-3.el7.x86_64
php-5.4.16-43.el7_4.x86_64
rh-php56-php-cli-5.6.25-1.el7.x86_64
php-ldap-5.4.16-43.el7_4.x86_64
rh-php56-php-intl-5.6.25-1.el7.x86_64
php-process-5.4.16-43.el7_4.x86_64
rh-php56-2.3-1.el7.x86_64
php-pecl-igbinary-1.2.1-1.el7.x86_64
sclo-php56-php-pecl-apcu-4.0.10-1.el7.x86_64
php54-php-xml-5.4.40-4.el7.x86_64
php-pecl-zendopcache-7.0.5-2.el7.x86_64
rh-php56-php-opcache-5.6.25-1.el7.x86_64
php-pear-1.9.4-21.el7.noarch
php-kolab-net-ldap3-1.0.3-1.el7.noarch
php54-runtime-2.0-1.el7.x86_64
rh-php56-php-common-5.6.25-1.el7.x86_64
php-cli-5.4.16-43.el7_4.x86_64
rh-php56-php-xml-5.6.25-1.el7.x86_64
php-xml-5.4.16-43.el7_4.x86_64
rh-php56-php-ldap-5.6.25-1.el7.x86_64
php-gd-5.4.16-43.el7_4.x86_64
rh-php56-php-pear-1.9.5-4.el7.noarch
php-pecl-apcu-4.0.11-1.el7.x86_64
php54-php-process-5.4.40-4.el7.x86_64
php-pecl-memcached-2.2.0-1.el7.x86_64
php-pear-Mail-Mime-1.10.2-1.el7.noarch
php-pear-Net-Socket-1.0.14-1.el7.noarch
php-pear-Net-SMTP-1.7.3-1.el7.noarch
php54-php-common-5.4.40-4.el7.x86_64
php-pdo-5.4.16-43.el7_4.x86_64
rh-php56-php-fpm-5.6.25-1.el7.x86_64
php-mbstring-5.4.16-43.el7_4.x86_64
rh-php56-php-process-5.6.25-1.el7.x86_64
rh-php56-php-gd-5.6.25-1.el7.x86_64
nethserver-nextcloud-1.1.9-1.ns7.noarch
php-mcrypt-5.4.16-7.el7.x86_64
php-pgsql-5.4.16-43.el7_4.x86_64
rh-php56-php-mysqlnd-5.6.25-1.el7.x86_64
php-intl-5.4.16-43.el7_4.x86_64
nethserver-rh-php56-php-fpm-1.0.0-1.ns7.noarch
php-pecl-msgpack-0.5.5-5.el7.x86_64

Then, ls -la /usr/share/nextcloud/

drwxr-xr-x 16 root apache 4096 Dec 20 14:06 .
drwxr-xr-x. 132 root root 4096 Dec 5 06:09 

drwxr-xr-x 33 apache apache 4096 Dec 20 14:05 3rdparty
drwxr-x— 55 apache apache 4096 Dec 20 14:06 apps
drwxr-x— 2 apache apache 4096 Dec 14 09:36 assets
-rwxr-xr-x 1 apache apache 8868 Dec 4 08:18 AUTHORS
drwxrwxr-x 2 apache apache 4096 Dec 20 14:06 config
-rwxr-xr-x 1 apache apache 4050 Dec 4 08:18 console.php
drwxr-xr-x 16 apache apache 4096 Dec 20 14:06 core
-rwxr-xr-x 1 apache apache 5057 Dec 4 08:18 cron.php
drwxrwxr-x 2 apache apache 4096 Dec 14 09:36 data
-rwxr-xr-x 1 apache apache 41077 Dec 4 08:18 db_structure.xml
-rw-r–r-- 1 apache apache 2697 Dec 4 08:18 .htaccess
-rw-r–r-- 1 apache apache 2851 Dec 20 09:23 .htaccess.rpmsave
-rwxr-xr-x 1 apache apache 179 Dec 4 08:18 index.html
-rwxr-xr-x 1 apache apache 2804 Dec 4 08:18 index.php
drwxr-xr-x 3 apache apache 4096 Dec 20 14:06 l10n
drwxr-xr-x 6 apache apache 4096 Dec 20 14:06 lib
-rwxr-xr-x 1 apache apache 283 Dec 4 08:18 occ
drwxr-xr-x 2 apache apache 4096 Dec 20 14:06 ocs
drwxr-xr-x 2 apache apache 4096 Dec 20 14:06 ocs-provider
-rwxr-xr-x 1 apache apache 3152 Dec 4 08:18 public.php
-rwxr-xr-x 1 apache apache 5323 Dec 4 08:18 remote.php
drwxr-xr-x 4 apache apache 4096 Dec 20 14:06 resources
-rwxr-xr-x 1 apache apache 26 Dec 4 08:18 robots.txt
drwxr-xr-x 14 apache apache 4096 Dec 20 14:06 settings
-rwxr-xr-x 1 apache apache 2110 Dec 4 08:18 status.php
drwxr-xr-x 3 apache apache 4096 Dec 20 14:06 themes
drwxr-x— 2 apache apache 4096 Dec 20 14:06 updater
-rw-r–r-- 1 apache apache 163 Dec 4 08:18 .user.ini
-rw-r–r-- 1 apache apache 163 Jun 16 2017 .user.ini.rpmsave
-rwxr-xr-x 1 apache apache 481 Dec 4 08:22 version.php

1 Like

Bon appétit!

Everything seems fine. Could you try to upgrade from command line and share the outcome?:

source /opt/rh/rh-php56/enable; runuser -s /bin/bash apache -c "/usr/share/nextcloud/occ upgrade -vvv"

Or as NethServer manual says:

su - apache -s /bin/bash -c "source /opt/rh/rh-php56/enable; cd /usr/share/nextcloud/; php occ upgrade -vvv"
2 Likes

Oh, mais tu es francophone :slight_smile: ; avant de te donner la sortie je vais te
poser une petite question en anglais afin que tout le monde profite de
ta rĂ©ponse : mĂȘme s’il n’est pas possible d’avoir de certitude,
j’aimerais avoir ton avis. Merci par avance :
After solving this problem, i plan to disable Nextcloud updates in the
repos. I know how to do it, that’s not the point. I wonder if later
updates from PHP or any piece of software linked to Nextcloud could
affect it.

Now, the output. The update finally failed :

source /opt/rh/rh-php56/enable; runuser -s /bin/bash apache -c
"/usr/share/nextcloud/occ upgrade -vvv"

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

It Works ! MERCI BEAUCOUP / THANKS A LOT !
Here is what i’ve done following after it failed.

I tried to re-run your command

source /opt/rh/rh-php56/enable; runuser -s /bin/bash apache -c "/usr/share/nextcloud/occ upgrade -vvv"


which gave me the following output :

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"

Thanks a lot dnutan, i wish you a happy new year !
TrĂšs bonnes fĂȘtes de fin d’annĂ©e ! :slight_smile:

Stef

Not french but can read/understand it a bit.:sweat_smile: Here you’ll find some francophone folks, like @stephdl who has made many contributions like these community modules.

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?

2 Likes

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].

Bye.

Thank you @stef and @dnutan , to mark a topic as solved please see

https://community.nethserver.org/t/howto-mark-a-topic-as-solved/1750

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.

1 Like

I cant see the error cause inside the logs. @stef did you have installed someextra NextCloud applications?

No is not :frowning: Did you changed the password before with phpmyadmin or this is the first modification by hand?

Hi Giacomo,

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 ? :slight_smile:

Stef

1 Like

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.