Hello, after upgrading mattermost to version 6.1.0 I have a problem while trying to create new user using “mmctl user create” command.
I used to create new users with “mattermost user create”.
Now when I run this command
/opt/mattermost/bin/mmctl user create --email email@example.com --username newusername --password ‘newpassword’ --firstname User --lastname Test
I get the following error:
Error: cannot read user credentials, maybe you need to use login first: stat /root/.config/mmctl/config: no such file or directory
Mattermost is run by user mattermost. If I run “su mattermost” and then run the same mmctl command, I get:
Error: cannot read user credentials, maybe you need to use login first: stat /home/mattermost/.config/mmctl/config: no such file or directory
How can I solve this problem?
Do I have to change mattermost user’s home directory to /opt/mattermost/ or /opt/mattermost/bin/ ?