solo-io / squash

The debugger for microservices
https://squash.solo.io
Apache License 2.0
1.74k stars 103 forks source link

v0.5.18 port-forwarding error #237

Closed mitchdraft closed 5 years ago

mitchdraft commented 5 years ago

when using v0.5.18, dlv, to debug the sample calculator app (golang), the connection is made but port-forwarding fails with the following error:

squashctl
Attaching debugger
? Select a debugger dlv
? Select a namespace to debug default
? Select a pod example-service1-75dfb4d769-8bsqm
? Going to attach dlv to pod example-service1-75dfb4d769-8bsqm. continue? Yes
Squash will create a debugger pod in your target pod's namespace.
Creating service account squash-plank in namespace squash-debugger

Creating cluster role squash-plank-cr

Creating cluster role binding squash-plank-crb

All squashctl permission resources created.

Forwarding from 127.0.0.1:57833 -> 43801
Forwarding from [::1]:57833 -> 43801
2019/08/12 12:47:29 dialing:dial tcp 127.0.0.1:57833: connect: connection refused

it is at least possible to connect to the debug server with a separate port-forward command

mitchdraft commented 5 years ago

fixed with https://github.com/solo-io/squash/pull/238