-
Notifications
You must be signed in to change notification settings - Fork 913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Unhandled error cleaning up build images." - deploying from same GCP project #4757
Comments
Corrections: It doesn't have to do with I needed to enable Since this is not mentioned in the Firebase docs (I believe), I'll leave this issue open. Let me know if you wish me to edit it.
|
While trying to determine why cloud function that I was working with in the build were not being deployed I found an open issue. firebase/firebase-tools#4757 This change is to update the documentation to reflect the need for not just the Firebase Admin role in the builds, but also the Service Accounts role. Thanks to @akauppi for discovering the issue. It was the same issue I had spent multiple hours trying to figure out.
Thanks @akauppi I created a pull request to update the documentation in the community build repo There should be an update to the firebase tool to print a warning about the service account not having access when that happens. It would be a clearer signal as to the issue. The build did pass when run as a single step
But failed when run as individual steps
This may be an issue inside of the package that it is not capture or checking the exit code of each step. Therefore only the exit code of the last step in the chain is reported to Cloud Build. |
@akauppi |
Hey @zouhirdev - you should be able to see and edit these permissions here: https://console.cloud.google.com/cloud-build/settings/service-account If you are unable to see that page, you might not have the necessary permissions on your project, and should ask a project owner to help you out. |
Hello, I've executed configuration steps mentioned by @joehan, yet I'm still receiving same warning after deployment ( |
[REQUIRED] Environment info
[REQUIRED] Test case
[REQUIRED] Steps to reproduce
skip
[REQUIRED] Expected behavior
Deployment works, since the project has enough access rights.
Firebase would clean up Cloud Function deployment cache, as it aims to do.
[REQUIRED] Actual behavior
Deployment fails.
The cleanup fails.
Here's an excerpt from the log:
The way I read that is that
firebase-tools
first checks that there are enough access rights:..but it then tries to do something that's beyond those rights (delete the earlier cached images).
Screenshot of the cached images
Attempting work-around
I removed the cached images manually, and retried the deployment.
It still fails.
I removed the
user_info_shadow2__
folder, leaving an emptygcf-artifacts
. Retried.It still fails in the same way.
Since there were some artifacts there from earlier runs (7 and 12 days ago), either this is something in 11.3.0 (I upgraded in the mean time), or I may have inadvertently changed some access rights.
More info
Manual deployment works, with
firebase-tools
11.3.0. That is, my access rights (as the owner of the GCP project) are enough.This also used to work, like months back, but I was using Container Registry at the time. I have not done CI deployments since moving to Artifact Registry.
Screenshot of the
gcd-artifacts
folderNote that the deployment region is
europe-west2
, a bit unusual.The text was updated successfully, but these errors were encountered: