'Unable to set gcloud project in wsl2 ubuntu
I am using Cisco anyconnect vpn, wsl2, Ubuntu 20.04 LTS and I have a problem with setting up my gcloud project.
gcloud config set project my_project
There is no issue with my Windows CMD, so there is no issue with my account. I am able to curl google.com in my wsl2 as well so there is no DNS issue, I mean have the network in my wsl.
I am not sure what privilege I don't have in my wsl2 that caused the system stuck.
In addition, I tried to use an alternative way to set the project and run the
gcloud container clusters ....
but I am not able to run this command as well.
I don't have any issue with the below commands either, which I am running before the above first statement:
gcloud auth activate-service-account --key-file $HOME/mydevdetails.json
gcloud config set account [email protected]
Would you mind helping me to figure out what is missing?
Solution 1:[1]
I am living in Germany and I am using Vodafone CGA644VF modem which is providing a horrible service for me. It seems that there is some restriction in this type of modem and the problem is due to the size of the packet.
I solve my problem by decreasing the size of the packet sent from WSL by using the below command:
sudo ifconfig eth0 mtu 500 up
You can check your current setting by :
ifconfig | grep mtu
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Amir |
