Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning when disabling maintenance mode using occ #9949

Closed
simonspo opened this issue Jun 21, 2018 · 2 comments · Fixed by #10070
Closed

Warning when disabling maintenance mode using occ #9949

simonspo opened this issue Jun 21, 2018 · 2 comments · Fixed by #10070
Labels
bug feature: install and update good first issue Small tasks with clear documentation about how and in which place you need to fix things in. papercut Annoying recurring issue with possibly simple fix.
Milestone

Comments

@simonspo
Copy link

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

@nextcloud-bot
Copy link
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).

@MorrisJobke MorrisJobke added good first issue Small tasks with clear documentation about how and in which place you need to fix things in. papercut Annoying recurring issue with possibly simple fix. labels Jun 21, 2018
@weeman1337
Copy link
Member

I'll take this one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature: install and update good first issue Small tasks with clear documentation about how and in which place you need to fix things in. papercut Annoying recurring issue with possibly simple fix.
Projects
None yet
4 participants