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

Unable to install node image due to gpg check failed #4454

Open
2 tasks done
psruthi30 opened this issue Jul 25, 2024 · 3 comments
Open
2 tasks done

Unable to install node image due to gpg check failed #4454

psruthi30 opened this issue Jul 25, 2024 · 3 comments
Labels

Comments

@psruthi30
Copy link

Node.js Version

v16.20.2

NPM Version

8.19.4

Operating System

Linux buildkitsandbox 6.6.26-linuxkit

Subsystem

Other

Description

Docker file:

FROM docker.artifactory.aws.athenahealth.com/athenahealth-base-oraclelinux.....

ARG NODESOURCE_URL=https://rpm.nodesource.com/setup_16.x

COPY certs.pem ${ATHENA_CAFILE_PATH}
ENV NODE_EXTRA_CA_CERTS=${ATHENA_CAFILE_PATH}
ENV NODE_VERSION $NODE_VERSION


RUN set -ex \ 
  && curl --output setup.sh -fsSL "${NODESOURCE_URL}" \
  && bash ./setup.sh \
  && yum install -y nodejs \
  && rm ./setup.sh \
  && node --version \
  && npm --version \
  && groupadd -g 993 jenkins_grp \
  && adduser -u 996 -g 993 jenkins \
  && yum install -y gcc-c++ make tini-0.19.0 \
  && yum clean all \
  && npm i -g yarn \
  && npm i -g pnpm \
  && yum clean packages


ENTRYPOINT ["tini", "--"]

CMD [ "node" ]

Error Message:

From : https://rpm.nodesource.com/gpgkey/NODESOURCE-GPG-SIGNING-KEY-EL
warning: Signature not supported. Hash algorithm SHA1 not available.
Key import failed (code 2). Failing package is: nodejs-2:16.20.2-1nodesource.x86_64
GPG Keys are configured as: https://rpm.nodesource.com/gpgkey/NODESOURCE-GPG-SIGNING-KEY-EL
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: GPG check FAILED

Build is working fine when I provide --nogpgcheck. But Could someone help with resolving this gpg check ?

Minimal Reproduction

No response

Output

No response

Before You Submit

  • I have looked for issues that already exist before submitting this
  • My issue follows the guidelines in the README file, and follows the 'How to ask a good question' guide at https://stackoverflow.com/help/how-to-ask
@preveen-stack
Copy link
Contributor

Can you share your ~/.gnupg/gpg.conf

@psruthi30
Copy link
Author

psruthi30 commented Jul 29, 2024

@preveen-stack Thanks for the reply.

image gpg.conf -> file is missing but GPG check is happening in "yum install -y nodejs"

@RedYetiDev
Copy link
Member

IIRC @RafaelGSS had some key discrepancies with this version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants