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

Error while fetching allocation logs using nomad 0.3 #889

Closed
bithavoc opened this issue Mar 6, 2016 · 4 comments
Closed

Error while fetching allocation logs using nomad 0.3 #889

bithavoc opened this issue Mar 6, 2016 · 4 comments

Comments

@bithavoc
Copy link

bithavoc commented Mar 6, 2016

using nomad 0.3, trying to fetch the logs for an allocation is resulting in an error:

nomad fs ls e719a28a alloc/logs/

Error:

    2016/03/06 16:06:39 [ERR] http: Request /v1/allocation/e719a28a, error: alloc lookup failed: index error: UUID must be 36 characters
    2016/03/06 16:06:39 http: panic serving 127.0.0.1:42589: runtime error: invalid memory address or nil pointer dereference
goroutine 4225 [running]:
net/http.(*conn).serve.func1(0xc820452f00)
    /opt/go/src/net/http/server.go:1389 +0xc1
panic(0x1083040, 0xc82000e070)
    /opt/go/src/runtime/panic.go:426 +0x4e9
github.com/hashicorp/nomad/client.(*Client).GetAllocFS(0x0, 0xc820637db5, 0x24, 0x0, 0x0, 0x0, 0x0)
    /opt/gopath/src/github.com/hashicorp/nomad/client/client.go:418 +0x4f
github.com/hashicorp/nomad/command/agent.(*HTTPServer).DirectoryListRequest(0xc820226cc0, 0x7eff0520dac8, 0xc8205148f0, 0xc8205f67e0, 0x0, 0x0, 0x0, 0x0)
    /opt/gopath/src/github.com/hashicorp/nomad/command/agent/fs_endpoint.go:25 +0x276
github.com/hashicorp/nomad/command/agent.(*HTTPServer).DirectoryListRequest-fm(0x7eff0520dac8, 0xc8205148f0, 0xc8205f67e0, 0x0, 0x0, 0x0, 0x0)
    /opt/gopath/src/github.com/hashicorp/nomad/command/agent/http.go:106 +0x5a
github.com/hashicorp/nomad/command/agent.(*HTTPServer).wrap.func1(0x7eff0520dac8, 0xc8205148f0, 0xc8205f67e0)
    /opt/gopath/src/github.com/hashicorp/nomad/command/agent/http.go:164 +0x139
net/http.HandlerFunc.ServeHTTP(0xc82022b020, 0x7eff0520dac8, 0xc8205148f0, 0xc8205f67e0)
    /opt/go/src/net/http/server.go:1618 +0x3a
net/http.(*ServeMux).ServeHTTP(0xc820225f20, 0x7eff0520dac8, 0xc8205148f0, 0xc8205f67e0)
    /opt/go/src/net/http/server.go:1910 +0x17d
net/http.serverHandler.ServeHTTP(0xc8201f9000, 0x7eff0520dac8, 0xc8205148f0, 0xc8205f67e0)
    /opt/go/src/net/http/server.go:2081 +0x19e
net/http.(*conn).serve(0xc820452f00)
    /opt/go/src/net/http/server.go:1472 +0xf2e
created by net/http.(*Server).Serve
    /opt/go/src/net/http/server.go:2137 +0x44e

Any ideas why this is failing?

@dadgar
Copy link
Contributor

dadgar commented Mar 7, 2016

Hey,

Thanks for reporting, there is a bug! How were you running the server/clients

@dadgar
Copy link
Contributor

dadgar commented Mar 7, 2016

Also if you can build off master, #890 may have fixed this issue! We were not able to reproduce the panic

@dadgar dadgar closed this as completed Mar 7, 2016
@dadgar dadgar reopened this Mar 7, 2016
@dadgar
Copy link
Contributor

dadgar commented Mar 10, 2016

We could not reproduce and we are fairly confident #890 guards the only way this panic could happen. Closing until another report comes in.

@dadgar dadgar closed this as completed Mar 10, 2016
@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 Dec 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants