YunoHost-Apps / mattermost_ynh

Mattermost package for YunoHost
http://www.mattermost.org
GNU General Public License v3.0
33 stars 19 forks source link

Use mmctl CLI command #361

Closed rodinux closed 2 years ago

rodinux commented 2 years ago

Describe the bug

The CLI command mmctl can't be performed

Context

Steps to reproduce

/var/www/mattermost# sudo -u mattermost bin/mmctl user list

return

Error: cannot read user credentials, maybe you need to use login first: stat /var/www/mattermost/.config/mmctl/config: no such file or directory

Expected behavior

The result of the CLI command bin/mmctl

Logs

It seems it is looking for a false url /var/www/mattermost/.config/mmctl/config

kemenaran commented 2 years ago

Yup! That's not very intuitive, but expected: mmctl has to be connected to the local mattermost instance using proper credentials before it can perform actions.

You can read an HOWTO for this on the mattermost_ynh wiki: https://github.com/YunoHost-Apps/mattermost_ynh/wiki

Does that solve your issue?

rodinux commented 2 years ago

Yes, it solve my issue. Thanks you so much ! I closed the issue if you wish