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

Cannot start VM today

I got an error "Operation type [start] failed with message "The resource '816371366746-compute@developer.gserviceaccount.com' of type 'serviceAccount' was not found.""

Solved Solved
3 3 659
1 ACCEPTED SOLUTION

Hi luchua-bc,

This error usually occurs when the default service account for Compute Engine has been deleted.

In Google Cloud Platform, projects that have enabled the Compute Engine API come with a default service account called the Compute Engine default service account. This service account has an automatically generated name and email address in the following format: [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.

If you have accidentally deleted the Compute Engine default service account, it might cause issues for applications that rely on its credentials. However, there are some steps you can take to address the situation.

  1. Undelete the service account (if deleted less than 30 days ago):

    • You can use the "undelete" command to restore a recently deleted service account.
    • Also, ensure there is no existing service account with the same name as the deleted service account.
  2. If you cannot undelete the service account:

    • Create a new service account with the same name as the deleted service account.
    • Revoke all roles from the deleted service account.
    • Grant the same roles to the new service account.
    • This approach allows you to have a service account with the same name, although it is separate from the original deleted service account.

For more information: 

View solution in original post

3 REPLIES 3

Hi luchua-bc,

This error usually occurs when the default service account for Compute Engine has been deleted.

In Google Cloud Platform, projects that have enabled the Compute Engine API come with a default service account called the Compute Engine default service account. This service account has an automatically generated name and email address in the following format: [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.

If you have accidentally deleted the Compute Engine default service account, it might cause issues for applications that rely on its credentials. However, there are some steps you can take to address the situation.

  1. Undelete the service account (if deleted less than 30 days ago):

    • You can use the "undelete" command to restore a recently deleted service account.
    • Also, ensure there is no existing service account with the same name as the deleted service account.
  2. If you cannot undelete the service account:

    • Create a new service account with the same name as the deleted service account.
    • Revoke all roles from the deleted service account.
    • Grant the same roles to the new service account.
    • This approach allows you to have a service account with the same name, although it is separate from the original deleted service account.

For more information: 

Thank @devenes for your help. I can recover the service account with the "undelete" command then start my instance. Now the issue is resolved.

@luchua-bc My pleasure! I'm glad the solution was effective.