Hi everyone,
I'm facing issues with managing mattermost users through CLI interface. I've registered mattermost as a systemd service so I'm able to launch mm with sudo systemctl start mattermost. Regardless, I'm not able to manage any settings / users / channels from /opt/mattermost or /opt/mattermost/bin with the platform utility.
When I start using the platform utility, platform starts another mm instance. After loading the config.json, platform declares that another service is running on port 8065, which is true.
So how can I use platform user create or platform help and so on? I'm very confused right now....
mattermost@mm:/opt/mattermost/bin# ./platform user delete someuser
[2017/02/22 14:31:27 CET] [INFO] Loaded system translations for 'en' from '/opt/mattermost/i18n/en.json'
[2017/02/22 14:31:27 CET] [INFO] Current version is 3.2.0 (3.2.0/Thu Jul 14 16:27:27 UTC 2016/ab52700aaa76a5623de23cd0156f5dbd9a24e264/none)
[2017/02/22 14:31:27 CET] [INFO] Enterprise Enabled: false
[2017/02/22 14:31:27 CET] [INFO] Current working directory is /opt/mattermost/bin
[2017/02/22 14:31:27 CET] [INFO] Loaded config file from /opt/mattermost/config/config.json
[2017/02/22 14:31:27 CET] [INFO] Server is initializing...
[2017/02/22 14:31:27 CET] [INFO] Pinging sql master database
[2017/02/22 14:31:27 CET] [INFO] Pinging sql replica-0 database
[2017/02/22 14:31:27 CET] [DEBG] Deleting any unused pre-release features
[2017/02/22 14:31:27 CET] [DEBG] Initializing user api routes
[2017/02/22 14:31:27 CET] [DEBG] Initializing team api routes
[2017/02/22 14:31:27 CET] [DEBG] Initializing channel api routes
[2017/02/22 14:31:27 CET] [DEBG] Initializing post api routes
[2017/02/22 14:31:27 CET] [DEBG] Initializing web socket api routes
[2017/02/22 14:31:27 CET] [DEBG] Initializing file api routes
[2017/02/22 14:31:27 CET] [DEBG] Initializing command api routes
[2017/02/22 14:31:27 CET] [DEBG] Initializing admin api routes
[2017/02/22 14:31:27 CET] [DEBG] Initializing general api routes
[2017/02/22 14:31:27 CET] [DEBG] Initializing oauth api routes
[2017/02/22 14:31:27 CET] [DEBG] Initializing webhook api routes
[2017/02/22 14:31:27 CET] [DEBG] Initializing preference api routes
[2017/02/22 14:31:27 CET] [DEBG] Initializing license api routes
[2017/02/22 14:31:27 CET] [DEBG] Initializing emoji api routes
[2017/02/22 14:31:27 CET] [DEBG] Parsing server templates at /opt/mattermost/templates/
[2017/02/22 14:31:27 CET] [DEBG] Initializing web routes
[2017/02/22 14:31:27 CET] [DEBG] Using client directory at /opt/mattermost/webapp/dist/
[2017/02/22 14:31:27 CET] [INFO] Starting Server...
[2017/02/22 14:31:27 CET] [INFO] Server is listening on :8065
[2017/02/22 14:31:27 CET] [INFO] RateLimiter is enabled
[2017/02/22 14:31:27 CET] [CRIT] Error starting server, err:listen tcp :8065: bind: address already in use
What am I doing wrong? jfyi - it's an upgraded team version