ECS Fargate fluent-bit side-car container exit with code 139

I am trying to use AWS fluent-bit custom image as sidecar for my server container. But each time the service starts up the fluent-bit container stays up for one minute and exits with the 139 code. The only logs that I am seeing are fluent-bit startup logs.

Maybe someone has some suggestions? I am very desperate to get this working, any help is appreciated!

Here is the config I had added:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>[SERVICE]
Log_Level info
Parsers_File parsers.conf
[INPUT]
Name tail
Path /app/logs/*.log
Parser json
Tag app_logs
[INPUT]
Name forward
Tag stderr
[OUTPUT]
Name s3
Match *
bucket <BUCKET>
region us-east-1
total_file_size 5M
upload_timeout 10m
use_put_object On
s3_key_format /fluent-bit-logs/<SERVICE NAME>/%Y/%m/%d/$UUID.log
[OUTPUT]
Name stdout
Match *
</code>
<code>[SERVICE] Log_Level info Parsers_File parsers.conf [INPUT] Name tail Path /app/logs/*.log Parser json Tag app_logs [INPUT] Name forward Tag stderr [OUTPUT] Name s3 Match * bucket <BUCKET> region us-east-1 total_file_size 5M upload_timeout 10m use_put_object On s3_key_format /fluent-bit-logs/<SERVICE NAME>/%Y/%m/%d/$UUID.log [OUTPUT] Name stdout Match * </code>
[SERVICE]
    Log_Level    info
    Parsers_File parsers.conf

[INPUT]
    Name          tail
    Path          /app/logs/*.log
    Parser        json
    Tag           app_logs

[INPUT]
    Name          forward
    Tag           stderr

[OUTPUT]
    Name          s3
    Match         *
    bucket        <BUCKET>
    region        us-east-1
    total_file_size 5M
    upload_timeout 10m
    use_put_object On
    s3_key_format /fluent-bit-logs/<SERVICE NAME>/%Y/%m/%d/$UUID.log

[OUTPUT]
    Name          stdout
    Match         *

And this is my Dockerfile:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>FROM --platform=linux/x86_64 amazon/aws-for-fluent-bit:stable
# Copy the Fluent Bit configuration file
COPY fluent-bit.conf /fluent-bit/etc/fluent-bit.conf
# Command to run Fluent Bit
CMD ["/fluent-bit/bin/fluent-bit", "-c", "/fluent-bit/etc/fluent-bit.conf"]
</code>
<code>FROM --platform=linux/x86_64 amazon/aws-for-fluent-bit:stable # Copy the Fluent Bit configuration file COPY fluent-bit.conf /fluent-bit/etc/fluent-bit.conf # Command to run Fluent Bit CMD ["/fluent-bit/bin/fluent-bit", "-c", "/fluent-bit/etc/fluent-bit.conf"] </code>
FROM --platform=linux/x86_64 amazon/aws-for-fluent-bit:stable

# Copy the Fluent Bit configuration file
COPY fluent-bit.conf /fluent-bit/etc/fluent-bit.conf

# Command to run Fluent Bit
CMD ["/fluent-bit/bin/fluent-bit", "-c", "/fluent-bit/etc/fluent-bit.conf"]

Then in the Task Definition is as follows:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>"logConfiguration": {
"logDriver": "awsfirelens",
"options": {
"EnableECSLogMetadata": "true",
"Type": "fluentbit",
"Name": "firelens"
},
</code>
<code>"logConfiguration": { "logDriver": "awsfirelens", "options": { "EnableECSLogMetadata": "true", "Type": "fluentbit", "Name": "firelens" }, </code>
"logConfiguration": {
    "logDriver": "awsfirelens",
    "options": {
        "EnableECSLogMetadata": "true",
        "Type": "fluentbit",
        "Name": "firelens"
},
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>{
"name": "fluent-bit",
"image": "<ACC_NUMBER>.dkr.ecr.us-east-1.amazonaws.com/fluent-bit:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"environment": [],
"mountPoints": [],
"volumesFrom": [],
"user": "0",
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/firelens/fluent-bit",
"awslogs-create-group": "true",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "fluent-bit"
},
"secretOptions": []
},
"systemControls": [],
"firelensConfiguration": {
"type": "fluentbit",
"options": {
"config-file-type": "file",
"config-file-value": "/fluent-bit/etc/fluent-bit.conf"
}
}
}
</code>
<code>{ "name": "fluent-bit", "image": "<ACC_NUMBER>.dkr.ecr.us-east-1.amazonaws.com/fluent-bit:latest", "cpu": 0, "portMappings": [], "essential": true, "environment": [], "mountPoints": [], "volumesFrom": [], "user": "0", "logConfiguration": { "logDriver": "awslogs", "options": { "awslogs-group": "/firelens/fluent-bit", "awslogs-create-group": "true", "awslogs-region": "us-east-1", "awslogs-stream-prefix": "fluent-bit" }, "secretOptions": [] }, "systemControls": [], "firelensConfiguration": { "type": "fluentbit", "options": { "config-file-type": "file", "config-file-value": "/fluent-bit/etc/fluent-bit.conf" } } } </code>
{
    "name": "fluent-bit",
    "image": "<ACC_NUMBER>.dkr.ecr.us-east-1.amazonaws.com/fluent-bit:latest",
    "cpu": 0,
    "portMappings": [],
    "essential": true,
    "environment": [],
    "mountPoints": [],
    "volumesFrom": [],
    "user": "0",
    "logConfiguration": {
        "logDriver": "awslogs",
        "options": {
            "awslogs-group": "/firelens/fluent-bit",
            "awslogs-create-group": "true",
            "awslogs-region": "us-east-1",
            "awslogs-stream-prefix": "fluent-bit"
        },
        "secretOptions": []
    },
    "systemControls": [],
    "firelensConfiguration": {
        "type": "fluentbit",
        "options": {
            "config-file-type": "file",
            "config-file-value": "/fluent-bit/etc/fluent-bit.conf"
        }
    }
}

Tried modifying memory of the service
Tried changing the configurations

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật