Buildkite agent hanging when run npm install

I’m using docker in a step of buldkite scipt
dockerfile of docker image

FROM node:16.18.1

RUN apt-get update && apt-get install zip unzip -y

# aws
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip
RUN ./aws/install && aws --version

# google zx
RUN yarn global add zx

CMD [ "node" ]

Then I publish this image and use it in buildkite scipt

steps:
  # unit testing (all branches)
  - label: ":hammer: Build app and run tests"
    command:
      - "npm install"
    plugins:
      - docker#v3.3.0:
          image: "predictivehireadmin/node-awscli:16.18.1"
          environment:
            - "NODE_OPTIONS=--max-old-space-size=4096"
          volumes:
            - "$HOME/.aws:/root/.aws:ro"
    agents:
      queue: "new-infra-medium-instance"

  - wait

The buildkite agent hanging there forever

Note:

  • It was working fine with node 14.17.0
  • The docker image with node 16.18.1 work fine in other project

Anyone got same issue and have any solution?

Hello, @Tony! Welcome to the community!
Let me look into this & I’ll get back to you.

Cheers!

Hello again, @Tony!
It looks like we’ll need more info to troubleshoot the issue. Can you please send the agent logs and Docker logs to support@buildkite.com?

Best!

Thanks @karen.sawrey
I have sent an email to support team.

1 Like