Closed EmmanDizon closed 9 months ago
My current dockerfile:
# Use an official Node.js 16 runtime as the base image
FROM ubuntu:20.04
# Install dependencies
RUN apt-get update && \
apt-get install -y wget gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \
libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 \
libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 \
libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 \
lsb-release xdg-utils
# Set the working directory in the container
WORKDIR /app
# Copy package.json and package-lock.json to the container
COPY package*.json ./
# Install the app dependencies
RUN npm install
# Copy the rest of the application code to the container
COPY ./src ./src
# Set the non-root user for running the application
USER node
# Expose the port on which your application runs
EXPOSE 3000
# Specify the command to run your application
CMD [ "node", "src/index.js" ]
try a newer version of muhammara please
@julianhille, I'm using "muhammara": "^4.0.0",
Now you said i tried a newer version, i uninstalled it and then run npm i muhammara again to get the latest version now i get the same version of 4.0.0
Please provide uname -ar
and ldd --version
output
i dont get what you literally mean, can you type exactly what you mean? you said i need to install new version of muhamara , i just did but i get same result of 4.0
npm i muhamara
@julianhille please help
btw, im deploying it on AWS, deploy image on ECR and run by a kubernetes EKS
Facing the same issue, deploying on Google App Engine
help us please
Hi @EmmanDizon with NodeJS v16
, use Muhammara v3.8.0
that's what worked for me. Muhammara v4.0.0
seems to be working with NodeJS v18
and above.
Please provide
uname -ar
andldd --version
output
You should type that on the machine running muhammara. It seems like the ec2 / lambda tells its ubuntu 20.04 but it's not at least not from glibc perspective.
Long story: Linux comes with a specific glibc version. This version can not be up or downgraded. Newer versions (ex. glibc 2.31) are backwards compatible to older ones (ex. 2.29) That said: ubuntu 18.04 comes normally with an glibc 2.27 and so is not compatible to 2.29. Ubuntu 20.04 comes with 2.31 and so should be backwards compatible to 2.29. Github as deprecated ubuntu machines 18.04 as action runner in april this year and that stopped me from releasing any new versions. At least pre-builts for 18.04.
That is why i introduced 4.0 as this is a breaking change for all older linux versions (cause it compiles with newer glibc [2.29]). From 4.0 on the pre built binaries are compiling on an ubuntu 20.04 runner.
So you have three options here:
Btw. Muhammara v4 works from "node >=15" as long as you have the correct or newer glibc version.
There was no other option for me then to upgrade as i have no machines which could be used as runner to compile it.
Does that clarify a bit?
In case it helps anyone else, had a similar issue to the OP when installing 4.0 on amazonlinux 2. AL2 only has glibc2.26 so hits the same 2.29 error. AmazonLinux 2023 seems to be fine ( they use 2.34)
Thanks for reporting.
There is little, from muhammara perspective, i can do. So if anything changes, feel free to reopen.
encountered an error when running on docker: