Use command line interface to activate maintenance mode

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, 20.0.5): 20.0.5
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.48
PHP version (eg, 7.4): 7.4

The issue you are facing:
After enabling the Extractor(?) add-on, I lost all access to the Nextcloud interface.

Is there a way for me to put nextcloud into maintenance mode via command line inferface so that I can upgrade Nextcloud 20.0.9 or or 21.0.?

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

Steps to replicate it:

  1. Go to URL cloud.esprimme.com

The output of your Nextcloud log in Admin > Logging:

Here is a snippet from ../logs/access_log

[30/Apr/2021:19:26:06 -0400] "GET /index.php/204 HTTP/1.1" 500 4137 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
173.238.111.22 - - [30/Apr/2021:19:26:06 -0400] "GET /index.php/204 HTTP/1.1" 500 4137 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
173.238.111.22 - - [30/Apr/2021:19:26:06 -0400] "GET /index.php/204 HTTP/1.1" 500 4137 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
173.238.111.22 - - [30/Apr/2021:19:26:06 -0400] "GET /index.php/204 HTTP/1.1" 500 4137 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
173.238.106.177 - - [01/May/2021:11:24:28 -0400] "GET / HTTP/1.1" 500 4152 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0"

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

<?php
$CONFIG = array (
  'instanceid' => 'ocb06ckk12kr',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'cloud.esprimme.com',
  ),
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/home/cloud/public_html/data',
  'dbtype' => 'mysql',
  'version' => '20.0.5.2',
  'overwrite.cli.url' => 'https://cloud.esprimme.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_esprimme',
  'dbpassword' => 'xxx',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'support',
  'mail_domain' => 'esprimme.com',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => 'mailout.easymail.ca',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'support@esprimme.com',
  'mail_smtppassword' => **************
  'maintenance' => false,
  'mysql.utf8mb4' => true,
);

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

Don't know which log is needed...

Do NOT post sensitive passwords in a public forum. Removed passwords.
Please double check yourself.

1 Like

Please read How to upgrade — Nextcloud latest Administration Manual latest documentation

1 Like

Thanks very much for this. I really thought I had removed passwords from my post.

Can I upgrade directly to 21.0.x from 20.0.5 or do I need to upgrade to point releases .6, .7 .8, .9 before I do the major upgrade to 21.0.x?

Many thanks.

You need first to up-date to the latest point release e. g. 20.0.9 in your case and afterwards do the major update.

1 Like

@rakekniven

Everything is back up. Thanks for your help.

DrP

2 Likes