Skip to content
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

Failed to fetch Node 18 issue with passenger-ruby30:2.5.1-arm64 #378

Closed
chsi020 opened this issue Oct 31, 2023 · 4 comments
Closed

Failed to fetch Node 18 issue with passenger-ruby30:2.5.1-arm64 #378

chsi020 opened this issue Oct 31, 2023 · 4 comments
Milestone

Comments

@chsi020
Copy link

chsi020 commented Oct 31, 2023

Hi guys,

We are using phusion/passenger-ruby30:2.5.1-arm64 and we are getting the following error.

Failed to fetch https://deb.nodesource.com/node_18.x/pool/main/n/nodejs/nodejs_18.17.1-deb-1nodesource1_arm64.deb 404 Not Found [IP: 172.67.10.205 443]

We have downgraded to 2.5.0 and this one built successfully. So I think there is issue on the Node 18 URL.

@tkidoat
Copy link

tkidoat commented Nov 1, 2023

I think this commit will resolve problem, but not published for Docker Hub yet.
20d9b4a

@bren96
Copy link

bren96 commented Nov 1, 2023

Getting the same exact issue, but on phusion/passenger-ruby27:2.5.1-arm64. Tried downgrading to 2.5.0, but that did not resolve the issue.

@ajhodgson
Copy link
Contributor

ajhodgson commented Nov 1, 2023

Until there's a new release, you're going to need to do something like:

# install all current OS package updates
RUN apt-get update && \
    apt -y remove nodejs && \
    apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade && \
    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

And then if you actually need node, do:

# Install Node 18 and create yarn executables
RUN apt-get -y update && \
    apt-get -y install curl gnupg ca-certificates && \
    mkdir -p /etc/apt/keyrings && \
    curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --batch --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
    echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
    apt-get update && \
    apt-get -y install nodejs && \
    npm update npm -g || ( cat /root/.npm/_logs/*-debug.log && false ) && \
    corepack enable && \
    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

If you're building your own, build off master instead of needing to do this. Be aware it's based on Ubuntu 22.02 though, so test everything.

@mathieujobin
Copy link

mathieujobin commented Nov 15, 2023

I am going this for yarn and node

RUN curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor -o /usr/share/keyrings/yarnkey.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN rm /usr/share/keyrings/nodesource.gpg
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt update
RUN apt install -y --no-install-recommends --no-install-suggests nginx-extras rsyslog libmagickwand-dev imagemagick ghostscript nodejs yarn xfonts-75dpi xfonts-base wget mysql-client ca-certificates gnupg

I had to delete the nodesource.gpg file that's already in place, otherwise gpg would complain.

@CamJN CamJN added this to the 2.6.0 milestone Nov 20, 2023
@CamJN CamJN closed this as completed Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants