Maintenance mode during upgrade from NC 17.0.9 to 18.0.9

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 17.0.9 - 18.0.9):
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.04.5
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.29
PHP version (eg, 7.1): 7.2.24

The issue you are facing: I upgraded from 17.0.2 to 17.0.9 in the browser updater without issue. Then, in Settings>Overview, it showed another update, to 18.0.9, so I clicked that. It did the download bit and then returned me to Nextcloud to complete the upgrade and then gave me a warning that the apps would be upgraded and some would be disabled because they were incompatible.
It started upgrading apps and then suddenly switched to maintenance mode. It’s been in that state for twenty minutes or so and I am getting very nervous. Am I right to be?

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. I can’t, because it’s frozen.

The output of your Nextcloud log in Admin > Logging:

Unavailable at the moment.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):


  GNU nano 2.9.3                      config.php                                

<?php
$CONFIG = array (
  'instanceid' => '*********',
  'passwordsalt' => '*****************',
  'secret' => '******************',
  'trusted_domains' => 
  array (
    0 => '**********',
    2 => '*********',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '17.0.9.2',
  'overwrite.cli.url' => 'http://192.********/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,

^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line

The output of your Apache/nginx/system log in /var/log/____:

  GNU nano 2.9.3                      error.log                                 

[Thu Sep 24 06:25:01.639879 2020] [http2:warn] [pid 23835] AH10034: The mpm mod$
[Thu Sep 24 06:25:01.667949 2020] [mpm_prefork:notice] [pid 23835] AH00163: Apa$
[Thu Sep 24 06:25:01.667970 2020] [core:notice] [pid 23835] AH00094: Command li$
[Thu Sep 24 07:20:00.978070 2020] [php7:error] [pid 19068] [client 139.196.229.$
[Thu Sep 24 08:32:42.004319 2020] [authz_core:error] [pid 15001] [client 192.16$
[Thu Sep 24 09:26:43.484053 2020] [php7:error] [pid 20254] [client 176.113.115.$
[Thu Sep 24 09:27:06.945796 2020] [authz_core:error] [pid 20254] [client 192.16$
[Thu Sep 24 10:25:23.963032 2020] [php7:error] [pid 25563] [client 137.117.178.$
[Thu Sep 24 10:29:13.971595 2020] [php7:error] [pid 25377] [client 104.131.13.2$
[Thu Sep 24 10:29:13.972047 2020] [php7:error] [pid 26633] [client 104.131.13.2$
[Thu Sep 24 10:58:40.994771 2020] [php7:error] [pid 25378] [client 104.131.13.2$
[Thu Sep 24 12:12:16.783695 2020] [authz_core:error] [pid 27871] [client 192.16$
[Thu Sep 24 12:26:15.134642 2020] [authz_core:error] [pid 29767] [client 192.16$
[Thu Sep 24 12:54:35.798947 2020] [php7:error] [pid 28899] [client 159.89.2.220$
[Thu Sep 24 13:14:31.578949 2020] [php7:error] [pid 29767] [client 148.72.42.18$
[Thu Sep 24 13:31:30.237518 2020] [authz_core:error] [pid 29571] [client 192.16$
[Thu Sep 24 13:41:23.216808 2020] [mpm_prefork:notice] [pid 23835] AH00169: cau$
[Thu Sep 24 13:41:52.318796 2020] [http2:warn] [pid 1359] AH10034: The mpm modu$
[Thu Sep 24 13:41:52.547237 2020] [mpm_prefork:notice] [pid 1359] AH00163: Apac$



I’m guessing this is what’s needed: it’s the error log from the Apache2 folder in /var/log/
I’m leaving it on and going out for a while, to unwind. :confounded:

Any help or reassurance much appreciated.

Hi.

I’ve run into an issue like this before. Here’s what I did to resolve it.

don’t forget, if it’s a VM, take a snapshot before you do anything major so you can recover.

1 Like

Thank you, copenhaus. The link showed me how to turn off maintenance and the upgrade then went ahead.
I’m back, with a lovely, shiny, far more up to date Nextcloud. Thanks again.

Edited because I’d said something stupid. I’ve been doing some more research and understand my error.