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

Controller panics on 'ziti agent cluster list' #2055

Closed
karlpokus opened this issue May 22, 2024 · 1 comment
Closed

Controller panics on 'ziti agent cluster list' #2055

karlpokus opened this issue May 22, 2024 · 1 comment

Comments

@karlpokus
Copy link

To reproduce:

The controller panics:

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x254a6c5]

goroutine 188 [running]:
github.com/openziti/channel/v2.(*channelImpl).rxer.func1()
	github.com/openziti/channel/v2@v2.0.128/impl.go:308 +0x3f
panic({0x35b5c40?, 0x5991310?})
	runtime/panic.go:770 +0x132
github.com/openziti/ziti/controller/raft.(*Controller).GetRaft(...)
	github.com/openziti/ziti/controller/raft/raft.go:244
github.com/openziti/ziti/controller/raft.(*Controller).ListMembers(0x0)
	github.com/openziti/ziti/controller/raft/member.go:40 +0x25
github.com/openziti/ziti/controller.(*Controller).agentOpRaftList(0x97efdf6400000003?, 0xc0025e1c50, {0x4196440, 0xc000e71b00})
	github.com/openziti/ziti/controller/agent.go:80 +0x3e
github.com/openziti/channel/v2.ReceiveHandlerF.HandleReceive(0x3589980?, 0xc00200cc00?, {0x4196440?, 0xc000e71b00?})
	github.com/openziti/channel/v2@v2.0.128/handler.go:99 +0x29
github.com/openziti/channel/v2.(*channelImpl).rxer(0xc003480f50?)
	github.com/openziti/channel/v2@v2.0.128/impl.go:359 +0x558
created by github.com/openziti/channel/v2.(*channelImpl).startMultiplex in goroutine 73
	github.com/openziti/channel/v2@v2.0.128/impl.go:288 +0xb8
@dovholuknf
Copy link
Member

This is also reproducible by running ziti edge quickstart and trying to use ziti agent cluster list on that controller.

plorenz added a commit that referenced this issue May 22, 2024
Don't panic if agent cluster ops are run when not in cluster mode. Fixes #2055
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

2 participants