Skip to content

Upgrade to v1.8.0 fails due to failing migration #603

Description

@christianhueserhzdr

Summary

Upgrade fails from v1.7.2 to v1.8.0 due to migration errors that spam the log with messages such as {"timestamp":"2025-05-15 05:51:34.350 Z","level":"warn","msg":"Failed to apply upgrade function","caller":"app/plugin_api.go:1014","plugin_id":"com.github.matterpoll.matterpoll","poll_id":"poll_xxx","error":"Failed to get post for migration: GetSinglePost: Unable to get the post."}

Steps to reproduce

Steps to reproduce the behavior:

  1. Upgrade plugin from v1.7.2 to v1.8.0 by replacing archive in folder prepackaged_plugins.

Expected behavior

Upgrade with migration succeeds.

Observed behavior (that appears unintentional)

Service went down due to failing plugin migrations. Log contains messages such as:

{"timestamp":"2025-05-15 05:51:34.350 Z","level":"warn","msg":"Failed to apply upgrade function","caller":"app/plugin_api.go:1014","plugin_id":"com.github.matterpoll.matterpoll","poll_id":"poll_xxx","error":"Failed to get post for migration: GetSinglePost: Unable to get the post."}

Server configuration

Operating system:

Ubuntu 24.04.1 LTS

Mattermost version:

10.6.1

Matterpoll version:

1.8.0

Updated from an older Matterpoll version or fresh install:

Mattermost server logs

{"timestamp":"2025-05-15 05:51:34.350 Z","level":"warn","msg":"Failed to apply upgrade function","caller":"app/plugin_api.go:1014","plugin_id":"com.github.matterpoll.matterpoll","poll_id":"poll_xxx","error":"Failed to get post for migration: GetSinglePost: Unable to get the post."}

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionFurther information is requested

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions