No native lib for SQLite found for OS : Linux - Pterodactyl / Docker

In resume, I'm using Pterodactyl to self host my BetterMinecraft 3 Fabric server. When using the base Java 21 Image (provided by Pterodactyl Team) it does'nt work, and crash with this message (will be sent later on) So i've tried to make my own docker image based on theirs and install libsqllite3-dev + sqllite3 package. However the same error occurs. Any idea?
No description
Solution:
You'll probably have more luck googling the issue
Jump to solution
6 Replies
Shado
ShadoOP2mo ago
FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:21-jdk

RUN apt-get update -y \
&& apt-get install -y lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 libsqlite3-dev \
&& useradd -d /home/container -m container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]
FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:21-jdk

RUN apt-get update -y \
&& apt-get install -y lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 libsqlite3-dev \
&& useradd -d /home/container -m container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]
My Image with the libs It might be more related to java than Distan Horizon but if anyone as an idea i'm welcome to it !
Solution
Puhpine
Puhpine2mo ago
You'll probably have more luck googling the issue
Puhpine
Puhpine2mo ago
GitHub
Cannot connect to SqLite due to "No native library found for os.nam...
System information: Windows 10 Enterprise Version 1909 DBeaver Community version 21.2.0 Additional extensions sqlite-jdbc-3.36.0.3.jar Connection specification: Sqlite 3.36.0 (newest) sqlite-jdbc-3...
Shado
ShadoOP2mo ago
Might be related, will try the fix and get back to you
Shado
ShadoOP2mo ago
Seems to be that, on Pterodactyl the User the container is run as does not seem to have access to /tmp/ Creating a tmp inside the mc server and pointing it with JAVA_ARGS="-Xmx8G -Xms4G -Dorg.sqlite.tmpdir=/home/container/tmp" /home/container/tmp Fix the issue

Did you find this page helpful?