Skip to content

[QA] occ upgrade does nothing, although web-ui says 'Update needed' #38549

@jnweiger

Description

@jnweiger

Seen in 10.7.0 RC1

I have no clear reproducer for this, but I ran by accdent into this situation multiple times:

The web ui asks for update.
image

The occ command does not work: BAD

occ upgrade   
ownCloud is already latest version

Attempted workaround:

  • in config.php switch upgrade.disable-web' => false,
  • a new error occurs:
    It looks like your instance may host many files and/or users. To ensure a smooth upgrade process, please use the command line updater (occ upgrade)

This is a deadlock situation.

Evil workaround:

  • hack into "lib/base.php" and force $tooBig = false; after the ldap and user evaluation code and before the error printing.
  • now the web interface allows to run the upgrade procedure. Login is possible again.

Suggested improvement:
Add a --force option to occ upgrade to try as hard as the web version would do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions