Maintenance mode flagged as error in version 32

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

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:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):

    • 32.0.6
  • Operating system and version (e.g., Ubuntu 24.04):

    • Unraid 7.2.3 / Slackware / Linux 6.12.54-Unraid #1 SMP PREEMPT_DYNAMIC
  • Web server and version (e.g, Apache 2.4.25):

    • nginx/1.28.2 (fpm-fcgi)

    Reverse proxy and version _(e.g. nginx 1.27.2)

    • Swag 5.3.1-ls441
  • PHP version (e.g, 8.3):

    • 8.4.16
  • Is this the first time you’ve seen this error? (Yes / No):

    • Yes
  • When did this problem seem to first start?

    • It started when I upgraded from 31 to 32
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)

    • Docker container from Unraid Apps
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)

    • No

Summary of the issue you are facing:

When I issue the command to go into maintenance mode, it’s logged as an error.

Here are the commands I’m using:
docker exec nextcloud occ maintenance:mode --on
docker exec nextcloud occ maintenance:mode --off

Here’s the error in the log:
Error
no app in context
ServerMaintenanceMode System is in maintenance mode. Uncaught exception

I would expect this to not log at all or perhaps as a warning and not an error. It’s keeping me from my checkmark! :slight_smile:

Steps to replicate it (hint: details matter!):

  1. Go to the container’s command prompt

  2. Issue the command to go into or out of maintenance mode

  3. Check the log

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"z8XBhSTehQnl5RRpdfuO","level":3,"time":"2026-02-27T06:32:58+00:00","remoteAddr":"192.168.0.1","user":"me","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/me/","scriptName":"/remote.php","message":"Uncaught exception","userAgent":"Mozilla/5.0 (Linux) mirall/4.0.4 (build 35937) (Nextcloud, debian-6.18.13-1-liquorix-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"32.0.6.1","clientReqId":"c10b5111-b832-4b40-9ad6-b81391a1ceac","exception":{"Exception":"OCA\\DAV\\Exception\\ServerMaintenanceMode","Message":"System is in maintenance mode.","Code":0,"Trace":[{"file":"/app/www/public/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkMaintenanceMode","class":"OCA\\DAV\\Connector\\Sabre\\MaintenancePlugin","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/app/www/public/remote.php","line":151,"args":["/config/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/config/www/nextcloud/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php","Line":65,"message":"Uncaught exception","exception":[],"CustomMessage":"Uncaught exception"},"id":"69a20b1d2287d"}

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

NA

Web server / Reverse Proxy

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

The location is empty.

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

<?php
$CONFIG = array (
  'maintenance_window_start' => 6,
  'trashbin_retention_obligation' => 'auto, 30',
  'versions_retention_obligation' => 'auto, 30',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'blah',
  'passwordsalt' => 'blah',
  'secret' => 'blah',
  'trusted_domains' => 
  array (
    0 => '192.168.0.100:444',
    1 => 'blah.com',
  ),
  'dbtype' => 'mysql',
  'version' => '32.0.6.1',
  'trusted_proxies' => 
  array (
    0 => '172.18.0.2',
  ),
  'overwrite.cli.url' => 'https://blah.com',
  'overwritehost' => 'blah.com',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => '192.168.0.100:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'blah',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'default_phone_region' => 'blah',
  'mail_from_address' => 'blah',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'blah',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'blah',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'blah',
  'mail_smtppassword' => 'blah',
  'filelocking.enabled' => 'true',
  'memcache.locking' => '\\OC\\Memcache\\APCu',
  'memories.exiftool' => '/config/www/nextcloud/apps/memories/bin-ext/exiftool-amd64-musl',
  'memories.vod.path' => '/config/www/nextcloud/apps/memories/bin-ext/go-vod-amd64',
  'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
  'memories.vod.ffprobe' => '/usr/bin/ffprobe',
  'memories.index.mode' => '3',
  'memories.index.path' => '/pictures/',
  'memories.gis_type' => 1,
  'preview_max_x' => 2048,
  'preview_max_y' => 2048,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\Image',
    1 => 'OC\\Preview\\HEIC',
    2 => 'OC\\Preview\\TIFF',
    3 => 'OC\\Preview\\Movie',
  ),
  'memories.vod.disable' => false,
  'upgrade.disable-web' => true,
  'app_install_overwrite' => 
  array (
  ),
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
);

Apps

The output of occ app:list (if possible).

Enabled:

  • bruteforcesettings: 5.0.0
  • cloud_federation_api: 1.16.0
  • dashboard: 7.12.0
  • dav: 1.34.2
  • federatedfilesharing: 1.22.0
  • files: 2.4.0
  • files_downloadlimit: 5.0.0-dev.0
  • files_external: 1.24.1
  • files_pdfviewer: 5.0.0
  • files_sharing: 1.24.1
  • files_trashbin: 1.22.0
  • files_versions: 1.25.0
  • firstrunwizard: 5.0.0
  • logreader: 5.0.0
  • lookup_server_connector: 1.20.0
  • nextcloud_announcements: 4.0.0
  • notifications: 5.0.0
  • oauth2: 1.20.0
  • password_policy: 4.0.0
  • previewgenerator: 5.12.1
  • privacy: 4.0.0
  • profile: 1.1.0
  • provisioning_api: 1.22.0
  • recommendations: 5.0.0
  • related_resources: 3.0.0
  • serverinfo: 4.0.0
  • settings: 1.15.1
  • sharebymail: 1.22.0
  • support: 4.0.0
  • tasks: 0.17.1
  • theming: 2.7.0
  • twofactor_backupcodes: 1.21.0
  • twofactor_totp: 14.0.0
  • user_status: 1.12.0
  • viewer: 5.0.0
  • webhook_listeners: 1.3.0
  • workflowengine: 2.14.0

Disabled:

  • activity: 5.0.0 (installed 2.19.0)
  • admin_audit: 1.22.0
  • app_api: 32.0.0 (installed 32.0.0)
  • circles: 32.0.0 (installed 24.0.0)
  • comments: 1.22.0 (installed 1.17.0)
  • contactsinteraction: 1.13.1 (installed 1.8.0)
  • encryption: 2.20.0
  • federation: 1.22.0 (installed 1.17.0)
  • files_reminders: 1.5.0 (installed 1.0.0)
  • photos: 5.0.0 (installed 2.3.0)
  • survey_client: 4.0.0 (installed 1.15.0)
  • suspicious_login: 10.0.0
  • systemtags: 1.22.0 (installed 1.14.0)
  • text: 6.0.1 (installed 3.2.0)
  • twofactor_nextcloud_notification: 6.0.0
  • updatenotification: 1.22.0 (installed 1.17.0)
  • user_ldap: 1.23.0
  • weather_status: 1.12.0 (installed 1.1.0)

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Are you sure this error is logged when enabling the maintenance mode? The log you posted looks like a client tries to access nextcloud with maintenance mode enabled - there is a github issue for this open already. You might want to react there: [Bug]: Nextcloud reports errors with carddav/caldav requests in maintenance mode · Issue #55894 · nextcloud/server · GitHub

1 Like

Yes, because I can make it happen by issuing the command to go into maintenance mode.

I’ll check out the other post.

Thanks!