Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set initial admin user with Postgres backend #355

Open
brendonts opened this issue May 4, 2023 · 1 comment
Open

Cannot set initial admin user with Postgres backend #355

brendonts opened this issue May 4, 2023 · 1 comment

Comments

@brendonts
Copy link

Summary

I've launched an instance of the Mattermost operator with a PostgreSQL database. I can access the Mattermost login screen and have verified that Mattermost has created tables and stuff in my Postgres database. However I cannot figure out how to set configurations on creation of my Mattermost instance nor can I create an initial admin user to login to the UI.

Steps to reproduce

Running commands on one of the Mmattermost pods, I am able to run mmctl successfully but trying to create an initial user like:
mmctl user create --email [email protected] --username admin --password apassword
produces the following error:
Error: cannot read user credentials, maybe you need to login firse: stat /.config/mmctl/config: no such file or directory

Additionally, I have no idea how to set basic application setting or create a initial user during the launch process. It seems like the Mattermost documentation kind of ignores discussing how to configure your instance.
https://docs.mattermost.com/configure/configuation-in-mattermost-database.html
I have read through the documentation above, however I still don't know how to create an initial user. Is my only option to edit the Mattermost postgres database directly?

@fmartingr
Copy link
Contributor

Hey @brendonts. Once you create your Mattermost instance, if you access via web interface it should prompt you to create the initial admin user directly (no need for mmctl). Would you mind sharing which database engine did you use? (an operator, aws, etc.) so I can take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants