Skip to content

Warning when disabling maintenance mode using occ #9949

Closed

Description

@simonspo

When disabling maintenance mode using occ, the warning "Nextcloud is in maintenance mode - no apps have been loaded" is sent to stderr. However, trying to disable maintenance mode when it is not enabled, produces no warnings and no output to strerr.

Steps to reproduce

  1. Make sure maintenance mode is enabled: sudo -u www-data php occ | grep 'in maintenance'. Output: Nextcloud is in maintenance mode - no apps have been loaded
  2. Disable maintenance mode: sudo -u www-data php occ maintenance:mode --off, output:
Nextcloud is in maintenance mode - no apps have been loaded

Maintenance mode disabled
  1. Disable maintenance mode again: sudo -u www-data php occ maintenance:mode --off, output Maintenance mode disabled

Expected behaviour

When running occ maintenance:mode --off, I expect nextcloud be in maintenance mode, so:

  1. should disable maintenance mode without warning,
  2. should give a warning that maintenance mode is already disabled.

Server configuration

Operating system:
Debian Stretch

PHP version:
PHP 7.0.27-0

Nextcloud version: (see Nextcloud admin page)
13.0.4

Where did you install Nextcloud from:
Official tar.bz2

Activity

  1. nextcloud-bot commented on Jun 21, 2018

    @nextcloud-bot
    Member

    GitMate.io thinks possibly related issues are #8399 (maintenance:mode produces a warning despite --quiet), #5832 (Uninstall repair step isn't executed when disabling app using occ), #3301 (Unsetting maintenance mode using occ doesn't work), #3374 (Wrong error: Maintenance Mode is On), and #6824 (Fatal error on webdav access during maintenance mode).

  2. added
    good first issueSmall tasks with clear documentation about how and in which place you need to fix things in.
    papercutAnnoying recurring UX issue with possibly simple fix.
    on Jun 21, 2018
  3. weeman1337 commented on Jul 1, 2018

    @weeman1337
    Member

    I'll take this one!

  4. added this to the Nextcloud 14 milestone on Jul 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfeature: install and updategood first issueSmall tasks with clear documentation about how and in which place you need to fix things in.papercutAnnoying recurring UX issue with possibly simple fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions