Skip to content

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

@stephdl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingPackages are available from testing repositories

    Type

    No fields configured for Bug.

    Projects

    Status
    Testing

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions