Page MenuHomePhabricator

invalid json response body at https://registry.npmjs.org/vue reason: Invalid response body while trying to fetch https://registry.npmjs.org/vue: ENOENT: no such file or directory
Closed, ResolvedPublic

Description

I'm seeing this error on repeated attempts to +2 a patch for ReportIncident:

21:34:27 npm ERR! invalid json response body at https://registry.npmjs.org/vue reason: Invalid response body while trying to fetch https://registry.npmjs.org/vue: ENOENT: no such file or directory, stat '/cache/_cacache/content-v2/sha512/10/7b/e370427ffe4e193775a1c2853769e5522a871ec504b60c8481eba2f574ce60c68cf1d8bdfebb25aefcdcd3946a1ff387fba3fd5158a08988a9bb3293eb02'

See https://integration.wikimedia.org/ci/job/mwgate-node16-docker/82126/console

Event Timeline

It looks like we might be rate limited at the registry's side or something? The URL, https://registry.npmjs.org/vue, works on my end with no issues. Tagging CI infra and releng as such.

Mentioned in SAL (#wikimedia-releng) [2023-10-30T11:18:39Z] <hashar> integration-castor05: clearing corrupted npm cache: sudo rm -fR /srv/castor/castor-mw-ext-and-skins/master/mwgate-node16-docker # T349986

hashar claimed this task.
hashar added a project: Castor.

That is the CI central cache (Castor) being corrupted, most probably due to a race condition of a build fetching a cache that is being updated by another build :/ I have cleaned out that cache.

Thanks for fixing this. The problem is no longer present on gate-and-submit for the ReportIncident extension.

I don't know if this is the same root issue:

21:04:33 npm ERR! code E500
21:04:33 npm ERR! 500 Internal Server Error - GET https://registry.npmjs.org/@vue/shared/-/shared-3.2.37.tgz - KV GET failed: 401 Unauthorized

https://integration.wikimedia.org/ci/job/mwgate-node16-docker/82496/console

Mentioned in SAL (#wikimedia-releng) [2023-10-30T20:29:22Z] <James_F> Ran sudo rm -fR /srv/castor/castor-mw-ext-and-skins/master/mwgate-node16-docker/ on integration-castor05 too for T349986

I just ran jforrester@integration-castor05:~$ sudo rm -fR /srv/castor/castor-mw-ext-and-skins/master/mwext-node16-rundoc-docker to clear this out for the mwext-node16-rundoc-docker job; looks like upstream might have flaked and broken everyone briefly? I've now run it for mwgate…-node16- too, which might help?