After installing https://github.com/nextcloud/backup, the system went into maintenance mode and did not exit. How do I get my server back to the service?

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

The issue you are facing: After installing GitHub - nextcloud/backup: Backup now. Restore later., the system went into maintenance mode and did not exit.

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

Steps to replicate it:

  1. Install GitHub - nextcloud/backup: Backup now. Restore later..

The output of your Nextcloud log in Admin > Logging: No access to have that info

Please look in Nextcloud.log in your Nextcloud data folder.

Thank you Mornsgrans for replay and help. Below I´m sending what I got on nextcloud.log

“reqId”:“zoWUgfDuGgeNJqL44abb”,“level”:2,“time”:“2021-07-16T12:57:06+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/csrftoken",“message”:“Could not detect any host in http:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“zoWUgfDuGgeNJqL44abb”,“level”:2,“time”:“2021-07-16T12:57:06+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/csrftoken",“message”:“Could not detect any host in https:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“01kA8fkSvSFcw0B1H1Hp”,“level”:2,“time”:“2021-07-16T13:09:05+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/csrftoken",“message”:“Could not detect any host in http:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“01kA8fkSvSFcw0B1H1Hp”,“level”:2,“time”:“2021-07-16T13:09:05+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/csrftoken",“message”:“Could not detect any host in https:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“hp75NmVePU2DN6WEYCXC”,“level”:2,“time”:“2021-07-16T13:21:05+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/csrftoken",“message”:“Could not detect any host in http:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“hp75NmVePU2DN6WEYCXC”,“level”:2,“time”:“2021-07-16T13:21:05+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/csrftoken",“message”:“Could not detect any host in https:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“4ykJXPd26xTWvaMvfdo8”,“level”:2,“time”:“2021-07-16T13:33:06+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/csrftoken",“message”:“Could not detect any host in http:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“4ykJXPd26xTWvaMvfdo8”,“level”:2,“time”:“2021-07-16T13:33:06+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/csrftoken",“message”:“Could not detect any host in https:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“uFbWkYYmYozevtJqms6G”,“level”:2,“time”:“2021-07-16T13:41:07+00:00”,“remoteAddr”:“10.82.0.229”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php",“message”:“Could not detect any host in http:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0”,“version”:""}
{“reqId”:“uFbWkYYmYozevtJqms6G”,“level”:2,“time”:“2021-07-16T13:41:07+00:00”,“remoteAddr”:“10.82.0.229”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php",“message”:“Could not detect any host in https:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0”,“version”:""}
{“reqId”:“23aZCaAJwyHsSJLhHgWW”,“level”:2,“time”:“2021-07-16T13:45:05+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/csrftoken",“message”:“Could not detect any host in http:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“23aZCaAJwyHsSJLhHgWW”,“level”:2,“time”:“2021-07-16T13:45:05+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/csrftoken",“message”:“Could not detect any host in https:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“e3ptUqY2UZhZ6O4suiEp”,“level”:2,“time”:“2021-07-16T13:45:44+00:00”,“remoteAddr”:“10.82.0.229”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php",“message”:“Could not detect any host in http:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0”,“version”:""}
{“reqId”:“e3ptUqY2UZhZ6O4suiEp”,“level”:2,“time”:“2021-07-16T13:45:44+00:00”,“remoteAddr”:“10.82.0.229”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php",“message”:“Could not detect any host in https:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0”,“version”:""}
{“reqId”:“5CFTp6cefGYrAQuxovwG”,“level”:2,“time”:“2021-07-16T13:45:53+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/",“message”:“Could not detect any host in http:///data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“5CFTp6cefGYrAQuxovwG”,“level”:2,“time”:“2021-07-16T13:45:53+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/",“message”:“Could not detect any host in https:///data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“EqDqHpoqWnR7nZViPdl3”,“level”:2,“time”:“2021-07-16T13:54:07+00:00”,“remoteAddr”:“10.82.0.229”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php",“message”:“Could not detect any host in http:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0”,“version”:""}
{“reqId”:“EqDqHpoqWnR7nZViPdl3”,“level”:2,“time”:“2021-07-16T13:54:07+00:00”,“remoteAddr”:“10.82.0.229”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php",“message”:“Could not detect any host in https:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0”,“version”:""}
{“reqId”:“kxrbsMuFJPU1QrjPfjRs”,“level”:2,“time”:“2021-07-16T13:57:05+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/csrftoken",“message”:“Could not detect any host in http:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“kxrbsMuFJPU1QrjPfjRs”,“level”:2,“time”:“2021-07-16T13:57:05+00:00”,“remoteAddr”:“10.84.16.1”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/csrftoken",“message”:“Could not detect any host in https:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203”,“version”:""}
{“reqId”:“rHeVAN8tzhSAo32cqyXc”,“level”:2,“time”:“2021-07-16T13:58:13+00:00”,“remoteAddr”:“10.82.0.229”,“user”:"–",“app”:“no app in context”,“method”:“POST”,“url”:"/nextcloud/index.php",“message”:“Could not detect any host in http:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0”,“version”:""}
{“reqId”:“rHeVAN8tzhSAo32cqyXc”,“level”:2,“time”:“2021-07-16T13:58:13+00:00”,“remoteAddr”:“10.82.0.229”,“user”:"–",“app”:“no app in context”,“method”:“POST”,“url”:"/nextcloud/index.php",“message”:“Could not detect any host in https:///nextcloud/data/htaccesstest.txt”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0”,“version”:""}

Is it possible, that in your config.php a wrong (invalid) server name or address had been entered?

Mornsgrans:

Unfortunately this was not the case, we have it in config.php and the URL is correct::
array(
0 => ‘10.82.0.229’,
1 => ‘obras.seminfra.maceio.al.gov.br’,
2 => ‘192.195.57.18’,
),
What do you think about taking the server out of maintenance mode by forcing with occ maintenance:mode --off?

Thank you.

You can try it.

But please keep in mind:
Remaining in mantenance mode has a reason. In most cases the is needed to add missing indices, convert field type or similar.

Hi Mornsgrans

I’ll cross my fingers, I have no other choice. The server is unused in this state and I have to make a decision.
Let’s see what happens.
Thank you so much for your help and support.

Hi Mornsgrans
I have to tell you about the result.
After take the nextcloud server off the maintenance, everything come back to normal.
Thanx again for you patience and help.
I really apreciate it.