-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Raspberry -> jemalloc - Unsupported system page size #9730
Comments
The container image is compiled for a particular kernel configuration - your kernel configuration does not match so you need to compile a container image that matches. It's the same as the Oracle Linux ARM64 page size mismatch with the rest of other RHEL-compatible kernels. |
Thank you for your answer. Building a compatible image is what I'm trying to achieve.
|
Do the Raspbian packages (not containers) work? |
I only found raspbian packages for 10 and 11 : https://packages.fluentbit.io/raspbian/ |
OK, it may be better to update packages for the new Raspbian version then. It just needs someone to contribute the relevant build config here: https://github.com/fluent/fluent-bit/blob/master/packaging/distros/raspbian/Dockerfile I think that would be a better solution for most folks than making another custom container image just for it. |
Thanks. I believe I understand the problem a bit better.
What I will try is make the build on a debian image directly on my pi5. |
Sure, you can use any base image ultimately - this was the requirement for raspbian previously but if your target is different then it will need a different base. |
Hi, I have the same problem on raspberry 5 on docker. |
Hi, I'll wait to test the new packaging. I'm not convinced changing the base image to raspian will make it works on an arm64 architecture. The debian bookworm with arm64 image should also work on a raspberry with docker. I believe the problem is not coming from a difference in OS, but of architecture during the build. In the meantime, I have created a dockerfile from scratch, so the building is done directly on my raspberry. It's very quick and dirty, but fluentbit starts without the error message anymore: FROM debian:bookworm-slim AS fluent-bit-build
ENV DEBIAN_FRONTEND=noninteractive
ARG FLUENTBIT_VERSION=3.2.2
RUN apt-get update \
&& apt-get install -y curl ca-certificates build-essential \
cmake make bash sudo wget dh-make \
libsystemd-dev zlib1g-dev flex bison \
libssl3 libssl-dev libpq-dev postgresql-server-dev-all \
libsasl2-2 libsasl2-dev libyaml-dev pkg-config \
&& apt-get install -y --reinstall lsb-base lsb-release
WORKDIR /tmp
ADD https://github.com/fluent/fluent-bit/archive/refs/tags/v${FLUENTBIT_VERSION}.tar.gz .
RUN tar -xf v${FLUENTBIT_VERSION}.tar.gz \
&& rm v${FLUENTBIT_VERSION}.tar.gz \
&& mv fluent-bit-${FLUENTBIT_VERSION} fluent-bit
WORKDIR /tmp/fluent-bit/build
RUN cmake .. && make
# final image
FROM debian:bookworm-slim AS fluent-bit-pi5
RUN apt-get update \
&& apt-get install -y \
zlib1g libssl3 libatomic1 \
libgcrypt20 libyaml-0-2 \
libsasl2-2 libpq5 libgcrypt20
WORKDIR /app
COPY --from=fluent-bit-build /tmp/fluent-bit/build/bin .
VOLUME ["/etc/fluent-bit/"]
ENTRYPOINT ["/app/fluent-bit"]
#CMD ["-i", "cpu", "-o", "stdout", "-f" ,"1"]
CMD ["-c", "/etc/fluent-bit/fluent-bit.conf"] |
Bug Report
Describe the bug
I'm trying to start fluent-bit on a raspberry pi5 on docker.
I tried multiple configurations and I'm always ending with the error message below:
I found the same closed issue on fluentd github, but it didn't help: jemalloc: Unsupported system page size #4328
My best hope is to find a way to disable the jemalloc library as my fluentd-bit instance will no be overloaded.
To Reproduce
I tried as per the documentation:
I also tried to build my own image with the same result. I play with the jemalloc library and LD_PRELOAD variable env without more success. I'm a bit lost now:
Your Environment
The text was updated successfully, but these errors were encountered: