Score:0

Cloud build is failing to connect to npm and install packages. Network error

in flag
Step #0: [2/4] Fetching packages...    
Step #0: info There appears to be trouble with your network connection. Retrying...

The retrying step happens X times until I cancel. It worked once after 457s, but failed because this also happens inside docker containers, and there it is a timeout.

Anyone else experiencing this?

Think it is a network bug from Google. Started experiencing this today.

Does not happen locally.

co flag
If it is a bug: maybe create a support-case at Google?
Score:1
cn flag
“But it would be great with an issue tracker of some sorts? 
 Or a status page if anyone knows about it?” 
    

Yes, visit here to check status information on the services that are part of Google Cloud.
For third party softwares like NPM, you can check their respective status pages, for example - this for NPM. Subsequently, you can also check build logs, the next time you face an anomaly with Cloud Build..

in flag
Thanks alot for these status pages! I did watch the build logs and they were just saying network error or slowness. But I did not experience it locally, that was the funny business and why I wondered if it was something on Google side. Or ar there any other build logs you are refering to?
Anant Swaraj avatar
cn flag
That’s the same Cloud Build I was referring to, vonGohren, good probe work.
Score:1
tz flag

npm registry was having a connection problem at 10.28 UTC.

in flag
Thanks for sharing!
Score:0
in flag

It does seem to be a GCP issue and nothing on my side. It started working again now. But it would be great with an issue tracker of somesorts? Or a status page if anyone know about it?

Score:0
it flag

I have experienced the issue. All services were up. I found the solution and I suspect the google cloud platform network (Idk the exact service). Just increase the network timeout. Also increasing the machine type might help.

yarn install --prod --network-timeout 1000000

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.