Maintenance mode, after DB Update

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

Nextcloud version (eg, 20.0.5): NextCloudPi v1.53.0
Operating system and version (eg, Ubuntu 20.04): Debian Bullseye 11
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.56 (Debian) PHP version _(eg, 7.4)_: PHP 8.1.25 `

The issue you are facing:

Hey, I’ve been having an issue since today where my NextcloudPi instance is in maintenance mode. Everything was working fine until yesterday, but today it had to or wanted to do a database update, and since then, nothing is happening, and it’s stuck in maintenance mode. Do you have any idea what I can do?

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

Steps to replicate it:

  1. its allways

The output of your Nextcloud log in Admin > Logging:

cant find it

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

    5 => 'nextcloudpi.local',
    8 => 'nextcloudpi.lan',
    3 => 'nextcloudpi',
    11 => '2a02:8109:831e:2a00:e880:e86d:4680:456e',
    1 => '192.168.0.5',
    14 => 'nextcloudpi',
    2 => 
  ),
  'datadirectory' => '/opt/ncdata/data',
  'dbtype' => 'mysql',
  'version' => '26.0.1.1',
  'overwrite.cli.url' => 'https://nextcloudpi/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 
  'dbpassword' 
  'installed' => true,
  'instanceid' => 'ocxir5pvtck3',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' =>
  ),
  'tempdirectory' => '/opt/ncdata/data/tmp',
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' =>
  'mail_domain' => 'ownyourbits.com',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'maintenance' => true,
  'logfile' => '/opt/ncdata/data/nextcloud.log',
  'trusted_proxies' => 
  array (
    11 => '127.0.0.1',
    12 => '::1',
    13 => 'nextcloudpi',
    14 => '',
  ),
  'loglevel' => 0,
  'log_type' => 'file',
  'theme' => '',
);

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

[Wed Nov 22 00:00:19.141540 2023] [ssl:warn] [pid 1325:tid 3069995088] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Nov 22 00:00:19.143803 2023] [mpm_event:notice] [pid 1325:tid 3069995088] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Wed Nov 22 00:00:19.143830 2023] [core:notice] [pid 1325:tid 3069995088] AH00094: Command line: '/usr/sbin/apache2'
[Wed Nov 22 16:04:28.532413 2023] [mpm_event:notice] [pid 1325:tid 3069995088] AH00492: caught SIGWINCH, shutting down gracefully
[Wed Nov 22 16:04:28.691613 2023] [ssl:warn] [pid 30120:tid 3069778000] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Nov 22 16:04:28.723697 2023] [ssl:warn] [pid 30121:tid 3069778000] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Nov 22 16:04:28.732244 2023] [mpm_event:notice] [pid 30121:tid 3069778000] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Wed Nov 22 16:04:28.732334 2023] [core:notice] [pid 30121:tid 3069778000] AH00094: Command line: '/usr/sbin/apache2'
[Wed Nov 22 16:05:33.546498 2023] [mpm_event:notice] [pid 30121:tid 3069778000] AH00492: caught SIGWINCH, shutting down gracefully
[Wed Nov 22 16:06:19.320122 2023] [ssl:warn] [pid 1167:tid 3069958224] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Nov 22 16:06:19.372019 2023] [ssl:warn] [pid 1338:tid 3069958224] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Nov 22 16:06:19.385550 2023] [mpm_event:notice] [pid 1338:tid 3069958224] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Wed Nov 22 16:06:19.385690 2023] [core:notice] [pid 1338:tid 3069958224] AH00094: Command line: '/usr/sbin/apache2'

``
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

set this to false

Thank you, it hast installed all updates and after a restart it works! THX


Update:

Okay, now a new Problem has appeared!

Today I see the Login-Page and when i want to login: i see this:

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

A Server-restart was useless. Have someone a Idea?

Edit: Over the ncp-config i have cleared the PHP opcache and now it works