We're Hiring!

Mattermost, Inc.

Error when attempting to authenticate mmctl

Summary

When I attempt to authenticate with mmctl, I get an error stating "error: there was a problem reading the credentials file: read /root/.mmctl: is a directory

Steps to reproduce

Mattermost 5.30.1 installed using Mattermost Omnibus
Ubuntu 20.04
Followed the directions here to install, instance is running fine otherwise: Light Install Guide — Mattermost 5.30 documentation

Have tried running this in the root directory, /etc/mattermost, and /opt/mattermost/bin (not sure if this matters)

Expected behavior

Authenticate with server

Observed behavior

Error stating “error: there was a problem reading the credentials file: read /root/.mmctl: is a directory”

This seems to be saying that the folder in your root directory, .mmctl is actually supposed to be a file, instead of a folder. Can you verify the format of the file? You can do that by providing the output of the following command:

ls -alh /root/