nextcloud / nextcloud/server

occ upgrade should be more verbose about versions

Open
#32,648 0 comments 1 reaction 1 assignee View on GitHub

@joshtrichards is already working on this.

Since Dec 21, 2024.

0. Needs triage enhancement feature: install and update feature: occ papercut
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Is your feature request related to a problem? Please describe.

When running an upgrade I was stuck with Nextcloud or one of the apps require upgrade... even though I did
perform occ upgrade and even occ maintenance:repair repeatedly. I was unable to figure out what's wrong
because occ didn't give me any information on what apparently needs an upgrade and why.

There was nothing in any of the logs, occ didn't give out any more useful info with -vvv.

Turned out there was a leftover "old.config.php" file in the config dir with an older version set but I only realized
that after I disabled all possible apps and actually took a dive into the code to see how the "update needed"
is triggered.

Describe the solution you'd like

occ upgrade should be more specific about what needs upgrade and why (at least with -v*) , i.e. something like "[app] needs upgrade because installed version is X but the actual version on the filesystem is Y" or "Nextcloud needs upgrade because config says X but we have Y actually installed". If I had seen that the X version is different from what is on the filesystem my debugging path would have been different and probably much shorter.

Describe alternatives you've considered
No alternatives.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.