Mattermost, Inc.

Matttermost Fails on AWS Beanstalk

For feature requests, please see: http://www.mattermost.org/feature-requests/.

For troubleshooting questions, please post in the following format:

Summary

Matttermost Fails on AWS Beanstalk

Steps to reproduce

I’m using the follow code on AWS BS:
{
“AWSEBDockerrunVersion”: “2”,
“volumes”: [
{
“name”: “app-config”,
“host”: {
“sourcePath”: “/var/app/current/app/mattermost/config”
}
},
{
“name”: “app-data”,
“host”: {
“sourcePath”: “/var/app/current/app/mattermost/data”
}
},
{
“name”: “app-logs”,
“host”: {
“sourcePath”: “/var/app/current/app/mattermost/logs”
}
},
{
“name”: “app-plugins”,
“host”: {
“sourcePath”: “/var/app/current/app/mattermost/plugins”
}
},
{
“name”: “db-data”,
“host”: {
“sourcePath”: “/var/app/current/db/mattermost/var/lib/postgresql/data”
}
},
{
“name”: “web-cert”,
“host”: {
“sourcePath”: “/var/app/current/web/cert”
}
}
],
“containerDefinitions”: [
{
“name”: “db”,
“image”: “mattermost/mattermost-prod-db:latest”,
“memory”: 128,
“essential”: true,
“mountPoints”: [
{
“sourceVolume”: “db-data”,
“containerPath”: “/var/lib/postgresql/data”
}
],
“environment”: [
{
“name”: “POSTGRES_USER”,
“value”: “mmuser”
}, {
“name”: “POSTGRES_PASSWORD”,
“value”: “[snip]”
}, {
“name”: “POSTGRES_DB”,
“value”: “mattermost”
}
]
},
{
“name”: “app”,
“image”: “mattermost/mattermost-prod-app:5.21.0”,
“memory”: 128,
“essential”: true,
“mountPoints”: [
{
“sourceVolume”: “app-config”,
“containerPath”: “/mattermost/config”
},
{
“sourceVolume”: “app-data”,
“containerPath”: “/mattermost/data”
},
{
“sourceVolume”: “app-logs”,
“containerPath”: “/mattermost/logs”
},
{
“sourceVolume”: “app-plugins”,
“containerPath”: “/mattermost/plugins”
}
],
“links”: [
“db”
]
},
{
“name”: “web”,
“image”: “mattermost/mattermost-prod-web:latest”,
“memory”: 128,
“essential”: true,
“mountPoints”: [
{
“sourceVolume”: “web-cert”,
“containerPath”: “/cert”
}
],
“portMappings”: [
{
“hostPort”: 80,
“containerPort”: 80
},
{
“hostPort”: 443,
“containerPort”: 443
}
],
“links”: [
“app”
]
}
]
}

Expected behavior

Successful launch

Observed behavior

[Instance: i-01539c80eaded2057] Command failed on instance. Return code: 1 Output: to start ECS task after retrying 2 times.’ --severity ERROR + exit 1. Hook /opt/elasticbeanstalk/hooks/appdeploy/enact/03start-task.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.

@paulrothrock Would the support team be familiar with this issue?

@ChinyaSuhail, it sounds like the server is failing to start. Can you share the logs from the EB CLI and /var/log/eb-activity.log?

eb-activity.log