Summary
mattermost-docker_app does not start
Steps to reproduce
I my case i upgraded from 4.8.1 to 4.10.0 using h ttps://github.com/mattermost/mattermost-docker#update-mattermost-to-latest-version and h ttps://github.com/mattermost/mattermost-docker#upgrading-mattermost-to-49
Expected behavior
mattermost-docker_app does start
Observed behavior
Everthing is set-up according to h ttps://docs.mattermost.com/install/prod-docker.html#production-docker-setup-on-ubuntu
$ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2788625bedb5 mattermost-docker_db "/entrypoint.sh post…" 15 minutes ago Up 15 minutes (healthy) 5432/tcp mattermost-docker_db_1
96f2e1a4d708 mattermost-docker_web "/entrypoint.sh" 15 minutes ago Up 15 minutes (unhealthy) 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp mattermost-docker_web_1
61e4b2568079 mattermost-docker_app "/entrypoint.sh plat…" 15 minutes ago Restarting (100) 1 second ago mattermost-docker_app_1
The container “mattermost-docker_app” restarts itself over and over.
$ curl http://localhost
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
$ docker logs -f mattermost-docker_web_1
[snip]
2018/05/18 14:00:03 [error] 11#11: *81 connect() failed (113: Host is unreachable) while connecting to upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "h ttp://172.18.0.2:8000/", host: "localhost"
127.0.0.1 - - [18/May/2018:14:00:03 +0200] "GET / HTTP/1.1" 502 166 "-" "curl/7.59.0" "-"
$ docker logs -f mattermost-docker_app_1
Using existing config file /mattermost/config/config.json
Configure database connection...OK
Wait until database db:5432 is ready...
Starting platform
[repeates over and over]
$ docker logs -f mattermost-docker_db_1
AWS_ACCESS_KEY_ID is required for Wal-E but not set. Skipping Wal-E setup.
AWS_SECRET_ACCESS_KEY is required for Wal-E but not set. Skipping Wal-E setup.
WALE_S3_PREFIX is required for Wal-E but not set. Skipping Wal-E setup.
AWS_REGION is required for Wal-E but not set. Skipping Wal-E setup.
LOG: database system was shut down at 2018-05-18 11:36:38 UTC
LOG: MultiXact member wraparound protections are now enabled
LOG: autovacuum launcher started
LOG: database system is ready to accept connections
LOG: incomplete startup packet
ERROR: type "teams" already exists
HINT: A relation has an associated type of the same name, so you must use a name that doesn't conflict with any existing type.
STATEMENT: create table if not exists "teams" ("id" varchar(26) not null primary key, "createat" bigint, "updateat" bigint, "deleteat" bigint, "displayname" varchar(64), "name" varchar(64) unique, "description" varchar(255), "email" varchar(128), "type" text, "companyname" varchar(64), "alloweddomains" varchar(500), "inviteid" varchar(32), "allowopeninvite" boolean, "lastteamiconupdate" bigint) ;
The last four lines from “docker logs -f mattermost-docker_db_1” repeates over and over.
Can someone help me with that?