[Solved] Migrating Issues from omnibus to docker

Summary

Multiple issues with users and channels when migrating from omnibus to docker, following the official guide.

Steps to reproduce

Follow migration guide on GitHub - mattermost/mattermost-omnibus: A simple way to install Mattermost. until step 4) Restore data

Expected behavior

Logging into the instance, I would expect all users and channels to exist.

Observed behavior
First when restoring the database there are multiple issues, that e.g. indexes are already existent. I ignore these and assume them expected.
Issue 1) When I log in, no users exist.

I drop the whole mattermost database in postgres and then pg_restore my backup again. This time, no errors. I log in, and all users exist!
Issue 2)
When I try to access anything that is not the system console, I get the error page “Channel is private or does not exist. "

Checking in the system console web UI under channels, the list is empty.

I check the DB, there are channels listed.


I confirm the folder structure of the /data directory are identical from copying over and permissions are correctly set for pid 2000.

Tree view limited to 5 layers

I have no more ideas what to do and fix the missing channels. I would be very thankful for any help.

Solved the Issue for now.

I edited the .env file and changed the MATTERMOST_IMAGE_TAG from the fixed Version 10.5.2 to latest. Now it works, all channels are detected. Maybe this and also the other struggles I had with the import could be considered in the migration guide.

Woot! Welcome back to the forums, @proxycon! And thank you for following up with that solution!