Can't delete or overwrite function that failed to deploy earlier
See original GitHub issueI had an error in a function and when I tried to deploy it, it failed with an error message. I then fixed the error and tried to redeploy, but it would still show me the same error message. So I thought I could delete the function, but it still produces the same error. I even tried to re-deploy with an empty index.js file, to reset it, but it wouldn’t work. The working functions get deleted successfully, but the function that had the error in it, won’t go. I’ll paste the command line output, that should make it clearer what the error is:
$ mv index.js index.bak
$ touch index.js
$ firebase deploy
=== Deploying to 'foo'...
i deploying functions
i functions: ensuring necessary APIs are enabled...
i runtimeconfig: ensuring necessary APIs are enabled...
✔ runtimeconfig: all necessary APIs are enabled
✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
i starting release process (may take several minutes)...
i functions: deleting function bar...
i functions: deleting function foo...
i functions: deleting function fooNew...
⚠ functions[foo]: Deploy Error: Failed to configure trigger GCS Bucket: undefined
✔ functions[bar]: Successful delete operation.
✔ functions[fooNew]: Successful delete operation.
✔ functions: 2 function(s) deployed successfully.
Then if I leave index.js empty and re-run deploy, I get:
$ firebase deploy --only functions
=== Deploying to 'foo'...
i deploying functions
i functions: ensuring necessary APIs are enabled...
i runtimeconfig: ensuring necessary APIs are enabled...
✔ runtimeconfig: all necessary APIs are enabled
✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
i starting release process (may take several minutes)...
i functions: deleting function foo...
⚠ functions[foo]: Deploy Error: Failed to configure trigger GCS Bucket: undefined
No matter how many times I re-run the command, it produces the same output. For some reason it won’t delete the foo function.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Deployment of Azure Function doesn't delete old DLL's ...
we deploy our azure function with ARM Templates. what I have tried so far: this didn't work, ZipDeploy didn't exactly overwrite everything, old...
Read more >Can't deploy cloud functions after deleting old files from artifacts
I deployed both functions yesterday and deleted the files dated before from the bucket. Since then, I'm not able to deploy both functions....
Read more >How do I delete an AWS CloudFormation stack that's stuck in ...
A stack resource has a dependent object or other dependencies that can't be deleted. To resolve this issue, complete the steps in the...
Read more >Top 10 Serverless Deployment Errors (and How to Fix Them)
Select the resource(s) that failed and click Continue update rollback. Once your stack has successfully deleted or rolled back, you can deploy ......
Read more >Deployment history deletions - Azure Resource Manager
Azure Resource Manager automatically deletes deployments from your history as you near the limit. Automatic deletion is a change from past ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I recently had an issue similar to this. I was trying to deploy functions, but the previous deployment was still in process (for like 15 minutes). I tried to delete the functions from the Google Cloud Functions console manually, and the delete process itself then took another 10 minutes. Eventually, they did delete and I was able to re-deploy. I think there was something funky going on, on Google’s end.
After the delete completed successfully, I was able to deploy again without issue.
Try this:
https://foo.app.goo.gl/?link=https://firebasestorage.googleapis.com/v0/b/xxx.appspot.com/o/user-submitted-videos%252path%252Fto%252Fprocessed%252Fvideo.mp4?alt=media