Skip to content

panic: interface conversion: interface is nil, not []interface {} #2

@gbisheimer

Description

@gbisheimer

This is the first time trying rancherssh. I was looking for something like this for a long time. I get this message when I run rancherssh: panic: interface conversion: interface is nil, not []interface {}

How can I fix this? Could be a config file problem? I'm using JSON format for the config file.

Thanks!

EDIT: Forgot to give more details. This is the displayed error and stack trace:

Searching for container bys
panic: interface conversion: interface is nil, not []interface {}

goroutine 1 [running]:
panic(0x802340, 0xc4203da280)
    /usr/local/go/src/runtime/panic.go:500 +0x1a1
main.(*RancherAPI).containerUrl(0xc420109ef8, 0x7ffdc474b423, 0x3, 0x1c, 0x0)
    /home/gbisheimer/src/rancherssh/src/github.com/fangli/rancherssh/main.go:189 +0x5b3
main.(*RancherAPI).GetContainerConn(0xc420109ef8, 0x7ffdc474b423, 0x3, 0x40a7ab)
    /home/gbisheimer/src/rancherssh/src/github.com/fangli/rancherssh/main.go:249 +0x122
main.main()
    /home/gbisheimer/src/rancherssh/src/github.com/fangli/rancherssh/main.go:303 +0xb2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions