I am trying to get started with Mattermost. I was able to launch it on AWS/Bitnami.
But when I try to execute a
mmctl command I get the following error:
Error: cannot read user credentials, maybe you need to use login first: stat /home/bitnami/.config/mmctl/config: no such file or directory
How do I solve this?
Hi @ONiel and welcome to the Mattermost forums!
mmctl is a command line client which is using the API to connect to the Mattermost server by default, so you need to use the
mmctl auth login command first to login to your local or remote instance. Once that’s done, a session token will be saved in
mmctl’s config and you can use this token for all further commands.
Alternatively, you can enable Mattermost’s so-called “local mode” by changing the value of
EnableLocalMode in its
trueand after a server restart, you can use the socket-authenticated
mmctl --local with all available commands without having to do a separate login first.
I couldn’t get the changes to config file to persist so I resolved this outside of docker container
./mmctl auth login http://localhost:8065
Connection name didn’t seem to matter “Connection name: local-server”
Username and password of system admin did the trick
Big thank you Devin for following up with the solution!