Closed pakkua80 closed 1 year ago
time="2022-10-13T15:29:58+08:00" level=debug time="2022-10-13T15:29:58+08:00" level=info msg="Received event" CorrelationId=04024666-82e1-4542-bc3c-52a1bae9cb11 Details="[iscsid] service enabled" Name="Setup virtual machine OS" State=finished time="2022-10-13T15:29:58+08:00" level=info msg="Received event" CorrelationId=c668a5d8-53a4-40a9-8ff5-906851c63b21 Details="VM ID: 102" Name="Install Kubernetes" State=started time="2022-10-13T15:29:58+08:00" level=info msg="Received event" CorrelationId=ac36818b-8779-4c6b-b7cf-c2b62358c120 Details="VM ID: 100" Name="Install Kubernetes" State=started time="2022-10-13T15:29:58+08:00" level=info msg="Received event" CorrelationId=db585cff-23a4-440b-abba-399cdddf0507 Details="VM ID: 101" Name="Install Kubernetes" State=started time="2022-10-13T15:32:02+08:00" level=error msg="cannot close session" error=EOF time="2022-10-13T15:32:02+08:00" level=info msg="Received event" CorrelationId=c668a5d8-53a4-40a9-8ff5-906851c63b21 Details= Name="Install Kubernetes" State=finished time="2022-10-13T15:32:02+08:00" level=info msg="Received event" CorrelationId=6eccbb0f-ac91-4933-8488-5cfc3f4909b1 Details="VM ID: 102" Name="Wait for Kubernetes readiness" State=started time="2022-10-13T15:32:05+08:00" level=error msg="cannot close session" error=EOF time="2022-10-13T15:32:05+08:00" level=info msg="Received event" CorrelationId=db585cff-23a4-440b-abba-399cdddf0507 Details= Name="Install Kubernetes" State=finished time="2022-10-13T15:32:05+08:00" level=info msg="Received event" CorrelationId=8d11464a-9e7d-4208-9dd7-27ef8ff12e00 Details="VM ID: 101" Name="Wait for Kubernetes readiness" State=started time="2022-10-13T15:32:06+08:00" level=error msg="cannot close session" error=EOF time="2022-10-13T15:32:06+08:00" level=info msg="Received event" CorrelationId=ac36818b-8779-4c6b-b7cf-c2b62358c120 Details= Name="Install Kubernetes" State=finished time="2022-10-13T15:32:06+08:00" level=info msg="Received event" CorrelationId=75e004e7-a14b-4041-a574-4cfae90696e9 Details="VM ID: 100" Name="Wait for Kubernetes readiness" State=started
Thank you for the issue. I will try to reproduce this situation.
Logs are stored at location: ~/.k4prox/k4prox.log
Hi Dsieradski,
I try to run a second time, it did complete with success. I have check the logs, it still spits the same logs
Second Time Run
I double check the logs, in fact it was successfully for both just some how the first session got reflected as an "Cluster creation error"
Ok, I will check it. Thanks.
Ok, I reproduced this error when I opened the project file in notepad, to "lock" the file. When K4P finished cluster creation, it tries to save kubeconfig, of course, it can't, because if file is locked.
Can you confirm that you opened the project file in a text editor?
I will fix the application to handle this kind of situation and improve logs.
I did not go through such a complicated steps. I left my laptop running and came back seeing that. Let me try to see if I can reproduce it. If not I will close the case for now. Don't change the code. =)
But if you could print more logs at this early stage , catch as many errors as possible.
Ok :) I will do some improvements anyway. A problem with the locked file may happen on Windows. These kinds of errors should be logged already, so I will check too.
I did more tests and I cannot reproduce the issue. Also I have added more logs. For now I will close the issue. If this happen again, maybe we figure out what was the cause thanks to more logs.
Hi,