Hi,
It only works if I sudo su - <mattermostuser>
and run ./bin/platform -version
from inside the mattermost install folder.
me@server:~$ sudo su - mmost
[sudo] password for me:
mmost@server:~$ /opt/mattermost/bin/platform -version
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x581c4c]
(...)
me@server:~$ sudo su - mmost
[sudo] password for me:
mmost@server:~$ cd /opt/mattermost
mmost@server:/opt/mattermost$ bin/platform -version
Version: 3.7.0
Build Number: 3.7.2
(...)
Happens on both 3.6.2 and 3.7.0.