Skip to content

Nextcloud upgrade from 1.6.1 may leave the instance in maintenance mode #8050

Closed

Description

@stephdl

Steps to reproduce

  • Install ns8-nextcloud version 1.6.1.
  • Upgrade to the 1.7.1 that includes the changesnectloud NC33.
  • During the upgrade, check the service startup order:
    • nextcloud-redis.service + nextcloud-db.service
    • nextcloud-app.service
    • nextcloud-notify_push.service
    • nextcloud-nginx.service
  • Verify that MariaDB is really ready before nextcloud-app.service starts.
  • Verify that the update waits for Nextcloud initialization and occ upgrade to complete.

Expected behavior

The upgrade should complete successfully without leaving Nextcloud in maintenance mode or with a pending database upgrade.

Services should start in the correct order: Redis/MariaDB first, then Nextcloud app, then dependent services.

Actual behavior

During a major upgrade, the update process can continue too early while Nextcloud is still initializing or running occ upgrade.

This can cause wrong service ordering, premature restarts, and leave Nextcloud in a broken state such as maintenance=true or needsDbUpgrade=true.

Components

  • NS8
  • ns8-nextcloud 1.6.1 → 1.7.1

See also

Activity

  1. self-assigned this
    on Jun 19, 2026
  2. added theissue type on Jun 19, 2026
  3. moved this from ToDo to In Progress in NethServeron Jun 19, 2026
  4. added this to the NethServer 8.9 milestone on Jun 19, 2026
  5. stephdl commented on Jun 19, 2026

    @stephdl
    Author

    QA

    • Install Nextcloud 1.6.1.
    • Upgrade to image ghcr.io/nethserver/nextcloud:1.7.2-dev.1.
    • Verify the upgrade completes successfully.
    • Verify Nextcloud is not left with:
      occ status
      • maintenance=true
      • needsDbUpgrade=true
    • Verify service startup order:
      • nextcloud-redis.service and nextcloud-db.service first
      • nextcloud-app.service next
      • nextcloud-notify_push.service and nextcloud-nginx.service last
    • Verify MariaDB is accepting connections before nextcloud-app.service starts.
    • Verify Nextcloud web UI is reachable after upgrade.
    • Verify login works.
    • Verify file browsing/upload works.
  6. removed their assignment
    on Jun 19, 2026
  7. added
    testing
    on Jun 19, 2026
  8. moved this from In Progress to Testing in NethServeron Jun 19, 2026
  9. self-assigned this
    on Jun 23, 2026
  10. nrauso commented on Jun 23, 2026

    @nrauso

    all test cases VERIFIED

  11. added
    verified
    on Jun 23, 2026
  12. removed
    testing
    on Jun 23, 2026
  13. moved this from Testing to Verified in NethServeron Jun 23, 2026
  14. DavidePrincipi commented on Jun 24, 2026

    @DavidePrincipi
    Member
  15. moved this from Verified to Done in NethServeron Jun 24, 2026
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

    verified

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions