builder icon indicating copy to clipboard operation
builder copied to clipboard

ssh_exchange_identification: Connection closed by remote host

Open pfeodrippe opened this issue 8 years ago • 3 comments

I was pushing my app to production and

...
...
...
...
...
Done, example-web-production:v7 deployed to Workflow

Use 'deis open' to view this application in your browser

To learn more, use 'deis help' or visit https://deis.com/

fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

Now I can't push more releases

ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

pfeodrippe avatar Mar 30 '17 19:03 pfeodrippe

Hi there! To debug builder errors, can you follow the Troubleshooting Using Kubectl guide to grab the pod status using kubectl describe? If you can provide more info in a gist that'd be helpful. I have a feeling this is because the builder or the load balancer is flapping.

Also what cloud provider is this? Has this been resolved since the report?

bacongobbler avatar Apr 01 '17 15:04 bacongobbler

I'm using AWS. I've deleted the pod and it was created again. Now it appears to be working. There was a lot of slug builds with 'Completed' state like

...
slugbuild-app-03e393cf-806e499c   0/1       Completed   0          16h
slugbuild-app-47518ffc-db057d22   0/1       Completed   0          17h
slugbuild-app-8d9c75fd-bfdd9d8b   0/1       Completed   0          17h
slugbuild-app-91945f35-db840892   0/1       Completed   0          16h
slugbuild-app-96089789-253a75f1   0/1       Completed   0          19h
slugbuild-app-9d40299d-b3bbff1a   0/1       Completed   0          17h
slugbuild-app-9d40299d-daacec4e   0/1       Completed   0

A kubectl --namespace=deis logs deis-builder-4114410410-vgwwv gave me

Accepted connection.
---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> ---> panic: runtime error: slice bounds out of range

goroutine 87771 [running]:
panic(0x11acf20, 0xc4200180c0)
	/usr/local/go/src/runtime/panic.go:500 +0x1a1
github.com/deis/builder/vendor/golang.org/x/crypto/ssh.(*dsaPrivateKey).Sign(0xc4201e60e0, 0x1c22840, 0xc4200156e0, 0xc42048f140, 0x14, 0x20, 0x0, 0x800, 0xc42048f140)
	/go/src/github.com/deis/builder/vendor/golang.org/x/crypto/ssh/keys.go:457 +0x3bf
github.com/deis/builder/vendor/golang.org/x/crypto/ssh.signAndMarshal(0x1c2c000, 0xc4201e60e0, 0x1c22840, 0xc4200156e0, 0xc42048f140, 0x14, 0x20, 0xc4204cf10b, 0x132737d, 0x8, ...)
	/go/src/github.com/deis/builder/vendor/golang.org/x/crypto/ssh/server.go:160 +0x6d
github.com/deis/builder/vendor/golang.org/x/crypto/ssh.(*dhGroup).Server(0xc4200bf7a0, 0x7fd33be12a28, 0xc4203087e0, 0x1c22840, 0xc4200156e0, 0xc4203d4720, 0x1c2c000, 0xc4201e60e0, 0x40df84, 0x133bed3, ...)
	/go/src/github.com/deis/builder/vendor/golang.org/x/crypto/ssh/kex.go:188 +0x511
github.com/deis/builder/vendor/golang.org/x/crypto/ssh.(*handshakeTransport).server(0xc4205b4f20, 0x1c2bfc0, 0xc4200bf7a0, 0xc42039a980, 0xc4203d4720, 0x1, 0x0, 0xc420437440)
	/go/src/github.com/deis/builder/vendor/golang.org/x/crypto/ssh/handshake.go:598 +0x1db
github.com/deis/builder/vendor/golang.org/x/crypto/ssh.(*handshakeTransport).enterKeyExchange(0xc4205b4f20, 0xc420476540, 0xd9, 0xd9, 0x1, 0x0)
	/go/src/github.com/deis/builder/vendor/golang.org/x/crypto/ssh/handshake.go:563 +0x3aa
github.com/deis/builder/vendor/golang.org/x/crypto/ssh.(*handshakeTransport).kexLoop(0xc4205b4f20)
	/go/src/github.com/deis/builder/vendor/golang.org/x/crypto/ssh/handshake.go:282 +0x1ec
created by github.com/deis/builder/vendor/golang.org/x/crypto/ssh.newServerTransport
	/go/src/github.com/deis/builder/vendor/golang.org/x/crypto/ssh/handshake.go:135 +0x262

pfeodrippe avatar Apr 04 '17 12:04 pfeodrippe

This issue was moved to teamhephy/builder#13

Cryptophobia avatar Mar 21 '18 13:03 Cryptophobia