[Solved] Mmctl user delete fails, --json ignored,

Hi John,

thank you for looking at this.

The SiteURL is configured correctly - at least that’s what I would claim it to be. The URL can be reached and the Mattermost server responds to requests on that, both via Web and Windows desktop client.

Reviewing mmctl user commands does not bring any new knowledge. The documentation for mmctl user delete proves my command to be valid - as long as I do not miss something very fundamentally

But I found something new and very strange: the user list differs from using --local or being logged in using mmctl auth login:

mattermost@border:~/bin$ ./mmctl --local user list | grep "There are" 
There are 18 users on local instance

mattermost@border:~/bin$ ./mmctl  user list | grep "There are" 
WARNING: server version 9.2.3.6961628977.35c8f515980a06a386a0606e9e7e7749.false doesn't match mmctl version 10.0.0
There are 16 users on https://intern.mydomain.de/chat/

Most interestingly (and a probable cause for the issue): the mismatch between the versions of mmctl and mattermost - see the warning message when accessing the server remotely.

But I installed the version 10 tarball! It seems as if the tarballs have a mismatch between mattermost and mmctl. I downgraded to 9.5.10, and I still got the same error message.

Comparing the hashes of mattermost versions 9.5.10, 9.11.2 and 10.0.0 shows differences:

(python-venv) root@border:/tmp# md5sum mattermost-upgrade-*/bin/mattermost 
03dab6275430986b7e383efc4c071f3f  mattermost-upgrade-10.0.0/bin/mattermost
baceddcee9f3aaf49a9e4e7b78364211  mattermost-upgrade-9.11.2/bin/mattermost
14d57190c3a5391748eca930c9c733bf  mattermost-upgrade-9.5.10/bin/mattermost

This means, the binaries differ. But they all claim to be a server version 9.2.3. I will now try to find an old 9.2.3 version of the server to install …