Troubleshooting a Cloud Storage import topic Stay organized with collections Save and categorize content based on your preferences.
This document provides some common troubleshooting tips forCloud Storage import topics.
After you configure the import topic and start ingesting messages, you cancheck the relevant Cloud Monitoring metrics to seeif data is ingested. Perform the following steps:
In the console, go to theTopics page.
Click the Cloud Storage import topic that you want to troubleshoot.
In the topic details page, click theMetrics tab.
Check the chart for the metricIngestion byte count.
If no data is being ingested, in the topic details page,check to see if there is an error and a red exclamation mark for theTopic state field.
You can also check the metricIngestion data source state.To do so, in the topic details page, click theMetrics tab.
For more information about these metrics, seeMetrics to monitor import topics.
Here is a list of errors that you might encounter:
Error Code Description Fix CLOUD_STORAGE_PERMISSION_DENIEDError consuming Cloud Storage data due to permission issues. Verify that the Pub/Sub service account has the necessary permissions to access the Cloud Storage bucket. Ensure the service account has the following permissions: storage.objects.list: To list the objects in a bucket.storage.objects.get: To read the objects in a bucket.storage.buckets.get: To obtain the bucket location and that the bucket exists.
For more information, seethe prerequisites to creating a Cloud Storage topic.
PUBLISH_PERMISSION_DENIEDError publishing to the topic due to permission issues. Grant the Pub/Sub service account thenecessary publish permissions. For more information, seeAdd the Pub/Sub publisher role to the Pub/Sub service account. BUCKET_NOT_FOUNDThe specified Cloud Storage bucket cannot be found. Verify the bucket name for accuracy. TOO_MANY_OBJECTSThe Cloud Storage bucket has too many objects, ingestion is paused. Ingestion is resumed after the number of objects in the bucket is fewer than 50 million. The limit for the objects is 50 million. Reduce the number of objects in the bucket or contact Google Cloud support for assistance.
If there are no errors till this point, check the best practices inMaintain a healthy publisher.
You can also enableplatform logs for aCloud Storage import topic. These logs help you troubleshoot issueswhen you have issues ingesting objects into Pub/Sub import topics.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-19 UTC.