• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue I'm New to Docker and Containers - installing Mattermost

David Borrink

Basic Pleskian
Server operating system version
CentOS Linux 7.9.2009 (Core)
Plesk version and microupdate number
Plesk Obsidian 18.0.49 Update #2, last updated on Jan 18, 2023 08:04 PM
I'm wanting to install Mattermost on Plesk for a messaging system for my home business with my family. I have the Docker extension added, and from what I can tell, I would be installing the Mattermost/Mattermost Team Edition container. A local image has been added and when I chose run, it appears to be repeating the same five lines in the log...

{"timestamp":"2023-02-18 03:52:06.137 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:165","go_version":"go1.18.1"}
{"timestamp":"2023-02-18 03:52:06.137 Z","level":"info","msg":"Pinging SQL","caller":"sqlstore/store.go:240","database":"master"}
{"timestamp":"2023-02-18 03:52:06.139 Z","level":"error","msg":"Failed to ping DB","caller":"sqlstore/store.go:250","error":"dial tcp 127.0.0.1:5432: connect: connection refused","retrying in seconds":10}
{"timestamp":"2023-02-18 03:52:16.146 Z","level":"info","msg":"Pinging SQL","caller":"sqlstore/store.go:240","database":"master"}
{"timestamp":"2023-02-18 03:52:16.146 Z","level":"error","msg":"Failed to ping DB","caller":"sqlstore/store.go:250","error":"dial tcp 127.0.0.1:5432: connect: connection refused","retrying in seconds":10}
{"timestamp":"2023-02-18 03:52:26.155 Z","level":"info","msg":"Pinging SQL","caller":"sqlstore/store.go:240","database":"master"}
{"timestamp":"2023-02-18 03:52:26.155 Z","level":"error","msg":"Failed to ping DB","caller":"sqlstore/store.go:250","error":"dial tcp 127.0.0.1:5432: connect: connection refused","retrying in seconds":10}
{"timestamp":"2023-02-18 03:52:36.164 Z","level":"info","msg":"Pinging SQL","caller":"sqlstore/store.go:240","database":"master"}
{"timestamp":"2023-02-18 03:52:36.164 Z","level":"error","msg":"Failed to ping DB","caller":"sqlstore/store.go:250","error":"dial tcp 127.0.0.1:5432: connect: connection refused","retrying in seconds":10}
{"timestamp":"2023-02-18 03:52:46.173 Z","level":"info","msg":"Pinging SQL","caller":"sqlstore/store.go:240","database":"master"}
{"timestamp":"2023-02-18 03:52:46.173 Z","level":"error","msg":"Failed to ping DB","caller":"sqlstore/store.go:250","error":"dial tcp 127.0.0.1:5432: connect: connection refused","retrying in seconds":10}

I appear to be getting nowhere. I need a translation of what this means so I know what's going on. I've never worked with Docker or Containers so... I'm a newbie.
 
Looks like your SQL details are wrong or missing causing the SQL to try to connect and become refused error, I suggest you would need to change your SQL username and database, password makes sure they're all correct. Or disable your firewall at server.
 
Thank you Samet for your reply. My thought is that I'm not doing the right container for Mattermost installation.

When I use the Docker catalog search in the Plesk window, I get a lot of Mattermost image options and I have a limited idea what I should be using. The problem is, when I go to the Mattermost Docker installation page (Deploy Your Self-Hosted Mattermost Server | Mattermost), it has command line instructions. Well, I'm not using command lines, I'm using Docker which is going to install with images. Searching for "installing Mattermost with Docker containers" is getting me a lot of pages with command line instructions only.

Could someone point me to a reference that would tell me what Mattermost images I need to run to install a self-hosted Mattermost setup for my home business? Do I need to run one to create a database? Do I need to run only the Mattermost Team Edition?
 

Attachments

  • Screen Shot 2023-02-18 at 10.48.04 PM.png
    Screen Shot 2023-02-18 at 10.48.04 PM.png
    182.4 KB · Views: 14
  • Screen Shot 2023-02-18 at 10.48.17 PM.png
    Screen Shot 2023-02-18 at 10.48.17 PM.png
    178.9 KB · Views: 12
Thank you Samet for your reply. My thought is that I'm not doing the right container for Mattermost installation.

When I use the Docker catalog search in the Plesk window, I get a lot of Mattermost image options and I have a limited idea what I should be using. The problem is, when I go to the Mattermost Docker installation page (Deploy Your Self-Hosted Mattermost Server | Mattermost), it has command line instructions. Well, I'm not using command lines, I'm using Docker which is going to install with images. Searching for "installing Mattermost with Docker containers" is getting me a lot of pages with command line instructions only.

Could someone point me to a reference that would tell me what Mattermost images I need to run to install a self-hosted Mattermost setup for my home business? Do I need to run one to create a database? Do I need to run only the Mattermost Team Edition?
You would need to install this Mattermost

Let me if works
 
That's what I did originally. I installed the Mattermost extension and it's version 7.1.0. It loaded the Mattermost Panel, but all my domains had messages that "necessary packages were not installed" but there was a button to install them (see first screen shot below). After that ran and there was a notification that the packages were installed, I refreshed the screen and the domains still had "necessary packages were not installed" messages even though the installer said it did so. My assumption was that the Mattermost Extension wasn't the latest version of Mattermost. Mattermost is at 7.8.0 I believe. So this Plesk extension would appear to me to not be the most current.

That's when I decided to investigate the Docker method.
 

Attachments

  • Screen Shot 2023-02-19 at 2.47.24 PM.png
    Screen Shot 2023-02-19 at 2.47.24 PM.png
    111.2 KB · Views: 10
  • Screen Shot 2023-02-19 at 2.51.00 PM.png
    Screen Shot 2023-02-19 at 2.51.00 PM.png
    172.4 KB · Views: 9
So the question is: if the Mattermost extension doesn't work because it's not updated, how do I install Mattermost through Docker and what images do I use from that list of many images? Some are deprecated, and noted so.
 
Back
Top