Builds failing with "invoke-rc.d: policy-rc.d denied execution of restart."


Our Jet-based builds started failing today with no changes on our part. We’re using codeship/google-cloud-deployment:latest as our base image.

Our builds are failing very early in the process, before it gets to our build script with the error “invoke-rc.d: policy-rc.d denied execution of restart.”

Is anyone else seeing this?


UPDATE: It looks like this error was a red herring. It happens in both our successful and failing builds… it just happens to be the last thing that looked like an error printed to the log by Codeship.

It looks like there was actually some kind of blip starting the process of building our image and no real error was printed. The logs just stopped after “activating service account credentials” with the message “2017-08-17T19:04:36.490ZgcloudStep build running service gcloud failed (1)”