Skip to content

the user "mmuser" is not owner of the "public" schema #16

Description

@DJIronic

Hello,

I am having issue with migrating from MySQL to Postgres.

I am following the tutorial here: https://docs.mattermost.com/deploy/postgres-migration-assist-tool.html and I also followed the prepare your database document: https://docs.mattermost.com/install/prepare-mattermost-database.html

I installed a clear Postgress install, didi all the command and when I try to the command

./migration-assist postgres "postgres://mmuser:pass@localhost:5432/mattermost" --run-migrations --mattermost-version="9.10.1"
it will fail on

2024-08-13 16:10:13 pinging postgres...
2024-08-13 16:10:13 connected to postgres successfully.
An Error Occurred: could not check schema owner: the user "mmuser" is not owner of the "public" schema

I checked who was the owner of the DB it was mmuser, i also tried some command for setting the owner and grants that were listed on MM forums, but I was unable to fix the issue.

I also reinstalled Postgres and recreated the cluster to be sure.

Any idea what can help me fix the issue?

I am runnig Postgres 16.1 on ubuntu 22.04.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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