Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Cannot connect to cluster - An unexpected error occurred: 'config should not be null' #345

Open
marcocello opened this issue Aug 18, 2022 · 0 comments

Comments

@marcocello
Copy link

Describe the bug
I am using devcontainer with Bridge to Kubernetes. After today's update I am experiencing this issue that prevents to connect to the K8s cluster: An unexpected error occurred: 'config should not be null'

2022-08-18T13:26:28.975Z | Common Extension Root | ERROR | Error: cli-client-connect-error <json>{"remoteName":"dev-container"}</json> <stack>Error: Connect operation failed.\nAn unexpected error occurred: 'config should not be null'\nTo see our active issues or file a bug report, please visit https://aka.ms/bridge-to-k8s-report.\nFor diagnostic information, see logs at '/tmp/Bridge To Kubernetes'.\n\n at ChildProcess.<anonymous> (/root/.vscode-server/extensions/mindaro.mindaro-1.0.120220817/dist/extension.js:3:236414)\n at ChildProcess.emit (node:events:390:28)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)</stack>

2022-08-18T13:26:28.976Z | Connect (ebm/897959a8-38 | ERROR | Error: connect-error <json>{"remoteName":"dev-container"}</json> <stack>Error: Connect operation failed.\nAn unexpected error occurred: 'config should not be null'\nTo see our active issues or file a bug report, please visit https://aka.ms/bridge-to-k8s-report.\nFor diagnostic information, see logs at '/tmp/Bridge To Kubernetes'.\n\n at ChildProcess.<anonymous> (/root/.vscode-server/extensions/mindaro.mindaro-1.0.120220817/dist/extension.js:3:236414)\n at ChildProcess.emit (node:events:390:28)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)</stack>

2022-08-18T13:26:28.980Z | Common Extension Root | ERROR | Error: connect-service-task-terminal-error <json>{"remoteName":"dev-container"}</json> <stack>Error: Failed to establish a connection. Error: Connect operation failed.\nAn unexpected error occurred: 'config should not be null'\nTo see our active issues or file a bug report, please visit https://aka.ms/bridge-to-k8s-report.\nFor diagnostic information, see logs at '/tmp/Bridge To Kubernetes'.\n\n at /root/.vscode-server/extensions/mindaro.mindaro-1.0.120220817/dist/extension.js:3:167390\n at processTicksAndRejections (node:internal/process/task_queues:96:5)</stack>

To Reproduce

  • Run your devcontainer environment
  • Run the debug from inside the devcontainer

log.txt

Logs
Attach logs from the following directory:
For Windows: %TEMP%/Bridge to Kubernetes
For OSX/Linux: $TMPDIR/Bridge to Kubernetes
If you are a Visual Studio user,

  • Set the environment variable MS_VS_AZUREDEVSPACES_TOOLS_LOGGING_ENABLED=true
  • Open Visual Studio and run your scenario
  • Provide logs from: %temp%\Microsoft.VisualStudio.Kubernetes.Debugging

Environment Details
VS: 1.70.2
[email protected]
Operating System: MacOS 12.5.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant