-
Notifications
You must be signed in to change notification settings - Fork 115
Error installing node.js: The Node.js binary could not be verified. #214
Comments
Any update on this? I'm seeing the same error with the latest Google Cloud SDK (309.0.0) |
seems the issue with node 14.10.0. you can try node version 14.9.0 then it works! |
Hello @plegner in our case, it was the same as for @aiimtechdev. We had broken deployment to App Engine because it installed Node 14.10.0 as we had I fixed deploy by changing the engine to a fixed version:
If you are using 12.x - try some of the previous version that worked. Obviously it does not solve the overall issue with the latest release but at least get things working. Hope it will help! |
Thanks, @prowwid! We were using |
This error also occurs with the latest release of Node 10 |
In addition to my signing key, whoever maintains this repository may also want to add the keys for @ruyadorno (nodejs/node#34628) and @danielleadams (nodejs/node#35545) who have also been recently onboarded as releasers and may sign future releases: https://github.com/nodejs/node/blob/master/README.md#release-keys |
Taking a look at this. |
Okay, fixed in staging: Starting the release process.. |
Fixed. |
Occurring in GAE flex again with
Edit: setting the package engine version to the last successfully deployed version ( |
I confirm: Node |
* There is a bug with the latest LTS `14.17.0` during cloud-build for GAE Flex, so fallback to the latest, working version of NodeJS. * See here: GoogleCloudPlatform/nodejs-docker#214
* There is a bug with the latest LTS `14.17.0` during cloud-build for GAE Flex, so fallback to the latest, working version of NodeJS. * See here: GoogleCloudPlatform/nodejs-docker#214
I've the same problem using Google App Engine Flex & Standard: if I downgrade to
So this should be updated in both environments. |
Seems even
|
@pete-beresford-bzy, Hmm...I extended my key back in March but it seems it hasn't properly propagated/synced with the servers - I'll try resyncing/resubmitting. |
Why can't AppEngine just pick the last supported version of Node if a range like Even if we manually specify a supported version like |
Are there still issues with 14.7.0? Like @BethGriggs my key was synced a few months ago (Back in January, it looks like nodejs/node#36793), but I've just recently resubmitted/resynched it again to confirm. |
Same issue with version 16.11.0 |
Same as what @brunogabuzomeu said, we tempoarily solved it by using |
FYI 14.18.1 was released 12-Oct-2021 and is having this issue, 14.18.0 can be set manually to deploy |
The issue is possibly that the KEYS file in this repository has not been updated to contain @danielleadams's new key (updated in January, nodejs/node#36793). The Node.js project has recently started to maintain https://github.com/nodejs/release-keys/tree/main/keys as a source of truth for our release keys, which might be a useful resource for keeping this repository in sync with Node.js key updates. |
Same issue here, GAE Flex with Could KEY file updates be automated to prevent such issue to periodically happen ? |
@vvision see @BethGriggs comment - yes it could be automated but I just tried forking + running the tests (they are very broken) and this repo appears unmaintained 👎 @donmccasland any help here please? |
Setting
|
I had same issue for node12.22.7 today. I have specified according to the nodejs releases, 12.22.7 has been released at 2021/10/12, so I guess that's where it got broken. |
Any releases signed by @danielleadams's key will not verify until the keys are updated in this repository, which include the latest security releases released on 2021-10-12 (v12.22.7, v14.18.1, and v16.11.1). |
I checked the key list, it seems Danielle's key is in: |
@jinglundong here is my config
error:
|
I couldn't reproduce the error with
When I deploy, the version picked were: |
@jinglundong I have almost the same configuration:
|
@ishak-lm I think this is a different issue. I'm going to close this issue for now. If anyone's still seeing |
Just to note, this is going to have to be re-opened the next time a new GPG key is added, the problem wasn't solved. |
That is correct. I'm listing a few ideas below following my preferred order, but I haven't had a chance to figure out the details. Please advice if anyone has better solutions.
|
A heads-up, nodejs 18.0.0 is out today. Our internal test seems to be telling me that we don't support it automatically. A mitigation could be limit the nodejs version to < 18.0.0. I opened #232 for this issue. |
Experiencing this error today with Node 18.5.0. |
Sorry to hear that. We plan to support Node 18 before year end 2022. The solution was to modernize how we support and build Flex node applications. Our goal is to accelerate the new version support in the future. We will keep this issue updated, especially when Node 18 is ready for private/public preview. |
Is there an explicit list of which specific minor versions of Node aren't going to trigger this problem? |
I experienced this issue today. I couldn't see which version the system was attempting to install anywhere in the logs. In the failing case, I saw:
Looking at the signature date of Sep 23rd and our restriction to Node 14.x, we can infer that it's For reference, in a successful installation (package.json engine version restricted to 14.19), the immediate next step shows the full installed version number:
|
This started failing again today for node 16.x. Observed that node published a release circa 11AM today.
What can we do to be insulated from this error without having to pin versions in our application itself? |
tl;dr: I can take a look at the new key and probably update it. To mitigate the problem, please pin it to the previous patch version of Node.js 16.17.x or Node.js 16.17.1. https://nodejs.org/en/download/releases/ I haven't looked into the exact problem, but I'd suspect that it's broken because there's a new pgp key in Node.js 16.18. This means our builder (or nodejs itself) is not entirely backward compatible between minor version upgrades. This is a known issue where we don't really have a short term automation on our side. The best option in to pin to a patch version of nodejs version. Because new pgp keys are getting added along with new patch version of nodejs. We don't have a way to detect that, or block anyone from picking it up immediately when they have something like 16.x. We are still working on a project to improve our build system. Once that's complete, we should be able to control this behavior - we will qualify the new minor or patch version before the builder using it. |
Thanks for sharing. We've used that pinned solution in the past and have, indeed, already deployed such a fix today. I recognize that this isn't your problem per se, but I do want to explicitly point out the fact that a recommendation to fix a deployment issue in one Google Infrastructure component actually introduces a new issue in a separate Google infrastructure component. Google Cloud Functions deployments will raise an error if a The result is that, without additional work, app engine deploys succeed and function deployments fail. This is in a monorepo where splitting the systems is impractical, even if possible. To support both, our build systems basically do a In any case, thansk for hearing me out. We really appreciate the work y'all do to keep GCP stable and performant. |
Hi folks - We hit this issue as well with our NodeJS app engine deployment. We were running 16.x. Pinning did end up working at a pin of 16.17.x. For future devs that hit this issue, make sure you pin to the precise version - Here's a trace:
|
We updated the key at #254 and #256. I verified this in prod with a 16.x app that got resolved to 16.18.1. Please let us know if you have any other questions. To be clear, this doesn't solve the problem of 18.x. Node.js 18 support requires a bigger effort. We have it planned in the first half of 2023. |
@jinglundong is there any reason why it would not even try and run an install of the node version specifed in the package.json? We have our engine specified and have tried pinning to 16.17.1 but it doesn't even attempt an install. Please see the output below:
|
@m-s-morgan Hi Matt, if my following analysis is moving towards the right direction, could you file a different issue? I'm seeing the error at step #2, which looks like a version conflict between yarn v1.22.19 and nodejs 16.17.1.
A few actionable ideas:
|
@jinglundong I can start the app locally just fine. The version of yarn is incompatible with this version of node. In our CI environment our tests run just fine using node 16.17.1 and yarn 1.22.19.
The related section of our package.json is below:
We've also tried locking the version of yarn to an earlier version and to 1.22.19.
12.19.0 is the version that Google Cloud is using. I have no idea why it's using 12.19.0 and not 16.17.1 like I've specified. That is why I'm asking what I could be doing wrong to not even attempt to install what we have listed in our packge.json. Generally I'd expect to see a line like:
But that never appears. We are not using a cloudbuild.yaml nor using our own Dockerfile so this is the default App Engine build |
@m-s-morgan I wasn't able to reproduce with a basic hello world. However, the most likely suspect is
in here is being called somehow before the |
@m-s-morgan I think #233 (comment) is the tracking bug for the issue you are experiencing. I shared more details from my investigation with Kenneth. |
@jinglundong @kennethye1 I'm assuming the
is causing the issue. The first thing that command does is check the package.json. The node binary installed by the runtime is 12.19.0 and the package.json has the node version pinned to 16.17.1. This of course is going to cause a failure. I believe the docker file needs to install the specified config node version before running the above code as it does a few steps later. |
Let's track this issue at #233 if you don't mind. |
you can change engine's sub node version to fix it. |
How is this still an issue, trying to use node v16 and getting this, trying to use node LTS v18 and getting glib errors GoogleCloudPlatform/buildpacks#198 almost impossible to use app engine for anything critical these days |
Hi @REPTILEHAUS, I've updated the KEYS. For nodejs 18 and later, please follow https://cloud.google.com/appengine/docs/flexible/nodejs/runtime#newversions. |
When I run the build I receive the following error:
I have the following configuration:
When I do what is suggested it installs the node:
but clearly there is a problem somewhere.
The text was updated successfully, but these errors were encountered: