Skip to content

Can't add new platforms #1936

@gabrielclima

Description

@gabrielclima

Hi, guys!

Im trying to add a platform to start my tests on Tsuru (im fixing my pr).

when i run ./tsuru platform-add python
return

panic: runtime error: index out of range

goroutine 38 [running]:
github.com/tsuru/tsuru-client/vendor/github.com/Nvveen/Gotty.readTermInfo(0xc4201ddc60, 0x1e, 0x0, 0x0, 0x0)
	/home/gabriel/go/src/github.com/tsuru/tsuru-client/vendor/github.com/Nvveen/Gotty/gotty.go:232 +0xaff
github.com/tsuru/tsuru-client/vendor/github.com/Nvveen/Gotty.OpenTermInfo(0xc42000c245, 0xe, 0xc42000c245, 0xe, 0xc42002ce50)
	/home/gabriel/go/src/github.com/tsuru/tsuru-client/vendor/github.com/Nvveen/Gotty/gotty.go:45 +0x267
github.com/tsuru/tsuru-client/vendor/github.com/docker/docker/pkg/jsonmessage.DisplayJSONMessagesStream(0x2d75900, 0xc42000e520, 0x2d71d00, 0xc4201ddba0, 0x1, 0x1, 0x0, 0x0, 0x0)
	/home/gabriel/go/src/github.com/tsuru/tsuru-client/vendor/github.com/docker/docker/pkg/jsonmessage/jsonmessage.go:245 +0x5a3
github.com/tsuru/tsuru-client/vendor/github.com/tsuru/tsuru/io.(*SimpleJsonMessageFormatter).Format.func1(0xc4201e8db0, 0x2d71d00, 0xc4201ddba0, 0x1, 0x1)
	/home/gabriel/go/src/github.com/tsuru/tsuru-client/vendor/github.com/tsuru/tsuru/io/stream_writer.go:161 +0x95
created by github.com/tsuru/tsuru-client/vendor/github.com/tsuru/tsuru/io.(*SimpleJsonMessageFormatter).Format
	/home/gabriel/go/src/github.com/tsuru/tsuru-client/vendor/github.com/tsuru/tsuru/io/stream_writer.go:162 +0x418

Tsuru API logs shows

2018/02/11 04:07:27 ERROR: failure running HTTP request POST /1.0/platforms (500): error in docker node "http://node1:2375": write tcp 172.42.0.8:8080->172.42.0.1:48004: write: broken pipe

I already looked at github.com/Nvveen/Gotty/gotty.go:232 but, i have no idea what this function makes

Im still using branch master at moment

Can anyone help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions