coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
31.95k stars 1.65k forks source link

[Bug]: When enable log drain container is always restarts #2764

Open ReWWeR opened 2 months ago

ReWWeR commented 2 months ago

Description

When I try to turn on log drains (doesn't matter axiom or new relic) container restarts every time: cr.fluentbit.io/fluent/fluent-bit:2.0 "/fluent-bit/bin/flu…" 59 seconds ago Restarting (255) 4 seconds ago

Minimal Reproduction (if possible, example repository)

Maybe it's my local VPS issue, but the rest containers working well

Exception or Error

No response

Version

v4.0.0-beta.306

Blochergroup commented 2 months ago

Same here. When I check the logs of the container I get this error. Maybe adding a custom configuration for fluentbit might solve this issue? I am running coolify on an ARM chip, are you by any chance also? Might this be an issue? :

[error] [filter:modify:modify.1] Invalid config for set
[error] Failed initialize filter modify.1
[error] [engine] filter initialization failed

complete logs:

[2024/07/08 08:21:52] [ info] Configuration:
[2024/07/08 08:21:52] [ info]  flush time     | 5.000000 seconds
[2024/07/08 08:21:52] [ info]  grace          | 5 seconds
[2024/07/08 08:21:52] [ info]  daemon         | 0
[2024/07/08 08:21:52] [ info] ___________
[2024/07/08 08:21:52] [ info]  inputs:
[2024/07/08 08:21:52] [ info]      forward
[2024/07/08 08:21:52] [ info] ___________
[2024/07/08 08:21:52] [ info]  filters:
[2024/07/08 08:21:52] [ info]      grep.0
[2024/07/08 08:21:52] [ info]      modify.1
[2024/07/08 08:21:52] [ info] ___________
[2024/07/08 08:21:52] [ info]  outputs:
[2024/07/08 08:21:52] [ info]      http.0
[2024/07/08 08:21:52] [ info] ___________
[2024/07/08 08:21:52] [ info]  collectors:
[2024/07/08 08:21:52] [error] [lib] backend failed
[2024/07/08 08:21:52] [ info] [fluent bit] version=2.0.14, commit=bf20c16ea4, pid=1
[2024/07/08 08:21:52] [debug] [engine] coroutine stack size: 196608 bytes (192.0K)
[2024/07/08 08:21:52] [ info] [storage] ver=1.4.0, type=memory, sync=normal, checksum=off, max_chunks_up=128
[2024/07/08 08:21:52] [ info] [cmetrics] version=0.6.1
[2024/07/08 08:21:52] [ info] [ctraces ] version=0.3.1
[2024/07/08 08:21:52] [ info] [input:forward:forward.0] initializing
[2024/07/08 08:21:52] [ info] [input:forward:forward.0] storage_strategy='memory' (memory only)
[2024/07/08 08:21:52] [debug] [forward:forward.0] created event channels: read=21 write=22
[2024/07/08 08:21:52] [debug] [in_fw] Listen='0.0.0.0' TCP_Port=24224
[2024/07/08 08:21:52] [debug] [downstream] listening on 0.0.0.0:24224
[2024/07/08 08:21:52] [ info] [input:forward:forward.0] listening on 0.0.0.0:24224
[2024/07/08 08:21:52] [error] [filter:modify:modify.1] Invalid config for set
[2024/07/08 08:21:52] [error] Failed initialize filter modify.1
[2024/07/08 08:21:52] [error] [engine] filter initialization failed
[2024/07/08 08:21:52] [ info] [input] pausing forward.0`
ReWWeR commented 2 months ago

@Blochergroup, it’s not an ARM. I have an AMD EPYC on my VPS. So, it’s definitely not because of the chip architecture

Blochergroup commented 2 months ago

@ReWWeR very weird. Just tested it on a ryzen 9 7950X3D and it works.

GautierT commented 2 months ago

same problem with axiom.

Fluent Bit v2.0.14
* Copyright (C) 2015-2022 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

[2024/07/12 15:32:34] [ info] Configuration:
[2024/07/12 15:32:34] [ info]  flush time     | 5.000000 seconds
[2024/07/12 15:32:34] [ info]  grace          | 5 seconds
[2024/07/12 15:32:34] [ info]  daemon         | 0
[2024/07/12 15:32:34] [ info] ___________
[2024/07/12 15:32:34] [ info]  inputs:
[2024/07/12 15:32:34] [ info]      forward
[2024/07/12 15:32:34] [ info] ___________
[2024/07/12 15:32:34] [ info]  filters:
[2024/07/12 15:32:34] [ info]      grep.0
[2024/07/12 15:32:34] [ info]      modify.1
[2024/07/12 15:32:34] [ info] ___________
[2024/07/12 15:32:34] [ info]  outputs:
[2024/07/12 15:32:34] [ info]      http.0
[2024/07/12 15:32:34] [ info] ___________
[2024/07/12 15:32:34] [ info]  collectors:
[2024/07/12 15:32:34] [ info] [fluent bit] version=2.0.14, commit=bf20c16ea4, pid=1
[2024/07/12 15:32:34] [debug] [engine] coroutine stack size: 24576 bytes (24.0K)
[2024/07/12 15:32:34] [ info] [storage] ver=1.4.0, type=memory, sync=normal, checksum=off, max_chunks_up=128
[2024/07/12 15:32:34] [ info] [cmetrics] version=0.6.1
[2024/07/12 15:32:34] [ info] [ctraces ] version=0.3.1
[2024/07/12 15:32:34] [ info] [input:forward:forward.0] initializing
[2024/07/12 15:32:34] [ info] [input:forward:forward.0] storage_strategy='memory' (memory only)
[2024/07/12 15:32:34] [debug] [forward:forward.0] created event channels: read=21 write=22
[2024/07/12 15:32:34] [debug] [in_fw] Listen='0.0.0.0' TCP_Port=24224
[2024/07/12 15:32:34] [debug] [downstream] listening on 0.0.0.0:24224
[2024/07/12 15:32:34] [ info] [input:forward:forward.0] listening on 0.0.0.0:24224
[2024/07/12 15:32:34] [error] [filter:modify:modify.1] Invalid config for set
[2024/07/12 15:32:34] [error] Failed initialize filter modify.1
[2024/07/12 15:32:34] [error] [engine] filter initialization failed
[2024/07/12 15:32:34] [ info] [input] pausing forward.0
[2024/07/12 15:32:34] [error] [lib] backend failed

Thanks.