I have a Google Pub/Sub setup where a specific topic is intended to receive messages automatically from a source (e.g., Cloud Function, Cloud Scheduler, or an external service). Everything was working fine until recently, when the topic stopped receiving messages automatically.
Here's what I've investigated so far:
Manual testing works:
I can manually publish messages to the topic using
gcloud pubsub topics publish
and these messages are successfully delivered to my push subscription endpoint.
No activity from the source:
When relying on the source to publish messages, nothing appears in the topic or the subscription. I suspect that the source stopped generating messages, but I'm not sure how to verify or fix this.
Quota usage is zero:
The Pub/Sub quota metrics show no activity (0% usage), which confirms that no messages are being published from the source.
IAM roles are correct:
The service account tied to the source has the Owner role (which includes roles/pubsub.publisher and other necessary permissions), so access shouldn’t be an issue.
Push subscription works:
My push subscription is correctly configured, and the endpoint receives test messages without any issue (responding with HTTP 200).
Questions:
- How can I diagnose why the source stopped publishing messages to Pub/Sub?
- Are there any common issues or undocumented limitations in Pub/Sub that could explain this behavior?
- What else should I check to ensure the source is working as expected?
Any help or pointers would be greatly appreciated!