Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Permission 'batch.states.report' denied

I'm submitting a google cloud batch job as service account with roles 

* Batch agent reporter

* Batch job editor

* Logs Writer

The logs show repeated permission errors 

rpc error: code = PermissionDenied desc = Permission 'batch.states.report' denied on 'projects/.../locations/europe-west2/state'. Retrying in 4m28s

There are no updates in the console until the event 

OPERATIONAL INFO no VM has agent reporting correctly within the time window 1080 seconds

appears, 
followed by completion with status

Failed

It looks like there is some permission error connected with the logging, but I think I've set all the permissions described in https://cloud.google.com/batch/docs/troubleshooting

 

3 1 464