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.