Klicken Sie auf den Dienst, den Sie in Cloud Run erstellt haben, und wechseln Sie zum Tab Logs.
Wenn die Logs zeigen, dass der Dienst einen Nicht-OK-Statuscode erhalten hat, lehnt der Cloud Run-Dienst Ereignisse ab.
Pub/Sub-Nachrichten
Prüfen Sie, ob der Eventarc-Trigger erstellt wurde.
Prüfen Sie, ob das Pub/Sub-Thema erstellt und mit dem Eventarc-Trigger verknüpft wurde.
Prüfen Sie, ob das Pub/Sub-Thema vorhanden ist: Rufen Sie Pub/Sub auf und suchen Sie nach dem Thema.
Prüfen Sie, ob seit der Erstellung des Triggers genügend Zeit vergangen ist.
Es kann bis zu zwei Minuten dauern, bis der Trigger funktioniert.
Prüfen Sie die Cloud Run-Logs auf der Seite Cloud Run.
Klicken Sie auf den Dienst, den Sie in Cloud Run erstellt haben, und wechseln Sie zum Tab Logs.
Wenn die Logs zeigen, dass der Dienst einen Nicht-OK-Code erhalten hat, lehnt der Cloud Run-Dienst Ereignisse ab.
Trigger ist festgelegt, aber das Ziel empfängt keine Ereignisse
Prüfen Sie, ob die gesendete Ereignisnutzlast die Limits für die Ereignisgröße (512 KB) nicht überschreitet. Die Pub/Sub-Push-Abonnements unterliegen auch einer Reihe von Ressourcenlimits, z. B. dem Durchsatz pro Veröffentlichungsregion. Dadurch wird sichergestellt, dass die Pub/Sub-Ereignisnutzlast kleiner als 512 KB ist.
Suchen Sie das Pub/Sub-Thema, das dem Cloud Run-Trigger zugeordnet ist.
Prüfen Sie, ob der Name des Pub/Sub-Themas den Namen des erstellten Triggers enthält.
Beobachten Sie, ob Nachrichten zum Thema mit dem Messwert veröffentlicht werden: topic/send_message_operation_count.
Wenn keine Nachrichten zum Thema veröffentlicht werden, prüfen Sie in den Cloud-Audit-Logs, ob der überwachte Dienst Logs ausgibt. Wenn Logs aufgezeichnet, aber keine Ereignisse zugestellt werden, wenden Sie sich an den Support.
Beobachten Sie, ob Nachrichten erfolgreich mit dem Messwert übertragen werden: subscription/push_request_count von response_code. Wenn Übertragungsfehler gemeldet werden, prüfen Sie die Cloud Run-Dienstlogs. Wenn der empfangende Endpunkt einen Statuscode zurückgibt, der nicht "OK" ist, bedeutet dies, dass der Cloud Run-Code nicht wie erwartet funktioniert. Wenden Sie sich in diesem Fall an den Support.
Wenn Sie die Fehlermeldung INVALID_ARGUMENT: cloud run service "SERVICE_NAME" in region
"REGION_NAME" does not exist erhalten, wurde das Dienstkonto gelöscht. Ereignisse werden nicht an Cloud Run gesendet, wenn das Dienstkonto für den Zieldienst gelöscht wird. Erstellen Sie ein neues Cloud Run-Dienstkonto.
Cloud Run-Dienst ist nicht verfügbar
Auch wenn der Cloud Run-Dienst ausgefallen ist, speichert Pub/Sub Ereignisse standardmäßig sieben Tage lang und versucht, Ereignisse weiterhin an das Ziel zu senden. Weitere Informationen zu Pub/Sub-Ressourcenlimits finden Sie unter Kontingente und Limits.
Weitere Informationen
Weitere Informationen zu Eventarc finden Sie in der Übersicht.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-18 (UTC)."],[[["\u003cp\u003eThis document provides troubleshooting steps for issues encountered when using Eventarc for Cloud Run, covering common problems related to event delivery and service functionality.\u003c/p\u003e\n"],["\u003cp\u003eIf Cloud Run is not receiving events, check audit log access, event filter settings, trigger creation time, and confirm that the monitored service is generating audit logs or that the Pub/Sub topic exists and is properly attached.\u003c/p\u003e\n"],["\u003cp\u003eEvent delivery failures to the target may be due to exceeding event size limits (512KB) or Pub/Sub resource limits, which can be monitored through Pub/Sub metrics and audit logs.\u003c/p\u003e\n"],["\u003cp\u003eIf a \u003ccode\u003eINVALID_ARGUMENT\u003c/code\u003e error occurs indicating the Cloud Run service does not exist, the service account has likely been deleted and needs to be recreated, or if the Pub/Sub topic is missing it is suggested to delete the trigger and re-create it.\u003c/p\u003e\n"],["\u003cp\u003eEven if the Cloud Run service is down, Pub/Sub retains events and retries delivery, offering a seven-day window to resolve the service issues, but further support can be found in their contact channels.\u003c/p\u003e\n"]]],[],null,["# Troubleshoot Eventarc for Cloud Run\n\n[Standard](/eventarc/standard/docs/overview)\n\nThis page shows you how to resolve issues that you might encounter when using\nEventarc for Cloud Run.\n\nFor other issues that you might also encounter, refer to troubleshooting for:\n\n- [Issues common to all destinations](/eventarc/docs/troubleshooting)\n- [Eventarc for GKE](/eventarc/standard/docs/gke/troubleshooting)\n- [Eventarc for Workflows](/eventarc/standard/docs/workflows/troubleshoot)\n\nCloud Run service is not receiving events\n-----------------------------------------\n\nIf a service is not receiving events, the following resolutions might help: \n\n### Cloud Audit Logs events\n\n- Check that **Admin Read** , **Data Read** , and **Data Write** access is enabled for the service's audit logs.\n\n [Go to Audit Logs](https://console.cloud.google.com/iam-admin/audit)\n- Check that enough time has elapsed since creating the trigger. It can take up to two minutes before the trigger is functional.\n- Follow the [prerequisites](/eventarc/standard/docs/run/create-trigger-cloud-audit-logs-gcloud#before-you-begin) for Eventarc trigger creation.\n- Check that your event filters are not too restrictive. For more information, see [event filters for\n Cloud Audit Logs](/eventarc/docs/determining-filters-cal).\n- Confirm that the monitored service is generating audit logs through the **Logs Explorer** .\n\n [Go to Logs Explorer](https://console.cloud.google.com/logs/query)\n- Check the Cloud Run logs on the **Cloud Run** page:\n\n [Go to Cloud Run](https://console.cloud.google.com/run)\n Click the service you created in Cloud Run and navigate to the **Logs** tab. If the logs show that the service received a non-OK status code, the Cloud Run service is rejecting events.\n\n### Pub/Sub messages\n\n- Confirm that the Eventarc trigger is created.\n- Confirm that the Pub/Sub topic is created and attached to the Eventarc trigger.\n- Check that the Pub/Sub topic exists: Go to **Pub/Sub** and search for the topic.\n- Check that enough time has elapsed since creating the trigger. It can take up to two minutes before the trigger is functional.\n- Check the Cloud Run logs on the **Cloud Run** page.\n\n [Go to Cloud Run](https://console.cloud.google.com/run)\n Click the service you created in Cloud Run and navigate to the **Logs** tab. If the logs show that the service received a non-OK code, the Cloud Run service is rejecting events.\n\nTrigger is set, but target does not receive events\n--------------------------------------------------\n\n- Check that the event payload you are sending does not exceed the limits on [event size\n (512KB)](/eventarc/docs/quotas). The Pub/Sub push subscriptions\n are also subject to a set of [resource limits](/pubsub/quotas#resource_limits) such\n as throughput per publish region. This makes sure that the\n Pub/Sub event payload is less than 512KB.\n\n- Locate the Pub/Sub topic associated with the Cloud Run\n trigger.\n\n 1. Go to **Pub/Sub** \\\u003e **Topics**.\n\n\n [Go to Topics](https://console.cloud.google.com/cloudpubsub/topic/list)\n\n \u003cbr /\u003e\n\n 2. Verify that the Pub/Sub topic name includes the name of the created trigger.\n\n- [Monitor](/pubsub/docs/monitoring#monitoring_forwarded_undeliverable_messages)\n if messages are published to the topic with the metric: `topic/send_message_operation_count`.\n If messages are not published to the topic, check [Cloud Audit Logs](/logging/docs/audit#viewing_audit_logs)\n and make sure the monitored service is emitting logs. If logs are recorded\n but events are not delivered, [contact support](/eventarc/docs/getting-support).\n\n- [Monitor](/pubsub/docs/monitoring#monitoring_push_subscriptions) if messages\n are pushed successfully with the metric: `subscription/push_request_count`\n by `response_code`. If push errors are reported, check the\n Cloud Run service logs. If the receiving endpoint returns a\n non-OK status code, it indicates that the Cloud Run code is\n not working as expected and you must [contact support](/eventarc/docs/getting-support).\n\nCannot find your Pub/Sub topic\n------------------------------\n\nThe Pub/Sub topic could have been removed or modified. A new\nPub/Sub topic is created when you create a trigger, so\n[delete the existing trigger](/eventarc/docs/managing-triggers#trigger-delete)\nand [create it](/eventarc/standard/docs/run/route-trigger-cloud-pubsub) again.\n\nINVALID_ARGUMENT service does not exist error message\n-----------------------------------------------------\n\nIf you receive an `INVALID_ARGUMENT: cloud run service \"SERVICE_NAME\" in region\n\"REGION_NAME\" does not exist` error message, the service account has been\ndeleted. Events will not be delivered to Cloud Run if the\nservice account for the target service is deleted. Create a new\n[Cloud Run service account](/eventarc/standard/docs/run/quickstart#event-receiver).\n\nCloud Run service is down\n-------------------------\n\nEven if the Cloud Run service is down, Pub/Sub\nretains events for seven days by default and will retry sending events to the\ntarget. For more information on Pub/Sub resource limits,\nsee [Quotas and limits](/pubsub/quotas#resource_limits).\n\nRelated information\n-------------------\n\n- To learn more about Eventarc, see the [overview](/eventarc/standard/docs/overview).\n- For a tutorial on Eventarc troubleshooting, see [Debug a Cloud Run service using Eventarc](/eventarc/standard/docs/run/debugging-events-cloud-run).\n- To get additional help, see [Get support](/eventarc/docs/getting-support)."]]