Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide resiliency for MTA builds #1092

Closed
D074360 opened this issue Nov 10, 2023 · 5 comments
Closed

Provide resiliency for MTA builds #1092

D074360 opened this issue Nov 10, 2023 · 5 comments

Comments

@D074360
Copy link
Member

D074360 commented Nov 10, 2023

Hi,

The build fails with network timeout or corrupted archive error and this happens inconsistently.

There are multiple issues concerning the same in node js:

The workaround was to try out different node versions and even that did not work.

Could you please add retry mechanism when such error occur during MTA builds?

For reference I am adding the stack trace:

[2023-11-08T15:05:33.902Z] info mtaBuild - [INFO] InstallNodeMojo: Installing Node.js v18.18.1 [2023-11-08T15:05:33.902Z] info mtaBuild - [INFO] InstallNodeMojo: Downloading https://nodejs.org/dist/v18.18.1/node-v18.18.1-linux-x64.tar.gz to /home/mta/.m2/repository/com/sap/cds/cds-maven-plugin/cache/archive/18.18.1/archive-18.18.1-linux-x64.tar.gz [2023-11-08T15:05:33.902Z] info mtaBuild - [INFO] InstallNodeMojo: No proxy was configured, downloading directly. [2023-11-08T15:05:40.541Z] error mtaBuild - ................[ERROR] InstallNodeMojo: The archive /home/mta/.m2/repository/com/sap/cds/cds-maven-plugin/cache/archive/18.18.1/archive-18.18.1-linux-x64.tar.gz is corrupted and will be deleted. Please try the build again. [2023-11-08T15:05:40.541Z] info mtaBuild - [INFO] ------------------------------------------------------------------------ [2023-11-08T15:05:40.541Z] info mtaBuild - [INFO] BUILD FAILURE [2023-11-08T15:05:40.541Z] info mtaBuild - [INFO] ------------------------------------------------------------------------ [2023-11-08T15:05:40.541Z] info mtaBuild - [INFO] Total time: 23.359 s [2023-11-08T15:05:40.541Z] info mtaBuild - [INFO] Finished at: 2023-11-08T15:05:40Z [2023-11-08T15:05:40.541Z] info mtaBuild - [INFO] ------------------------------------------------------------------------ [2023-11-08T15:05:40.541Z] error mtaBuild - [ERROR] Failed to execute goal com.sap.cds:cds-maven-plugin:1.27.3:install-node (cds.install-node) on project event-mesh-service-wrapper: Couldn't install Node: Got error code 522 from the server. -> [Help 1]

@timdachtera
Copy link

Hello team. May I please have an update on this issue? I must report back to my leadership on the status, and it's been open nearly 2 months with no further information. Thank You!

@timdachtera
Copy link

Hello -Any update? The issue is still persisting rendering our automated pipeline, still requiring manual intervention -

https://nodejs.org/dist/v18.18.1/node-v18.18.1-linux-x64.tar.gz to /home/mta/.m2/repository/com/sap/cds/cds-maven-plugin/cache/archive/18.18.1/archive-18.18.1-linux-x64.tar.gz
08:38:33  info  mtaBuild - [INFO] InstallNodeMojo: No proxy was configured, downloading directly.
08:41:25  error mtaBuild - ....................................................................................................................................................................[ERROR] InstallNodeMojo: The archive /home/mta/.m2/repository/com/sap/cds/cds-maven-plugin/cache/archive/18.18.1/archive-18.18.1-linux-x64.tar.gz is corrupted and will be deleted. Please try the build again.
08:41:25  info  mtaBuild - [INFO] ------------------------------------------------------------------------
08:41:25  info  mtaBuild - [INFO] BUILD FAILURE
08:41:25  info  mtaBuild - [INFO] ------------------------------------------------------------

@timdachtera
Copy link

Hello team. May I please have an update on this issue? I must report back to my leadership on the status, and it's been open nearly 3 months with no further information. Thank You!

@yutaoj
Copy link
Collaborator

yutaoj commented Apr 17, 2024

MTA Build Tool does no provide the retry function . and there are some ways to implement retry with may maven plugins and other tools .

@yutaoj yutaoj closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants