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

ECS tasks are getting stopped by the error Stopped by Jenkins Amazon ECS PlugIn and exit code- 143 #322

Open
ab-akopalli opened this issue Jul 10, 2023 · 1 comment
Labels

Comments

@ab-akopalli
Copy link

ab-akopalli commented Jul 10, 2023

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

We are using Linux Instance as part of the ECS.
Amazon Linux AMI release 2018.03

Reproduction steps

  1. This error is what we can see intermittently for our NodeJS application when we are running the npm install commands.

Expected Results

The job should pass successfully.

Actual Results

11:36:01  �[0m�[91mnpm�[0m�[91m �[0m�[91mtiming�[0m�[91m �[0m�[91mnpm�[0m�[91m Completed in 943769ms
11:36:01  �[0m�[91mnpm�[0m�[91m �[0m�[91mERR!�[0m�[91m cb() never called!
11:36:01  �[0m�[91m
11:36:01  �[0m�[91mnpm�[0m�[91m �[0m�[91mERR!�[0m�[91m This is an error with npm itself. Please report this error at:
11:36:01  �[0m�[91mnpm�[0m�[91m �[0m�[91mERR!�[0m�[91m     <https://npm.community/>
11:36:01  �[0m�[91m
11:36:01  �[0m�[91mnpm�[0m�[91m �[0m�[91mERR!�[0m�[91m A complete log of this run can be found in:
11:36:01  �[0m�[91mnpm�[0m�[91m �[0m�[91mERR!�[0m�[91m     /root/.npm/_logs/2023-07-10T06_05_52_533Z-debug.log
11:36:01  �[0mThe command '/bin/sh -c npm install --loglevel verbose' returned a non-zero code: 1
11:36:01  /home/jenkins/workspace/es_CandidatePortal_Build_develop/re/shared/mk/re.docker.mk:49: recipe for target 'docker-build' failed
11:36:01  make: *** [docker-build] Error 1

Anything else?

ECS tasks are getting stopped by the error Stopped by Jenkins Amazon ECS PlugIn and exit code- 143.
The job runs for 20 mins and exits with the aforementioned error.

The plugin is not mentioning the reason for the container getting exited. Where can we find the exact reason for it?

Can you please look into this?

@JanOgr
Copy link

JanOgr commented Oct 6, 2023

I have seen this issue multiple times myself.

Occurs when running nvm install, nothing happens for 10-15 min the sigterm is sent from the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants