The situation:
I have used Mattermost on my Qnap NAS in my company for some years now. It was installed as the official App in the Qnap store. The App got updates until version 5.0.0.10 until support stopped.
I now try to migrate the data to a new install on a self hosted server.
It took me some time to find out where on the Qnap Mattermost got installed. I think it lives in
/share/CACHEDEV1_DATA/.qpkg/mattermost/
But I do not know a password of the âmattermostâ user in order to switch to it nor did any of the commands work.
Can anyone point me in the right direction of how to get this export working?
Your version of Mattermost is beyond ancient. Youâre going to have a bunch of issues here. You can use sudo find / -name 'mattermost' to locate your mattermost binary, then do an ls -l on it to find the user who owns it. Thatâs the user youâd need to sudo as. Look in the directory that contains that binary for mmctl⌠it may not be there in such an old version. If not, check Releases ¡ mattermost/mmctl ¡ GitHub I donât see a download for 5.0.0.10, nor do I see any evidence in our version archive that there was ever any such version. You may have an issue where QNAP did their own bundling years ago, stopped, and left you in an odd position.
I would get the database and object store backed up. Then copy everything to a VM (because thereâs a good chance things can start to break in interesting ways!) and try a manual upgrade to 5.0.3, and then to 5.9.8, then 5.19.3 At that point, thereâs a supported mmctl. I would keep upgrading from ESR to ESR (search for "Extended Support Release) in the version archive) until you get to 9.11.x or 10.5.x And then migrate your database to Postgres Migration guidelines from MySQL to PostgreSQL - Mattermost documentation
I would not recommend continuing to run natively on the QNAP⌠it isnât supported, and we have no idea what theings theyâve done to their OS. Itâll be a lot easier to get help if youâre running on plain olâ Ubuntu or debian or RHEL.
Hi John,
Thanks for taking the time to respond to this odd problem.
Yes the version is ancient and I really hope I can get my data out of this Qnap prison. As I am a completely useless navigating Linux (I donât know even the most basic stuff) and therefore would even pay somebody to get it all transferred to a regular Ubuntu webserver. I might then manage to do the update path you described by myself.
This is the result of the command " # sudo find / -name âmattermostâ " logged in the Qnap as admin user:
It found multiple directories with that name and none seems to include a directory named âmattermostâ. I start to think that Mattermost is not installed in a docker container on my NAS but what do I know?
I am stuck again but maybe with a little help I can get closer to finding the install directory of Mattermost.
But no luck. The documentation says Mattermost is installed in mattermost/bin but I could not find a /bin directory where Qnap support says MM is installed.
I canât believe there is no way in Linux to find where a program is installed.
What and how do I need to search for it?
@Varingo we just donât know what QNAP did to package Mattermost so many years ago. Youâre right⌠at your second arrow, there should be a /bin but there isnât.
There area few other ways to try to puzzle this out, but they involve getting into the Linux OS and digging with some tools that require some expertise. IMO you need to get a sharp Linux consultant.