Skip to content
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

Failed to update dependencies: Current version of 'kubectl' binaries does not match expected version #345

Closed
MartyPointer-HTA opened this issue Dec 6, 2023 · 8 comments · Fixed by #346
Labels
bug Something isn't working

Comments

@MartyPointer-HTA
Copy link

MartyPointer-HTA commented Dec 6, 2023

Updating plugin to version 2.0.120231128 stops Bridge to Kubernetes from running.

Mention the platform you are using
VS Code V1.84.2

To Reproduce
Steps to reproduce the behavior:

  1. Install or upgrade to Bridge to Kubernetes plugin V2.0.120231128
  2. Run Bridge to Kubernetes via a launch.json file
  3. VS Code displays a toast showing the screen shot below (which contains the message "Failed to update dependencies. Current version of 'kubectl' binaries does not match the expected version")
  4. Bridge to Kubernetes cannot be configured

Expected behavior
Bridge to Kubernetes should create a restore pod and redirect K8s traffic to the application hosted in VS Code

Screenshots
image

Logs:
Log files in C:\Users\Username\AppData\Local\Temp\Bridge To Kubernetes do not report any problems. bridge-mindarocli-yyyy-MM-dd-hh-mm-ss-xxxx.txt log files contain 2 entries for Command.Start and Command.End.
Command.End = "Result":"Succeeded"

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 119.0.6045.200

Additional context
Trying to manually install the dependencies via the supplied link does not fix the problem
Upgrading installed version of kubectl does not fix the problem
Seen on 3 separate dev PCs
Reverting to the previous version of Bridge to Kubernetes (V2.0.120231004) is the work-around

@MartyPointer-HTA MartyPointer-HTA added the bug Something isn't working label Dec 6, 2023
@hsubramanianaks
Copy link
Collaborator

hsubramanianaks commented Dec 6, 2023

@MartyPointer-HTA Thanks for raising this concern. Can you check now it is updated and should not give this error. Please let me know.

@hsubramanianaks
Copy link
Collaborator

@MartyPointer-HTA Can you please confirm this is working ? if so, we can close this issue. Please let us know if there are any other further issues. Thank you.

@erceth
Copy link

erceth commented Dec 9, 2023

I'm having a similar issue. Isn't 2.0.120231128 the latest?

Mine says failed to update dependencies but doesn't give an error after.
image
I'm on an M1 mac.

@hsubramanianaks
Copy link
Collaborator

hsubramanianaks commented Dec 10, 2023

@erceth this is known issue, and it is caused due to codesign is required on M1 mac which is being worked on. Link here. Only work around for now is revert to older version or explicitly do codesign -s - ~/Library/Application\ Support/Code/User/globalStorage/mindaro.mindaro/../bridge/dsc and then retry the dependencies.

@MartyPointer-HTA
Copy link
Author

@MartyPointer-HTA Can you please confirm this is working ? if so, we can close this issue. Please let us know if there are any other further issues. Thank you.

Hi @hsubramanianaks, apologies... I assumed the update would be in the form of a new release version and was waiting for it to appear. I can confirm I have re-insalled v2.0.120231128 and no longer see the problem.

Thanks
Marty

@credo7
Copy link

credo7 commented Dec 14, 2023

Hello, codesign worked, but have another error now
Everything goes fine but the last step

Waiting for EndpointManager to come up ...
An unexpected error occurred: 'Failed to launch EndpointManager.'

Снимок экрана 2023-12-15 в 00 06 06

@hsubramanianaks

@hsubramanianaks
Copy link
Collaborator

@credo7 This is also known issue which is being investigated on. you are seeing this only after updating to latest, previous versions didn't give this error right ? Alternative you can use service environment variables approach which actually works fine. Apologies for this interruption, we will soon have a release to fix these issues. Thank you.

@hsubramanianaks
Copy link
Collaborator

hsubramanianaks commented Dec 19, 2023

@credo7 Can you please share your logs when EndpointManager fails. I am able to replicate it but trying to find the root cause of the failure. are you seeing this error ??

 | Library | TRACE | Launch output: 
 | Library | TRACE | Launch output: Process has exited with exit code 0
 | Library | TRACE | Waiting for EndpointManager to come up ...\n
 | Library | TRACE | Connecting to EndpointManager
 | Library | TRACE | EndpointManager is not running: 'Can't assign requested address'

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants