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

Golang stop-outyet command throws out status code 143 #17005

Closed
6 of 22 tasks
ScrewTSW opened this issue May 25, 2020 · 2 comments
Closed
6 of 22 tasks

Golang stop-outyet command throws out status code 143 #17005

ScrewTSW opened this issue May 25, 2020 · 2 comments
Labels
area/plugins kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.

Comments

@ScrewTSW
Copy link
Member

Describe the bug

When running the stop command for golang devfile, the running application throws exit code 143

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  • Start Go example devfile
  • Execute run outyet task
  • Wait for Go application to be running
  • Execute stop outyet task
  • Exit code != 0 notification will be displayed

Expected behavior

  • Go application is stopped and non-zero exit code is suppressed

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift
Client Version: 4.3.5
Server Version: 4.4.4
Kubernetes Version: v1.17.1
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Screenshot_20200525_094851

Installation method

  • chectl
    • provide a full command that was used to deploy Eclipse Che chectl server:start -a operator -p openshift --self-signed-cert -n <namespace>
    • provide an output of chectl version command chectl/7.13.0 linux-x64 node-v10.20.1
  • OperatorHub
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other OCP 4.4 on crw-qe.com
  • other: please specify

Eclipse Che Logs

N/A

Additional context

N/A

@ScrewTSW ScrewTSW added kind/bug Outline of a bug - must adhere to the bug report template. status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. area/plugins labels May 25, 2020
@ibuziuk ibuziuk added severity/P1 Has a major impact to usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels May 25, 2020
@ibuziuk
Copy link
Member

ibuziuk commented May 25, 2020

@ericwill could you please take a look ?

@ericwill ericwill mentioned this issue Jul 15, 2020
38 tasks
@vitaliy-guliy
Copy link
Contributor

Exit codes above 127 typically mean the process was stopped because of a Signal.

Go process is getting SIGTERM (15) signal, so exit code is 128+15.

If it's critical for you and you want to see exitcode 0, just add exit 0 at the end of the command which starts the outyet.

commands:
-
  name: run outyet
  actions:
  - type: exec
    component: go-cli
    command: go get -d && go run main.go ; exit 0
    workdir: ${CHE_PROJECTS_ROOT}/src/github.com/golang/example/outyet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugins kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

3 participants