Troubleshoot

This page shows you how to resolve issues with Cloud Profiler.

Errors with your Google Cloud project configuration

This section lists configuration issues that you might encounter and provides suggestions for how to fix each of them.

Cloud Profiler API is disabled

The following error occurs when the Profiler API isn't enabled for your Google Cloud project:

failed to create a profile, will retry: rpc error: code = PermissionDenied
desc = Cloud Profiler API has not been used in project 012345 before or it is disabled.

To resolve this issue, your Google Cloud project must have the Profiler API enabled:

  1. Enable the Cloud Profiler API.

    Roles required to enable APIs

    To enable APIs, you need the serviceusage.services.enable permission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.

    Enable the API