Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google cloud Platform(GCP) Unknown error. Original error message: Operation failed: Insufficient CPU

I am getting an error while creating the VPC connector. The error is 

 

 

Unknown error. Original error message: Operation failed: Insufficient CPU

 

 

What should I do. I am using a free trial account.

0 6 3,439
6 REPLIES 6

It sounds like you've either reached the limit on CPUs for the region you're deploying to, or the deployment would take you over that limit.

You can check your current usage in the Quotas page under IAM & Admin (or type 'All Quotas' into the GCP Console search bar to find it). This will show all your quotas so the information you're looking for might not be on the 1st page. You should be able to filter with 'Quota status: high usage OR Quota status: reaching limit' to narrow it down.

Stackdriver logs sometimes have more detail when you drill down into them, there should be an error logged each time you try to deploy.

If all that fails then I usually search for the error message with quotes around it, that's kept me in the IT business for decades 🙂

Thanks for the reply. The issue was related to CPUs usage. I scale down it to f1 and max instance to 3.

Also check your scaling settings when you create the VPC Connector, by default the max is 10 so try reducing that to 3.

Exactly I did this. I change it to f1 and max to 3. So it uses low CPUs. After that, I successfully created a VPC connector.

As suggested by the previous person, lowering the Scaling Settings of your VPC could help you to alleviate this situation.  Another option what you could also try is that by deploying the VPC connector in a region where you have enough CPU quota. 

Since you are encountering a CPU Quota Limit issue, you have to request for an additional CPU through the respective project's quota page as suggested by the other community member.  But before requesting any additional quota, I would recommend you to upgrade your account by following this help center article. The reason I said this because if you are on free trial, you won't be probably having an option to increase the quota request. This is a limitation on free trial account and is explained here.

For an additional reference on how to work with quotas, you would need to refer this help center article. If your quota request got rejected even after upgrading the account, you might then need to contact the Google Cloud Platform's Sales team for an additional assistance on this quota increase. 

Yes, I have to lower the settings of the VPC connector.