ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complet
The logs are spammed with the following for both of my failing services:
72.52 WARN GET https://registry.npmjs.org/@apollo/utils.fetcher/-/utils.fetcher-2.0.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/@apollo/utils.keyvaluecache/-/utils.keyvaluecache-2.1.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/@apollo/utils.logger/-/utils.logger-2.0.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/@apollo/utils.createhash/-/utils.createhash-2.0.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/@apollo/utils.isnodelike/-/utils.isnodelike-2.0.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/@apollo/utils.dropunuseddefinitions/-/utils.dropunuseddefinitions-2.0.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/@apollo/utils.fetcher/-/utils.fetcher-2.0.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/@apollo/utils.keyvaluecache/-/utils.keyvaluecache-2.1.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/@apollo/utils.logger/-/utils.logger-2.0.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/@apollo/utils.createhash/-/utils.createhash-2.0.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/@apollo/utils.isnodelike/-/utils.isnodelike-2.0.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
72.52 WARN GET https://registry.npmjs.org/@apollo/utils.dropunuseddefinitions/-/utils.dropunuseddefinitions-2.0.1.tgz error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
It worked fine before and I can't recall anything that I've changed that could have affected this.
Well good and bad news. Same issue in Heroku with same Dockerfile. So it should be something in the application. 🙂
At least I know where to continue dig now.
I am not sure what to test next, probably I have to try to run the container in a separate cloud service, if its the same there then we at least know its not something related to railway.
Hey @Brody, I tried first new node fetch with node18 and it was the same issue.
I now converted it to a Docker service with node:18-alpine, but still the same issue.