Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipelines getting stuck on npm i

Adam Cooke March 14, 2024

Normally our pipeline takes about 15 minutes to run, currently it seems to be getting stuck at the early stages with npm i.

No recent changes to our package.json or pipeline which should affect this.

Installs and builds fine in vscode.

 

Its seems to be gettings stuck with a large package (351mb) (https://www.npmjs.com/package/ffprobe-static). Normally this is not a problem.

4 answers

1 accepted

2 votes
Answer accepted
Charlie Davies March 14, 2024

We are seeing the same issues here building inside the node:18-alpine docker image. Codebase built fine yesterday now it is timing out after 2 hours on the npm i step.

Jakob Wardega March 14, 2024

same for us; ours timeout after 2 hrs

Like Charlie Davies likes this
Adam Cooke
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 14, 2024

Reply from support:

 

 

Bruno M commented:

Hi there,

Thanks for your report. Our team is aware that yarn/npm install commands are being stuck in Bitbucket Pipelines.

Our engineering team has been notified and is currently looking into the route cause and mitigation efforts.

We appreciate your patience while our team is working to address this issue.

We will be providing regular updates on this ticket.

Best regards,
Bruno M.
Cloud Engineer | Bitbucket Cloud Support

Like Charlie Davies likes this
Charlie Davies March 14, 2024

@Adam Cooke thank you for the update.

Adam Cooke March 15, 2024

Syahrul commented:

Hello Everyone,

Thanks for reporting the issue to us.

We investigated the issue on our end with help from the Dev team. After a couple of tests, we replicated the issue locally, indicating that the issue was unrelated to the pipeline. Through our testing, we could pinpoint the problem to a single dependency - puppeteer version 21 and lower. In fact, installations solely dependent on puppeteer versions below 22 were observed to freeze during the process.

We have reported this bug to NPM, which you can view and monitor at: https://github.com/npm/cli/issues/7289

The solution is to upgrade your puppeteer version to v22 or greater, as we discovered that the issue only affects versions of puppeteer < v22.

We hope this information is helpful to you. If you have any further questions, please don't hesitate to ask.

-
Mohammad Syahrul
Cloud Engineer | Bitbucket Cloud Support

Like # people like this
Adam Cooke March 15, 2024

Not sure why this has suddenly stopped working, something in the pipeline enviroment must have changed.

Like Charlie Davies likes this
Charlie Davies March 15, 2024

Can confirm that this morning updated puppeteer to latest version and this has fixed the issue - our pipelines are running as they normally would.

Thank you for the swift diagnosis and mitigation of this issue.

Jakob Wardega March 15, 2024

We were able to fix as well by upgrading a puppeteer version from 20 to 22. 

It's interesting to note that we have another package on puppeteer version 2 that was able to remain unchanged

Thanks to everyone in this thread for raising awareness!

Like Joseph Edge likes this
John Landgrave
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 12, 2024

This is, apparently, still an issue. I am very puzzled though because everything was building fine until we merged in some code containing a bunch of new stuff (type-graphql, prisma, apollo, etc.) which is leading me to believe that there is some sort of conflict happening in npm that for some reason only happens in the pipeline environment.

Either way, updating puppeteer seems to have resolved the issue -- even though I never was able to reproduce it locally... 

1 vote
Jakob Wardega March 14, 2024

We are having the same issue in some of our pipes, starting today.

Does yours use https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1577.0.tgz ?

Adam Cooke March 14, 2024

No, I've spent all day trying to get it to build. Starting to think its a bitbucket issue

Like # people like this
Jakob Wardega March 14, 2024

We have another group in our organization that is facing the same issue. So that makes at least 3 of us. Hopefully they put something out soon. 

1 vote
Adam Cooke March 14, 2024

I have removed the package and reverted all changes since the last successfull build and the pipeline still gets stuck

0 votes
Lee Alexis Bermejo April 14, 2024

We don't have puppeteer. 
we run a docker build from a Dockerfile which has a multistage the first of which has a yarn install which after logging Completed, gets stuck on th subsequent Fetch Step log

 

This only happens inside the dockerized (docker build .)  build step.
a separate bitbucket step running the exact same yarn install completes with no problem

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events