Summary
I presently have the calls 0.20.0 and jira 4.0.0 plugin installed in a self-hosted 9.0.0, although there are apparently updates for both plugins, I cannot update them from the system console plugins section with an admin account.
Expected behavior
According to the docs, new updates should be somehow listed so that an update can be performed from the system console.
Observed behavior
I do observe the following messages in the server log which might be related - no idea what’s causing them though and how to fix this:
ERR app/plugin.go:966 > timestamp=2023-11-20 14:22:42.628 +01:00 msg=Failed to install prepackaged plugin bundle_path=/mattermost/prepackaged_plugins/mattermost-plugin-nps-v1.3.2-linux-amd64.tar.gz error=Failed to install extracted prepackaged plugin /mattermost/prepackaged_plugins/mattermost-plugin-nps-v1.3.2-linux-amd64.tar.gz: installExtractedPlugin: Unable to move plugin from temporary directory to final destination. Another plugin may be using the same directory name., destination already exists
ERR app/plugin.go:966 > timestamp=2023-11-20 14:22:42.669 +01:00 msg=Failed to install prepackaged plugin bundle_path=/mattermost/prepackaged_plugins/mattermost-plugin-channel-export-v1.0.0-linux-amd64.tar.gz error=Failed to install extracted prepackaged plugin /mattermost/prepackaged_plugins/mattermost-plugin-channel-export-v1.0.0-linux-amd64.tar.gz: installExtractedPlugin: Unable to move plugin from temporary directory to final destination. Another plugin may be using the same directory name., destination already exists
ERR app/plugin.go:966 > timestamp=2023-11-20 14:22:42.832 +01:00 msg=Failed to install prepackaged plugin bundle_path=/mattermost/prepackaged_plugins/mattermost-plugin-apps-v1.2.2-linux-amd64.tar.gz error=Failed to install extracted prepackaged plugin /mattermost/prepackaged_plugins/mattermost-plugin-apps-v1.2.2-linux-amd64.tar.gz: installExtractedPlugin: Unable to move plugin from temporary directory to final destination. Another plugin may be using the same directory name., destination already exists
ERR app/plugin.go:966 > timestamp=2023-11-20 14:22:42.932 +01:00 msg=Failed to install prepackaged plugin bundle_path=/mattermost/prepackaged_plugins/mattermost-plugin-playbooks-v1.38.1-linux-amd64.tar.gz error=Failed to install extracted prepackaged plugin /mattermost/prepackaged_plugins/mattermost-plugin-playbooks-v1.38.1-linux-amd64.tar.gz: installExtractedPlugin: Unable to move plugin from temporary directory to final destination. Another plugin may be using the same directory name., destination already exists
I have the docker hosts’s volumes mounted like this into the container:
- ${MATTERMOST_PLUGINS_PATH}:/mattermost/plugins:rw
- ${MATTERMOST_CLIENT_PLUGINS_PATH}:/mattermost/client/plugins:rw
and apart from that error, there are no apparent problems, except Jira “loosing its token” some hours after the container was started and Jira notifications were handled without problems:
ERR app/plugin_api.go:980 > timestamp=2023-11-20 12:47:47.993 +01:00 msg=PostNotifications: error while getting jiraClient, err: failed to get a Jira client for : no access token, please use /jira connect plugin_id=jira
→ restart the container and everything is back to normal
(that’s why I first wanted to update the jira plugin to latest)