# \[SOLVED\] Mattermost start problem

**URL:** <https://forum.mattermost.com/t/solved-mattermost-start-problem/3408>\
**Category:** Troubleshooting\
**Created:** [June 16, 2017, 11:46am UTC](https://forum.mattermost.com/t/solved-mattermost-start-problem/3408 "2017-06-16T11:46:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cadabre](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@Cadabre](https://forum.mattermost.com/u/Cadabre)\
**Post date:** [June 16, 2017, 11:46am UTC](https://forum.mattermost.com/t/solved-mattermost-start-problem/3408/1 "2017-06-16T11:46:38Z")

</div>

### Hello!
On the server we installed the docker. The docker compose file came from here: https://github.com/mattermost/mattermost-docker Isn't a config/config.json so i created one and copy the content from here: https://github.com/mattermost/platform/tree/master/config and add premmissions for this. After that i checked a postgresql database. Verified the connect with the user, it's ok. 
#### with docker-compose up i get this:

```
mattermost_db_1 | AWS_ACCESS_KEY_ID is required for Wal-E but not set. Skipping Wal-E setup.
mattermost_app_1 | Using config file /mattermost/config/config.json
mattermost_app_1 | Configure database connection...SKIP
mattermost_app_1 | Wait until database db:5432 is ready...
mattermost_app_1 | nc: getaddrinfo: Name or service not known
mattermost_web_1 | linking plain config
mattermost_web_1 | ln: failed to create symbolic link '/etc/nginx/conf.d/mattermost.conf': File exists
mattermost_web_1 | 2017/06/16 13:31:07 [emerg] 10#10: host not found in upstream "app" in /etc/nginx/conf.d/mattermost.conf:21
mattermost_web_1 | nginx: [emerg] host not found in upstream "app" in /etc/nginx/conf.d/mattermost.conf:21
mattermost_db_1 | LOG: database system was shut down at 2017-06-16 12:45:41 CEST
mattermost_db_1 | LOG: MultiXact member wraparound protections are now enabled
mattermost_db_1 | LOG: database system is ready to accept connections
mattermost_db_1 | LOG: autovacuum launcher started
mattermost_mattermost_web_1 exited with code 1
mattermost_app_1 | nc: getaddrinfo: Name or service not known
mattermost_web_1 | linking plain config
mattermost_web_1 | 2017/06/15 11:30:51 [emerg] 8#8: host not found in upstream "app" in /etc/nginx/conf.d/mattermost.conf:21
mattermost_web_1 | nginx: [emerg] host not found in upstream "app" in /etc/nginx/conf.d/mattermost.conf:21
mattermost_web_1 | ln: failed to create symbolic link '/etc/nginx/conf.d/mattermost.conf': File exists
mattermost_web_1 | linking plain config
mattermost_web_1 | 2017/06/15 11:30:52 [emerg] 8#8: host not found in upstream "app" in /etc/nginx/conf.d/mattermost.conf:21
mattermost_web_1 | nginx: [emerg] host not found in upstream "app" in /etc/nginx/conf.d/mattermost.conf:21
mattermost_app_1 | nc: getaddrinfo: Name or service not known
mattermost_mattermost_web_1 exited with code 1
mattermost_app_1 | nc: getaddrinfo: Name or service not known
mattermost_web_1 | linking plain config
mattermost_web_1 | 2017/06/15 11:30:51 [emerg] 8#8: host not found in upstream "app" in /etc/nginx/conf.d/mattermost.conf:21
mattermost_web_1 | nginx: [emerg] host not found in upstream "app" in /etc/nginx/conf.d/mattermost.conf:21
mattermost_web_1 | ln: failed to create symbolic link '/etc/nginx/conf.d/mattermost.conf': File exists
mattermost_web_1 | linking plain config
mattermost_web_1 | 2017/06/15 11:30:52 [emerg] 8#8: host not found in upstream "app" in /etc/nginx/conf.d/mattermost.conf:21
mattermost_web_1 | linking plain config
mattermost_web_1 | ln: failed to create symbolic link '/etc/nginx/conf.d/mattermost.conf': File exists
mattermost_web_1 | 2017/06/16 13:31:11 [emerg] 8#8: host not found in upstream "app" in /etc/nginx/conf.d/mattermost.conf:21
mattermost_web_1 | nginx: [emerg] host not found in upstream "app" in /etc/nginx/conf.d/mattermost.conf:21
mattermost_app_1 | nc: getaddrinfo: Name or service not known
mattermost_app_1 | nc: getaddrinfo: Name or service not known
mattermost_mattermost_web_1 exited with code 1
mattermost_app_1 | nc: getaddrinfo: Name or service not known
mattermost_app_1 | nc: getaddrinfo: Name or service not known

```

#### Docker ps show this:

```
 mattermost/mattermost-prod-web "/bin/sh -c /docker-e" 26 hours ago Restarting (1) 7 seconds ago 0.0.0.0:81->80/tcp, 0.0.0.0:444->443/tcp mattermost_mattermost_web_1
5b0c92c80cd3 mattermost/mattermost-prod-app "/docker-entry.sh pla" 26 hours ago Up 24 seconds 80/tcp mattermost_mattermost_app_1
21bcbb5d9761 mattermost/mattermost-prod-db "/docker-entrypoint1." 12 days ago Up 24 seconds 5432/tcp mattermost_mattermost_db_1
ad1eb0cfe67c gitlab/gitlab-runner:latest "/usr/bin/dumb-init /" 4 months ago Up 4 months  

```

#### I tried to check it with curl:

```
/mattermost/bin# curl -i http://localhost:81
curl: (7) Failed to connect to localhost port 81: Connection refused

```

So about this is the situation. What is the problem or where i need to search anything what can help me??  
Thanks all answer!!

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [June 19, 2017, 7:25am UTC](https://forum.mattermost.com/t/solved-mattermost-start-problem/3408/2 "2017-06-19T07:25:21Z")

</div>

Hi @Cadabre,

Thank you for your feedback,

Could you confirm that you set up the server following [this install guide](https://docs.mattermost.com/install/prod-docker.html)?

Here is the [troubleshooting guide](https://docs.mattermost.com/developer/dev-setup-troubleshooting.html) for help with error troubleshooting. Also, you can check out the [developer’s guide](https://docs.mattermost.com/guides/developer.html#mattermost-developer-s-guide) for further assistance.

Let us know if this information helps solve your issue.

---

<div class="post-metadata">

**Author:** ![pichouk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/pichouk/32/1347_2.png) [@pichouk](https://forum.mattermost.com/u/pichouk)\
**Post date:** [June 19, 2017, 8:01am UTC](https://forum.mattermost.com/t/solved-mattermost-start-problem/3408/3 "2017-06-19T08:01:25Z")

</div>

We are trying to fix this issue [on Github](https://github.com/mattermost/mattermost-docker/issues/142).  
Thanks for your log information, I think that there is an issue with the link between your containers.

(btw @lindy65 in case of Docker issues, feel free to mention me 🙂 )

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [June 19, 2017, 5:21pm UTC](https://forum.mattermost.com/t/solved-mattermost-start-problem/3408/4 "2017-06-19T17:21:27Z")

</div>

Thanks @pichouk! I’ll mention you in future 🙂
