Please fill in the questionnaire below.
Technical Help Questionnaire
Have you read and followed the instructions at: *READ ME FIRST* Technical Help FAQs - #2 by nigel ?
Answer: Yes
How have you self-hosted Baserow
AWS ECS
What are the specs of the service or server you are using to host Baserow.
I’ve deployed a task with recommended settings:
4vCPU 8 GB RAM
Which version of Baserow are you using.
baserow/baserow:1.23.2
All in One
How have you configured your self-hosted installation?
I’ve used a guide from: Install on AWS // Baserow
What commands if any did you use to start your Baserow server?
Nothing
Describe the problem
I’ve created an AWS ECS cluster, however my service and task is always failing.
What has been done:
1 - ALB with 443 and 80
2 - Target Group to ECS through port 80
3 - Environment variables configured
Here is the JSON definition of the task
{
"taskDefinitionArn": "arn:aws:ecs:eu-central-1:AWSACCOUNTNUMBERHIDDEN:task-definition/MANUAL:1",
"containerDefinitions": [
{
"name": "BASEROW-MANUAL",
"image": "baserow/baserow:1.23.2",
"cpu": 4096,
"memory": 8192,
"portMappings": [
{
"containerPort": 443,
"hostPort": 443,
"protocol": "tcp"
},
{
"containerPort": 80,
"hostPort": 80,
"protocol": "tcp"
}
],
"essential": true,
"environment": [
{
"name": "DISABLE_VOLUME_CHECK",
"value": "yes"
},
{
"name": "BASEROW_PUBLIC_URL",
"value": "https://--.com" // Hided - but valid FQDN
},
{
"name": "DOWNLOAD_FILE_VIA_XHR",
"value": "1"
},
{
"name": "BASEROW_IMAGE_TYPE",
"value": "all-in-one"
},
{
"name": "REDIS_URL",
"value": "rediss://nde-baserow-poc-ech.0us1dt.0001.euc1.cache.amazonaws.com:6379/0"
},
{
"name": "AWS_STORAGE_BUCKET_NAME",
"value": "nde-baserow-poc-s3b"
}
],
"mountPoints": [],
"volumesFrom": [],
"secrets": [
{
"name": "DATABASE_HOST",
"valueFrom": "arn:aws:secretsmanager:eu-central-1:AWSACCOUNTNUMBERHIDDEN:secret:CDKBASEROWPOCNDEBASEROWPOCR-x7gNxVSMqygW-WSTQ55:host::"
},
{
"name": "DATABASE_NAME",
"valueFrom": "arn:aws:secretsmanager:eu-central-1:AWSACCOUNTNUMBERHIDDEN:secret:CDKBASEROWPOCNDEBASEROWPOCR-x7gNxVSMqygW-WSTQ55:dbname::"
},
{
"name": "DATABASE_PASSWORD",
"valueFrom": "arn:aws:secretsmanager:eu-central-1:AWSACCOUNTNUMBERHIDDEN:secret:CDKBASEROWPOCNDEBASEROWPOCR-x7gNxVSMqygW-WSTQ55:password::"
},
{
"name": "DATABASE_PORT",
"valueFrom": "arn:aws:secretsmanager:eu-central-1:AWSACCOUNTNUMBERHIDDEN:secret:CDKBASEROWPOCNDEBASEROWPOCR-x7gNxVSMqygW-WSTQ55:port::"
},
{
"name": "DATABASE_USER",
"valueFrom": "arn:aws:secretsmanager:eu-central-1:AWSACCOUNTNUMBERHIDDEN:secret:CDKBASEROWPOCNDEBASEROWPOCR-x7gNxVSMqygW-WSTQ55:username::"
}
],
"dockerLabels": {},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "baserow",
"awslogs-region": "eu-central-1",
"awslogs-stream-prefix": "logs"
}
},
"systemControls": []
}
],
"family": "MANUAL",
"taskRoleArn": "arn:aws:iam::AWSACCOUNTNUMBERHIDDEN:role/nde-baserow-poc-iam",
"executionRoleArn": "arn:aws:iam::AWSACCOUNTNUMBERHIDDEN:role/CDK-BASEROW-POC-NDEBASEROWPOCECSTSKExecutionRole8EE-UtdybVkoMi8p",
"networkMode": "awsvpc",
"revision": 1,
"volumes": [],
"status": "ACTIVE",
"requiresAttributes": [
{
"name": "com.amazonaws.ecs.capability.logging-driver.awslogs"
},
{
"name": "ecs.capability.execution-role-awslogs"
},
{
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.19"
},
{
"name": "ecs.capability.secrets.asm.environment-variables"
},
{
"name": "com.amazonaws.ecs.capability.task-iam-role"
},
{
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.18"
},
{
"name": "ecs.capability.task-eni"
}
],
"placementConstraints": [],
"compatibilities": [
"EC2",
"FARGATE"
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "4096",
"memory": "8192",
"registeredAt": "2024-04-03T12:43:36.659Z",
"registeredBy": "arn:aws:sts::AWSACCOUNTNUMBERHIDDEN:assumed-role/AWSReservedSSO_NDE-AWSPractice-Admin_318fbfc360223a3b/P3250064",
"tags": []
}
Here is the logs from CloudWatch, but I don’t really understand what is the root cause, only thing I can see it’s Caddy
and port 3000
2024-04-03T16:18:53.836+03:00
2024-04-03 13:18:53,836 INFO reaped unknown pid 206 (exit status 0)
2024-04-03 13:18:53,836 INFO reaped unknown pid 206 (exit status 0)
2024-04-03T16:18:53.836+03:00
2024-04-03 13:18:53,836 INFO reaped unknown pid 206 (exit status 0)
2024-04-03 13:18:53,836 INFO reaped unknown pid 206 (exit status 0)
2024-04-03T16:18:53.836+03:00
e[36m [CELERY_WORKER][2024-04-03 13:18:53] e(Be[m
e[36m [CELERY_WORKER][2024-04-03 13:18:53] e(Be[m
2024-04-03T16:18:53.836+03:00
e[36m [CELERY_WORKER][2024-04-03 13:18:53] e(Be[m
e[36m [CELERY_WORKER][2024-04-03 13:18:53] e(Be[m
2024-04-03T16:18:55.830+03:00
e[36m [CELERY_WORKER][2024-04-03 13:18:55] worker: Warm shutdown (MainProcess) e(Be[m
e[36m [CELERY_WORKER][2024-04-03 13:18:55] worker: Warm shutdown (MainProcess) e(Be[m
2024-04-03T16:18:55.831+03:00
2024-04-03 13:18:55,831 INFO stopped: celeryworker (exit status 0)
2024-04-03 13:18:55,831 INFO stopped: celeryworker (exit status 0)
2024-04-03T16:18:55.831+03:00
2024-04-03 13:18:55,831 INFO stopped: celeryworker (exit status 0)
2024-04-03 13:18:55,831 INFO stopped: celeryworker (exit status 0)
2024-04-03T16:18:55.831+03:00
2024-04-03 13:18:55,831 INFO reaped unknown pid 216 (exit status 0)
2024-04-03 13:18:55,831 INFO reaped unknown pid 216 (exit status 0)
2024-04-03T16:18:55.831+03:00
2024-04-03 13:18:55,831 INFO reaped unknown pid 216 (exit status 0)
2024-04-03 13:18:55,831 INFO reaped unknown pid 216 (exit status 0)
2024-04-03T16:18:56.832+03:00
2024-04-03 13:18:56,832 INFO stopped: backend (terminated by SIGTERM)
2024-04-03 13:18:56,832 INFO stopped: backend (terminated by SIGTERM)
2024-04-03T16:18:56.832+03:00
2024-04-03 13:18:56,832 INFO stopped: backend (terminated by SIGTERM)
2024-04-03 13:18:56,832 INFO stopped: backend (terminated by SIGTERM)
2024-04-03T16:18:56.833+03:00
e[35m [CADDY][2024-04-03 13:18:56]
{
"level": "info",
"ts": 1712150251.0400605,
"logger": "tls",
"msg": "finished cleaning storage units"
}
e(Be[m
e[35m [CADDY][2024-04-03 13:18:56] {"level":"info","ts":1712150251.0400605,"logger":"tls","msg":"finished cleaning storage units"} e(Be[m
2024-04-03T16:18:56.833+03:00
e[35m [CADDY][2024-04-03 13:18:56]
{
"level": "info",
"ts": 1712150336.8329391,
"msg": "shutting down apps, then terminating",
"signal": "SIGTERM"
}
e(Be[m
e[35m [CADDY][2024-04-03 13:18:56] {"level":"info","ts":1712150336.8329391,"msg":"shutting down apps, then terminating","signal":"SIGTERM"} e(Be[m
2024-04-03T16:18:56.833+03:00
e[35m [CADDY][2024-04-03 13:18:56]
{
"level": "warn",
"ts": 1712150336.8329701,
"msg": "exiting; byeee!! 👋",
"signal": "SIGTERM"
}
e(Be[m
e[35m [CADDY][2024-04-03 13:18:56] {"level":"warn","ts":1712150336.8329701,"msg":"exiting; byeee!! 👋","signal":"SIGTERM"} e(Be[m
2024-04-03T16:18:56.833+03:00
e[35m [CADDY][2024-04-03 13:18:56]
{
"level": "info",
"ts": 1712150336.8330188,
"logger": "http",
"msg": "servers shutting down with eternal grace period"
}
e(Be[m
e[35m [CADDY][2024-04-03 13:18:56] {"level":"info","ts":1712150336.8330188,"logger":"http","msg":"servers shutting down with eternal grace period"} e(Be[m
2024-04-03T16:18:56.833+03:00
e[35m [CADDY][2024-04-03 13:18:56]
{
"level": "info",
"ts": 1712150336.8332982,
"logger": "admin",
"msg": "stopped previous server",
"address": "localhost:2019"
}
e(Be[m
e[35m [CADDY][2024-04-03 13:18:56] {"level":"info","ts":1712150336.8332982,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"} e(Be[m
2024-04-03T16:18:56.834+03:00
e[35m [CADDY][2024-04-03 13:18:56]
{
"level": "info",
"ts": 1712150336.8333192,
"msg": "shutdown complete",
"signal": "SIGTERM",
"exit_code": 0
}
e(Be[m
e[35m [CADDY][2024-04-03 13:18:56] {"level":"info","ts":1712150336.8333192,"msg":"shutdown complete","signal":"SIGTERM","exit_code":0} e(Be[m
2024-04-03T16:18:56.834+03:00
2024-04-03 13:18:56,834 INFO stopped: caddy (exit status 0)
2024-04-03 13:18:56,834 INFO stopped: caddy (exit status 0)
2024-04-03T16:18:56.834+03:00
2024-04-03 13:18:56,834 INFO stopped: caddy (exit status 0)
2024-04-03 13:18:56,834 INFO stopped: caddy (exit status 0)
2024-04-03T16:18:57.836+03:00
2024-04-03 13:18:57,836 INFO stopped: baserow-watcher (terminated by SIGTERM)
2024-04-03 13:18:57,836 INFO stopped: baserow-watcher (terminated by SIGTERM)
2024-04-03T16:18:57.836+03:00
2024-04-03 13:18:57,836 INFO stopped: baserow-watcher (terminated by SIGTERM)
2024-04-03 13:18:57,836 INFO stopped: baserow-watcher (terminated by SIGTERM)
2024-04-03T16:18:57.836+03:00
2024-04-03 13:18:57,836 INFO reaped unknown pid 202 (exit status 0)
2024-04-03 13:18:57,836 INFO reaped unknown pid 202 (exit status 0)
2024-04-03T16:18:57.836+03:00
2024-04-03 13:18:57,836 INFO reaped unknown pid 202 (exit status 0)
2024-04-03 13:18:57,836 INFO reaped unknown pid 202 (exit status 0)
2024-04-03T16:18:57.836+03:00
2024-04-03 13:18:57,836 INFO waiting for processes to die
2024-04-03 13:18:57,836 INFO waiting for processes to die
2024-04-03T16:18:57.836+03:00
2024-04-03 13:18:57,836 INFO waiting for processes to die
2024-04-03 13:18:57,836 INFO waiting for processes to die
2024-04-03T16:18:57.837+03:00
2024-04-03 13:18:57,837 INFO stopped: processes (terminated by SIGTERM)
2024-04-03 13:18:57,837 INFO stopped: processes (terminated by SIGTERM)
2024-04-03T16:18:57.837+03:00
2024-04-03 13:18:57,837 INFO stopped: processes (terminated by SIGTERM)