-
Notifications
You must be signed in to change notification settings - Fork 361
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
'devspace enter' session is interrupted #511
Comments
In my errors.log I find in enormous amount of this type of error:
And then at the end:
Any suggestions how to solve the refusal of connection or is this 'normal'...? |
Thanks for opening this issue @musicformellons . I looked through your logs and usually I get the @KaelBaldwin could solve the issues by upgrading his cluster to a newer version, because it seems that sometimes the connection disruption is caused by kubernetes itself (not sure why though, maybe a bug in kubectl or the api server itself). You can check if kubernetes is the problem by also running Regarding your question:
Unfortunately I don't think this is possible currently, kubernetes gives us no option to attach to a specific PID yet, so the only solution is to restart the server on devspace enter. |
Ok, thanks for the pointers! I am upgrading my kubernetes right now, so maybe that helps. The error |
9229 is the node debugger port, which is only necessary if want to debug node applications locally. You can just delete that if you don't use it |
'Debug node application locally', I suppose that means: I edit on my local machine and then it syncs my changes to my kubernetes cloud? That's essential to me. My current portforwarding config:
Does using 9229 on both pods give conflicts, or should that be ok? |
No with debug node applications locally I mean attaching a node debugger to your remotely running node application, I guess in your use case you just want to sync file changes which is not affected by this, so I think you can remove the 9229 port. |
Ah, that makes sense! I will get rid of it! My kubernetes is still updating..., as soon as I can test and see of things are then solved I will close this issue. |
Seems solved. |
Actually was not really solved... After updating Kubernetes and Devspace and change correct ports I still have basically the same behavior: My session is ended and I have to My pods seem to run fine, also after the ending of the devspace session... |
@musicformellons mhh that is odd, could you try to open a kubectl exec shell in parallel to see if that loses connection aswell? I don't think you have to run |
Ok, will test |
I tried twice and both times the kubectl connection to the two pods also lost connection. Error logs in devspace:
|
@musicformellons Thanks for testing that out! Unfortunately I don't think we can do much about this issue, because internally we just use the kubectl functionality. This seems to be more of a problem with the kubernetes client-go cli streaming functionality. The error logs also indicate that somehow the connection to the pod was lost, I cannot really tell why though. |
As I am using Istio (on GKE) this might be related. |
@musicformellons Is this still an issue for you with the newest version of DevSpace CLI or can we close this issue? |
It still is an issue... |
Solved through issue #643 !! It works very well now, really happy this got resolved! |
Very glad it solved the issue! |
Not sure whether this is a bug. Problem is somewhat similar to this issue, but I am not on windows (ubuntu). I have devspace (without helm) and exec into three processes (once with
devspace dev
and twice withdevspace enter
) into two containers. So:A) one process on container A
B) two processes on container B
I lose contact (suddenly instead of terminal output I get a prompt) with (especially with B) quite often. Output seems to vary, e.g. last time I got:
errors.log:
sync.log:
What is causing this? Is it a loss of internet connection? That is odd, since when I disconnect my internet and reconnect it still can continue the sessions, so seems a slight internet connection disruption should cause no problems.
And furthermore: When getting the prompt and then
devspace enter
into the same container and trying to restart the service (server), it gives connection error as process seems to be still running in background. Can I somehow reattach to the (PID) process with a terminal screen?The text was updated successfully, but these errors were encountered: