Skip to content

Update NC fails if PreviewGenerator app is disabled#2117

Open
MagelanM wants to merge 1 commit into
nextcloud:masterfrom
MagelanM:master
Open

Update NC fails if PreviewGenerator app is disabled#2117
MagelanM wants to merge 1 commit into
nextcloud:masterfrom
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

…riable

Signed-off-by: MagelanM <magellanm@posteo.de>
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.

1 participant