No get logs trigger on uploading files in cloud storage bucket, Testing is successful but not end result.
Tried for Event type: on delete also not working
Logs no error.
Service account permission : added storage admin
Any troubleshooting guide for debugging it. how to get custom values printed into logs
Hi @pushpendrasingh ,
Welcome to Google Cloud Community!
Your Cloud Function (v1) with a custom service account isn’t triggering on Cloud Storage object creation.
This might help you:
-
Verification:
- Check deployment status, region, and bucket name.
- Verify Storage Admin permission for the service account.
-
Code Review:
- Ensure correct handling of StorageObject in your code.
- Use logging (console.log, logging.info) to print object details.
- Use debugging for complex logic.
-
Eventarc Configuration (if applicable):
- Check Eventarc trigger configuration (service account permissions).
-
Logging and Monitoring:
- Enable Cloud Function logs (gcloud functions logs).
- Use Stackdriver Logging or a custom log viewer.
- Consider Cloud Monitoring for tracking invocations and errors.
-
Testing:
- Upload files directly to the bucket for testing.
- Create a test function with a simpler trigger (e.g., HTTP) to isolate the issue.
Additional Tips: