Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

AMS cloud manager build failed after updating node and npm versions

Avatar

Level 5

Hi,

We have updated node and npm versions in our AEM code repository from v8.9.4 & 5.6.0 to v18.18.0 & 10.1.0 along with other front-end plug ins.

After that develop Cloud Manager pipeline failed with below error(attached build log for reference) 15:43:14,013 [main] [INFO] Running 'npm install' in /build_root/build/companyname/aem-ui 15:43:14,394 [Thread-14] [ERROR] /build_root/build/companyname/aem-ui/target/node/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /build_root/build/companyname/aem-ui/target/node/node)

Does this require removal/uninstall of old node/npm and manually install new version for the build to be successful.

https://stackoverflow.com/questions/72921215/getting-glibc-2-28-not-found

 

We are on Adobe Managed Services, using Cloud Manager pipelines for deployment into Dev, Stage and Production environments.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@srikanthpogula 

Though its little uncertain, however it seem the new node version is not supported by the underlying OS. Probably you may need to downgrade the node version to 16 or so.

Here is a reference of a similar scenario: https://help.heroku.com/R7DTSTD0/fix-node-js-error-version-glibc_2-28-not-found

Can you give it a try with a downgraded version?

View solution in original post

12 Replies

Avatar

Community Advisor

Hello @srikanthpogula,

Is that upgrade working fine locally? Can you build it successfully locally?

On cloud manager you can't and don't need to remove node explicitly, its a stateless build on CM based on whatever you define in the pom.xml.  

Please share the error snippet for better visibility.

 

   

Avatar

Level 5

Hi @A_H_M_Imrul ,

Local maven build is successful.

15:43:14,394 [Thread-14] [ERROR] /build_root/build/{{mycompany}}/aem-ui/target/node/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /build_root/build/{{mycompany}}/aem-ui/target/node/node)

Avatar

Level 5

I had to import node certificate onto keystore to resolve PKIX Certificate exception but other than that no other change for local maven build to be successful.

Avatar

Correct answer by
Community Advisor

@srikanthpogula 

Though its little uncertain, however it seem the new node version is not supported by the underlying OS. Probably you may need to downgrade the node version to 16 or so.

Here is a reference of a similar scenario: https://help.heroku.com/R7DTSTD0/fix-node-js-error-version-glibc_2-28-not-found

Can you give it a try with a downgraded version?

Avatar

Level 5

Hi @A_H_M_Imrul ,

We have raised an AMS support case, if we do not find a resolution will try to downgrade or try @aanchal-sikka suggestion and let this group know the outcome.

Avatar

Level 1

As of November 2023, I don't think that should be the correct answer to be honest.

Node 20 is now the official LTS version and Node 16 is end of life (not receiving security updates)

https://nodejs.org/en/about/previous-releases#release-schedule

Adobe need to do something about that.

Avatar

Community Advisor

Hello @srikanthpogula 

 

By default the front-end pipeline uses Node 14, but 12 and 16 are also available.

You can use the CM_CUSTOM_VAR_NODE_VERSION environment variable to set the desired version.

 

Command:

 

aio cloudmanager:set-pipeline-variables <pipeline id> --variable NODE_VERSION 16

 

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/develo...

 

Documentation may/may not be up-to-date. Please try with 18 version as well


Aanchal Sikka

Avatar

Level 5

Hi @aanchal-sikka 

Where do we run the above command?

In Cloud Manager -> Edit Pipeline, I am unable to find an option to provide custom node version.

Avatar

Community Advisor

Hello @srikanthpogula 

 

Please refer to https://github.com/adobe/aio-cli-plugin-cloudmanager

It will help you set up the command line interface. You would also need to set up credentials locally.

The document has the details

 

 


Aanchal Sikka

Avatar

Administrator

@srikanthpogula  Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni

Avatar

Level 5

Hi @kautuk_sahni 

Did not get a response for Adobe support case yet, as a back up we are planning to downgrade node version to 16 and check but we were waiting for response from Adobe support.

I will update this group once the issue is resolved.

Avatar

Level 5

We downgraded node version to 16.x to resolve this issue. Could not work on @aanchal-sikka 's suggestion because of delivery time constraints.

Thanks everyone for the suggestions.