Repository navigation
fix(upgrade): skip disabled apps in post-upgrade schema check - #66813
Conversation
- The post-upgrade check now skips disabled apps. - occ db:schema:check still replays them. in case of Fatal error, it doesn't break the instance Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
|
/backport to stable35 |
|
I would say this is not the right fix, it will always report tables from disabled apps as missing on upgrade, no? I would instead catch any Throwable in the schema check implementation. |
|
Hum but this was done in #64696 already 🤔 |
Wouldn't be reported here. If migration from disabled apps never run, table is considered unexpected and from unknown app. Those are already non-blocking and omitted in non-verbose check (which postUpgrade does).
See Simon's issue, it was reported for fatal error, not throwable |
szaimen
left a comment
There was a problem hiding this comment.
LGTM but didnt test. Thanks a lot for fixing this so fast! :)
|
Indeed, fatal error, not catchable, that’s sad. |
There was a problem hiding this comment.
I guess this a hairy problem because disabled apps are in this weird state where their migrations don't normally run anyhow...
The other issue being that there are really two "formerly active app" states: disabled and uninstalled. Both (generally) leave tables around.
Makes we want to create a setupcheck that says "You have too many disabled apps; uninstall ones you're no longer using..." though I know that's not really the root cause here necessarily. ;-)
Related: #5539
There was a PR recently flying around with |
|
This does not resolve the bug. App still caused Nextcloud AIO v15.1.1 to break when updating to 35.0.3. |
Have you checked if the fix was released in a stable version since it was merged 3 days ago? |
I entered in the bug 3d ago and removed the app as I cannot afford the outages in this way. |
v35.0.4 which is not released nor included in AIO yet. |
Then I need to correct myself as I cannot say anything sensible about the change. Now, I am by no means a Nextcloud expert - my professional life is in QA mainly. Maybe some mechanism could be arranged that takes care that all apps are - individually? - tested/updated in a sandbox first, before (re)activated? |
occ upgradedies with an uncatchable "Trait not found" fatal in SchemaChecker when a disabled app's migration uses an app trait #66806Summary
Checklist
3. to review, feature component)stable32)AI (if applicable)