Skip to content

Update NC fails if PreviewGenerator app is disabled#2117

Merged
theCalcaholic merged 3 commits into
nextcloud:develfrom
MagelanM:master
Jun 5, 2026
Merged

Update NC fails if PreviewGenerator app is disabled#2117
theCalcaholic merged 3 commits into
nextcloud:develfrom
MagelanM:master

Conversation

@MagelanM

Copy link
Copy Markdown

Description

During the update from NC 33.0.2 to NC 33.0.3 using ncp (ncp-config), the update kept failing without any apparent error message.
I had installed PreviewGenerator on my instance but had not activated it.

Workaround: If PreviewGenerator is installed before the update, the error does not occur.

  • I have verified that this is not a Nextcloud error.
  • I believe that is an NCP error.

Details

In etc/library.sh the function is_app_enabled() ignores its argument and always checks for previewgenerator instead of the app passed as $1. This causes is_app_enabled notify_push to return the wrong result depending on whether previewgenerator is enabled, leading nc-update-nextcloud to attempt app:install notify_push even when it is already installed — which fails and triggers a rollback due to set -eE.

Debug information

  • NCP-version 1.57.1
  • NC 33.0.2
  • LXC

@theCalcaholic

theCalcaholic commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Oh wow, thanks for that. That's a big oversight on my side.

@theCalcaholic theCalcaholic changed the base branch from master to devel June 5, 2026 10:16
@theCalcaholic theCalcaholic merged commit 52ee878 into nextcloud:devel Jun 5, 2026
1 check passed
@MagelanM

MagelanM commented Jun 7, 2026

Copy link
Copy Markdown
Author

So it will fix issue #2119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants