TRIGGER: ID pemicu atau ID yang memenuhi syarat sepenuhnya.
LOCATION: lokasi pemicu Eventarc.
Gunakan konsol Google Cloud untuk
memantau
apakah pesan dipublikasikan ke topik Pub/Sub dengan
metrik: topic/send_message_operation_count.
Jika pesan tidak dipublikasikan ke topik Pub/Sub, pastikan sumber membuat peristiwa:
Untuk peristiwa dari Cloud Audit Logs, periksa
log
dan pastikan layanan yang dipantau menulis log. Jika log dicatat, tetapi peristiwa tidak dikirim, hubungi dukungan.
Untuk peristiwa dari Cloud Storage, periksa notifikasi untuk bucket Anda:
gcloud storage buckets notifications list gs://BUCKET_NAME
Ganti BUCKET_NAME dengan nama bucket.
Outputnya akan mirip dengan berikut ini:
NOTIFICATION_CONFIG_ID: ID konfigurasi notifikasi.
Jika peristiwa dikirim, tetapi tidak ada eksekusi alur kerja yang dipicu, kemungkinan hal ini disebabkan oleh pemanggilan yang tidak diautentikasi. Pastikan pemicu dikaitkan dengan akun layanan yang memiliki izin untuk membuat eksekusi alur kerja. Untuk mengetahui informasi selengkapnya, ikuti petunjuk untuk membuat
akun layanan yang dikelola pengguna di bagian "Bersiap membuat pemicu"
saat membuat pemicu untuk
penyedia, jenis peristiwa, dan tujuan Workflows tertentu
.
Jika pesan dipublikasikan ke topik Pub/Sub, tetapi tidak ada eksekusi alur kerja yang dipicu, pastikan payload Eventarc tidak lebih dari 512 KB. Untuk mengetahui informasi selengkapnya tentang batas resource, lihat Kuota dan Batas.
Jika ada pesan yang belum dikonfirmasi, pantau log alur kerja untuk metode
TriggerPubsubExecution.
Untuk mengetahui informasi selengkapnya tentang cara melihat log alur kerja, lihat Melihat log alur kerja.
Gunakan filter Permission 'workflows.executions.create' denied
untuk memverifikasi apakah pemicu dikaitkan dengan akun layanan yang memiliki
izin untuk memicu eksekusi alur kerja. Untuk mengetahui informasi selengkapnya tentang cara memberikan peran yang sesuai ke akun layanan, ikuti petunjuk di bagian "Bersiap untuk membuat pemicu" saat membuat pemicu untuk penyedia, jenis peristiwa, dan tujuan Workflows tertentu.
Gunakan kata kunci event size exceeded untuk memverifikasi apakah ukuran peristiwa lebih dari 512 KB.
Jika log dicatat, tetapi peristiwa tidak dikirim, hubungi dukungan.
Informasi terkait
Untuk masalah lain yang khusus untuk Workflows, lihat Memecahkan masalah.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 UTC."],[[["\u003cp\u003eThis document guides you through troubleshooting common issues encountered when using Eventarc for Workflows, focusing on trigger creation failures and event delivery problems.\u003c/p\u003e\n"],["\u003cp\u003eIf trigger creation fails, ensure the target workflow exists, is active, and that the correct workflow ID and location are specified during trigger creation.\u003c/p\u003e\n"],["\u003cp\u003eIf events are not being delivered to the target, consider setting up a Pub/Sub subscription retry policy or a dead-letter topic to prevent message loss, and verify event sources.\u003c/p\u003e\n"],["\u003cp\u003eVerify that the trigger is associated with a service account that has the necessary permissions to create workflow executions if events are delivered but not triggering workflows.\u003c/p\u003e\n"],["\u003cp\u003eIf messages are published to a Pub/Sub topic but no workflow executions are being triggered, make sure the Eventarc payload is not more than 512 KB, and check for unacknowledged messages in the subscription.\u003c/p\u003e\n"]]],[],null,["# Troubleshoot Eventarc for Workflows\n\n[Standard](/eventarc/standard/docs/overview)\n\nThis page shows you how to resolve issues that you might encounter when using\nEventarc for Workflows.\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 Cloud Run](/eventarc/standard/docs/run/troubleshoot)\n- [Eventarc for GKE](/eventarc/standard/docs/gke/troubleshooting)\n\n### Trigger creation fails because workflow target does not exist\n\nYou receive an error message similar to the following: \n\n```\ncloud workflow \"projects/PROJECT_ID/locations/LOCATION/workflows/WORKFLOW_ID\" does not exist\n```\nThis output includes the following values:\n\n\u003cbr /\u003e\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: your Google Cloud project ID\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the location of your workflow\n- \u003cvar translate=\"no\"\u003eWORKFLOW_ID\u003c/var\u003e: the name of your workflow\n\nThis occurs when Eventarc is not able to find the target workflow.\nTo resolve this:\n\n1. Ensure that the target workflow exists and is ACTIVE:\n\n ```bash\n gcloud workflows list --location -\n ```\n\n \u003cbr /\u003e\n\n The output should be similar to the following: \n\n ```\n NAME STATE REVISION_ID UPDATE_TIME\n projects/PROJECT_ID/locations/LOCATION/workflows/WORKFLOW_ID ACTIVE 000004-c0c 2021-11-19T14:29:27.530185556Z\n ```\n\n \u003cbr /\u003e\n\n2. Ensure that you have provided the correct workflow ID and workflow location\n when creating the trigger.\n\n### Trigger is created successfully but target is not receiving events\n\nCheck that enough time has elapsed since creating the trigger. It can take up to\ntwo minutes before events are sent.\n\nIf the trigger still doesn't work and events are not being delivered:\n\n1. Events sent from Pub/Sub to the\n target might be getting dropped. To ensure that events aren't dropped, set up a\n [Pub/Sub subscription retry policy](/pubsub/docs/handling-failures#subscription_retry_policy)\n or [forward undelivered messages to a dead-letter topic](/pubsub/docs/handling-failures#forwarding_to)\n (also known as a *dead-letter queue*).\n\n Before setting the dead-letter topic, retrieve the trigger's topic and\n subscription: \n\n ```bash\n gcloud eventarc triggers describe TRIGGER \\\n --location=LOCATION\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003eTRIGGER\u003c/var\u003e: the ID of the trigger or a fully qualified identifier.\n - \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the location of the Eventarc trigger.\n2. Use the Google Cloud console to\n [monitor](/pubsub/docs/monitoring#monitoring_forwarded_undeliverable_messages)\n if messages are published to the Pub/Sub topic with the\n metric: `topic/send_message_operation_count`.\n\n3. If messages are not being published to Pub/Sub topic, verify that\n the source is generating events:\n\n - For events from Cloud Audit Logs, check the [logs](/eventarc/docs/reference/audit-logs#viewing_logs) and make sure that the monitored service is writing logs. If logs are recorded but events are not delivered, [contact support](/eventarc/docs/getting-support).\n - For events from Cloud Storage, check notifications for your bucket:\n\n ```\n gcloud storage buckets notifications list gs://BUCKET_NAME\n ```\n Replace \u003cvar translate=\"no\"\u003eBUCKET_NAME\u003c/var\u003e with the name of the bucket. \n The output should be similar to the following:\n\n \u003cbr /\u003e\n\n ```\n projects/_/buckets/BUCKET_NAME/notificationConfigs/NOTIFICATION_CONFIG_ID\n Cloud Pub/Sub topic: projects/PROJECT_ID/topics/TOPIC_ID\n Filters:\n Event Types: OBJECT_ARCHIVE\n ```\n\n This output includes the following values:\n - \u003cvar translate=\"no\"\u003eTOPIC_ID\u003c/var\u003e: the ID of the existing Pub/Sub topic.\n - \u003cvar translate=\"no\"\u003eNOTIFICATION_CONFIG_ID\u003c/var\u003e: the ID of the notification configuration.\n4. If events are being delivered but no workflow executions are being triggered,\n this is likely due to an unauthenticated invocation. Ensure that the\n trigger is associated with a service account that has permission to create\n workflow executions. For more information, follow the instructions to create\n a user-managed service account in the \"Prepare to create a trigger\" section\n when creating a trigger for a\n [specific provider, event type, and Workflows destination](/eventarc/standard/docs/event-providers-targets#triggers)\n .\n\n5. If messages are published to a Pub/Sub topic\n but no workflow executions are being triggered, make sure that the\n Eventarc payload is not more than 512 KB. For more\n information on resource limits, see [Quotas and Limits](/workflows/quotas#resource_limit).\n\n 1. In the Cloud console, go to the **Subscriptions** page.\n\n\n [Go to Subscriptions](https://console.cloud.google.com/cloudpubsub/subscription/list)\n\n \u003cbr /\u003e\n\n 2. Monitor unacknowledged messages in the subscription. For more information,\n see [Monitoring forwarded undeliverable messages](/pubsub/docs/monitoring#monitoring_forwarded_undeliverable_messages).\n\n 3. If there are unacknowledged messages, monitor the workflow logs for the\n [`TriggerPubsubExecution` method](/eventarc/docs/reference/supported-events#methodname_119).\n For more information on viewing workflow logs, see [View workflow logs](/workflows/docs/log-workflow#viewing-logs).\n\n - Use the filter `Permission 'workflows.executions.create' denied` to verify if the trigger is associated with a service account that has permission to trigger workflow executions. For more information on how to grant the appropriate roles to the service account, follow the instructions in the \"Prepare to create a trigger\" section when creating a trigger for a [specific provider, event type, and Workflows destination](/eventarc/standard/docs/event-providers-targets#triggers).\n - Use the key word `event size exceeded` to verify if the event size is over 512 KB.\n 4. If logs are recorded but events are not delivered, [contact support](/eventarc/docs/getting-support).\n\nRelated information\n-------------------\n\n- For other issues specific to Workflows, see [Troubleshoot issues](/workflows/docs/troubleshooting).\n- To get additional help, see [Get support](/eventarc/docs/getting-support)."]]