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

Panic when using nomad job stop #10923

Closed
evandam opened this issue Jul 21, 2021 · 3 comments · Fixed by #10926
Closed

Panic when using nomad job stop #10923

evandam opened this issue Jul 21, 2021 · 3 comments · Fixed by #10926
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/cli type/bug

Comments

@evandam
Copy link

evandam commented Jul 21, 2021

Nomad version

Nomad v1.1.2 (60638a086ef9630e2a9ba1e237e8426192a44244)

Operating system and Environment details

Ubuntu 18.04

Issue

Running nomad job stop <job_id> is causing panics when monitoring. This is being run in a CI environment, not an interactive shell (assuming related to the .ttyMonitor in the stacktrace.

Including -detach avoids the panic, but means we can't wait for the job to stop successfully before moving on.

Nomad Client logs (if appropriate)

==> 2021-07-21T18:46:16Z: Monitoring evaluation "d27ca872"
    2021-07-21T18:46:16Z: Evaluation triggered by job "automation-frontend-web-w2-a960949"
==> 2021-07-21T18:46:17Z: Monitoring evaluation "d27ca872"
    2021-07-21T18:46:17Z: Evaluation within deployment: "22dcae3a"
    2021-07-21T18:46:17Z: Evaluation status changed: "pending" -> "complete"
==> 2021-07-21T18:46:17Z: Evaluation "d27ca872" finished with status "complete"
==> 2021-07-21T18:46:17Z: Monitoring deployment "22dcae3a"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x618 pc=0x2157862]
goroutine 102 [running]:
github.com/mitchellh/go-glint.tree(0x2fcebc0, 0xc0007b87e0, 0x0, 0x2f87de0, 0xc000480e80, 0x0)
	github.com/mitchellh/go-glint@v0.0.0-20201119015200-53f6eb3bf4d2/tree.go:39 +0x162
github.com/mitchellh/go-glint.tree(0x2fcebc0, 0xc0007b87e0, 0x0, 0x2f87e60, 0xc0007b6c78, 0xc000480d00)
	github.com/mitchellh/go-glint@v0.0.0-20201119015200-53f6eb3bf4d2/tree.go:32 +0x6c7
github.com/mitchellh/go-glint.(*Document).RenderFrame(0xc0008c5590)
	github.com/mitchellh/go-glint@v0.0.0-20201119015200-53f6eb3bf4d2/document.go:190 +0x1c5
github.com/mitchellh/go-glint.(*Document).Render(0xc0008c5590, 0x2fceb18, 0xc000482200)
	github.com/mitchellh/go-glint@v0.0.0-20201119015200-53f6eb3bf4d2/document.go:138 +0xc5
created by github.com/hashicorp/nomad/command.(*DeploymentStatusCommand).ttyMonitor
	github.com/hashicorp/nomad/command/deployment_status.go:218 +0x38e
@jrasell jrasell added stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/cli labels Jul 22, 2021
@jrasell
Copy link
Member

jrasell commented Jul 22, 2021

Hi @evandam and thanks for the report. This is something we will certainly look to try get fixed up in the next release.

@jrasell jrasell added this to Needs Triage in Nomad - Community Issues Triage via automation Jul 22, 2021
@jrasell jrasell moved this from Needs Triage to Needs Roadmapping in Nomad - Community Issues Triage Jul 22, 2021
@ulfdalen
Copy link

We have the same problem. Really looking forward to the fix.

Nomad - Community Issues Triage automation moved this from Needs Roadmapping to Done Jul 23, 2021
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/cli type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants