# Kubelogin failining with exit code 1

**URL:** <https://forums.k8slens.dev/t/kubelogin-failining-with-exit-code-1/565>\
**Category:** Lens Support & Troubleshooting\
**Created:** [June 13, 2023, 8:46pm UTC](https://forums.k8slens.dev/t/kubelogin-failining-with-exit-code-1/565 "2023-06-13T20:46:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![subhasishbehera62](https://forums.k8slens.dev/user_avatar/forums.k8slens.dev/subhasishbehera62/32/458_2.png) [@subhasishbehera62](https://forums.k8slens.dev/u/subhasishbehera62)\
**Post date:** [June 13, 2023, 8:46pm UTC](https://forums.k8slens.dev/t/kubelogin-failining-with-exit-code-1/565/1 "2023-06-13T20:46:41Z")

</div>

Hi Team,

We recently upgraded our aks cluster to 1.24.10 version but we are not able to use lens to view our aks cluster resources.

The output we are getting is kubelogin failing with exit code 1.

Could you please help us resolve this issue.

Thanks and Regards,  
Subhasish

---

<div class="post-metadata">

**Author:** ![subhasishbehera62](https://forums.k8slens.dev/user_avatar/forums.k8slens.dev/subhasishbehera62/32/458_2.png) [@subhasishbehera62](https://forums.k8slens.dev/u/subhasishbehera62)\
**Post date:** [June 14, 2023, 5:20am UTC](https://forums.k8slens.dev/t/kubelogin-failining-with-exit-code-1/565/2 "2023-06-14T05:20:01Z")

</div>

Hi Team,

Please find the error details :

error: unknown flag: --environmentE0607 17:26:21.335653 13924 proxy\_server.go:147] Error while proxying request: getting credentials: exec: executable kubelogin failed with exit code 1getting credentials: exec: executable kubelogin failed with exit code 1

Please help us with the issue.

Thanks and Regards,  
Subhasish

---

<div class="post-metadata">

**Author:** ![aleksfront](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/a/e480ec/32.png) [@aleksfront](https://forums.k8slens.dev/u/aleksfront)\
**Post date:** [June 14, 2023, 11:26am UTC](https://forums.k8slens.dev/t/kubelogin-failining-with-exit-code-1/565/3 "2023-06-14T11:26:52Z")

</div>

Hi Subhasish! Welcome to the community! Please help us narrow down the problem.

- What Lens version do you use?
- Are you able to access resources via kubectl?
- Is possible that kubelogin needs to be updated too to align with aks cluster version in some way?

---

<div class="post-metadata">

**Author:** ![subhasishbehera62](https://forums.k8slens.dev/user_avatar/forums.k8slens.dev/subhasishbehera62/32/458_2.png) [@subhasishbehera62](https://forums.k8slens.dev/u/subhasishbehera62)\
**Post date:** [June 14, 2023, 12:00pm UTC](https://forums.k8slens.dev/t/kubelogin-failining-with-exit-code-1/565/4 "2023-06-14T12:00:46Z")

</div>

Hi aleksfront,

We are using lens 5 version  
and yes we are able to access resources via kubectl.

Not sure kubelogin needs to be upgraded too to align with aks cluster in some way.

 ![image](https://forums.k8slens.dev/original/1X/2d14d2c48f63ff50d14913482274c7ec95a2487c.png)

Please suggest further if we could update kubelogin to align with the upgraded aks version.

note the aks cluster version : 1.25.6

Please help us with the clis as well.

Thanks and Regards,  
Subhasish
