Mattermost, Inc.

Unable to connect mattermost server

I’ve followed the instructions to set up a dev machine as laid out in the docs . (Centos 7)

I have Docker Tools for Centos 7 installed.

When I run make run-server I get the following error:

[uchat@localhost mattermost-server]$ INFO[2019-08-13T15:29:39.7053564+05:30] Loaded system translations for 'en' from '/home/uchat/go/src/github.com/mattermost/mattermost-server/i18n/en.json'  caller="utils/i18n.go:83"
INFO[2019-08-13T15:29:39.7679207+05:30] Server is initializing...                     caller="app/server_app_adapters.go:58"
DEBU[2019-08-13T15:29:39.7680223+05:30] Parsing server templates at /home/uchat/go/src/github.com/mattermost/mattermost-server/templates  caller="utils/html.go:31"

    [uchat@localhost mattermost-server]$ INFO[2019-08-13T15:29:40.611752+05:30] Pinging SQL master database                   caller="sqlstore/supplier.go:223"
ERRO[2019-08-13T15:29:40.8633158+05:30] Failed to ping DB retrying in 10 seconds err=dial tcp: lookup dockerhost on 192.168.2.1:53: no such host  caller="sqlstore/supplier.go:235"
INFO[2019-08-13T15:29:50.863713+05:30] Pinging SQL master database                   caller="sqlstore/supplier.go:223"
ERRO[2019-08-13T15:29:50.935306+05:30] Failed to ping DB retrying in 10 seconds err=dial tcp: lookup dockerhost on 192.168.2.1:53: no such host  caller="sqlstore/supplier.go:235"
INFO[2019-08-13T15:30:00.9360044+05:30] Pinging SQL master database                   caller="sqlstore/supplier.go:223"
ERRO[2019-08-13T15:30:00.9987264+05:30] Failed to ping DB retrying in 10 seconds err=dial tcp: lookup dockerhost on 192.168.2.1:53: no such host  caller="sqlstore/supplier.go:235"
INFO[2019-08-13T15:30:10.9993088+05:30] Pinging SQL master database                   caller="sqlstore/supplier.go:223"
ERRO[2019-08-13T15:30:11.06502+05:30] Failed to ping DB retrying in 10 seconds err=dial tcp: lookup dockerhost on 192.168.2.1:53: no such host  caller="sqlstore/supplier.go:235"
INFO[2019-08-13T15:30:21.066175+05:30] Pinging SQL master database                   caller="sqlstore/supplier.go:223"
ERRO[2019-08-13T15:30:21.1321728+05:30] Failed to ping DB retrying in 10 seconds err=dial tcp: lookup dockerhost on 192.168.2.1:53: no such host  caller="sqlstore/supplier.go:235"

Please help me out

Hi @Ganeshswain, would you be open to joining our community server and then joining either Developers or Peer-to-peer Help channel. One of our developers or community members will most likely be able to help with an issue like this.

Hi, @Ganeshswain

The Failed to ping DB retrying in 10 seconds err=dial tcp: lookup dockerhost on 192.168.2.1:53: no such host error that we are seeing here means that the Mattermost instance was unable to ping the machine hosting the database.

Based on the Build error: Server not connecting to dockerhost, can we confirm if the same problem persists if you edit the hostfile and define the alias similar to the one suggested by Jessie?

127.0.0.1     dockerhost 

@ahmaddanial Thanks fr your help. It worked:grinning::grinning::grinning:

1 Like

You are most welcome, @Ganeshswain. Any time!