-
Notifications
You must be signed in to change notification settings - Fork 959
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
409 error while deploying to Firebase Hosting #2126
Comments
Me too!! |
See https://stackoverflow.com/questions/60699826/firebase-hosting-deploy-error-task-5fc-failed-retries-exhausted-after-6-att |
@khaled6mmd please follow the template. There's a lot of information missing. What OS are you on? What version of firebase-tools are you using? |
same is happening to me, tried deploying several times today and nothing. |
@dalepo can you delete the cache that Hosting deploys use and try again? From the root of your project (likely where |
thanks for responding @bkendall
It seems that it gets stuck on certain files, these are mostly minified js files. Earlier it got stuck on the 64th |
That's super curious. I'm working with some other people to try to figure this out - I'll follow up when I have news. |
windows 10 firebase 8.0.3 problem got solved after changing path to public then dist/project-name |
Tried what @khaled6mmd did but still have the same error today. |
That's super strange that changing the path fixes it. I've been trying to replicate this on a windows machine of my own but besides being kinda slow (old machine? windows node?), I haven't been able to replicate this issue. I see that number of files isn't an issues (7 and 9xx both above). Are either of you uploading a lot of data? (Like, maybe we'll call a lot 10+ MB?) |
Mine is about 7MB |
In my case around 5Mb |
I think it got fixed on the new cli version 8.1.1. |
same hear i deploying hosting my site is 3.64 Mb |
Firebase init
Firebase init |
my case solve when i Firebase init again and again |
Happened again tonight with another project :/ |
I had this problem several times in an older react project, for me, delete .firebase folder solved. But before deploy with build target, i had to deploy with public target and then build. From time to time i keep having this problem, always solved by deleting .firebase folder. |
Is this going to be fixed? I had to revert my hosting apps due to inconsistent file errors, I don't know if this is a problem with the files I upload or the fact that I have to run the command several times to be able to deploy. |
I am running into the same issue, uploading gets stuck at 0%, and fails on some task after 6 attempts. Sometimes it fails for finding the project and doesn't reach uploading step. But it goes through after multiple attempts for running firebase deploy. Is it failing because the request for upload or lookup hits bad instances? |
same error for me also |
1 similar comment
same error for me also |
Changing to public and deploying again worked for me.
firebase init
Set path to public (which was the actual path to my website)
firebase deploy
And it worked.
|
In my case deleting .firebase folder as @bkendall mentioned did the trick |
im also getting a similar error MacOS Big Sur ⠏ hosting: uploading new files [0/1] (0%) i cant deploy my project at all now EDIT: |
It seams to be an Issue with large websites. What helped me was to reduce the size of all images in the assets by factor 4. |
I happen to did a global update for my Then I downgraded my firebase to |
I had the same issue with an existing site that has deployed hundreds of times successfully previously., 409 error with a large .js chunk file generated by webpack. WHAT DIDNT WORK: WHAT SUCCESSFULLY WORKED AROUND THE ISSUE: |
I've been trying all the above tricks and no luck and always stuck at uploading new hosting files. Any new on the serverside fix? |
I did try changing So, I ran
Now in the build folder, I opened up this chunk file to identify the particular file.
Got the idea from kmcnellis(comment) and this pull request |
This is absolutely killing me. I can't deploy new versions of my websites. This should be a first priority issue, not something you may have a fix for sometime this week maybe. |
I have been able to deploy by connecting to a US-based VPN (I am located in Israel). Have no idea why, but it worked. |
This is truly unacceptable! I'm so glad that I abandoned Firebase a long time ago. Unfortunately, I have to maintain one old project - I literally cannot deploy anymore. Great. |
@guybarnard @gbourne1 @ido50 @vidklopcic kmcnellis gave a workaround above, should be fairly simple to do. If you are using a builder, make a change to a file that would trigger the recreation of the problematic file the debug log points to (you may want to use |
For what it's worth, this hack has allowed me to resume daily automated deployments of generated content again:
I know this is very specific to my situation and won't work for everybody 🤷♂️. For me, it's been the same files failing over and over, so once I identified them, I could add them to this list to change their content by adding a trailing space, thus resolving the 409 conflicts that were happening. If you can inject step 2 into your process somewhere before deployment (and if a trailing space isn't destructive to your content), then maybe this can work temporarily. |
Same issue here using v9.10.2 on Ubuntu 20.10. A few takeaways:
I tried installing firebase-tools all the way down to 7.16.2 to see if this was a regression error. No such luck. |
When along with my colleague I tried to deploy build from different machines for the same branch. |
The solution that works for me, I tried this solution on 2 different sites and it worked. It looks like a cache story related to the firebase project... to be continued |
@userJulienMoreau You don't need to go through all that unless there is no way for you to make modifications either directly in the public folder to the file in question or to another file that would trigger your builder (if you're using one) to rebuild and generate new files. Again, see the workaround from kmcnellis above for details and explanation. |
Hey folks, we've rolled out a backend change that we think may address this issue. If you've been experiencing 409 errors while deploying, can you please try again and see if it's working now? Thanks! |
This is fixed now. If you are having deploy errors still, please file a new issue. |
@mbleigh thank you, now it works. |
Works like a charm @mbleigh - Thank you :-) |
Thanks a ton to the team @mbleigh @kmcnellis for this fix 👏 |
And this is error is back again. Absolutely nothing changed in my setup so I suspect firebase server has issues again. @mbleigh @kmcnellis
Second attempt looking even more interesting, because there is no actual upload started
Also for some reason number of the files between first and second try is different while no changes to public folder was made. |
@kmcnellis thanks for quick reply, here is a deploy output with
|
Yup, that's a different issue. Looks like it's probably a timeout during upload due to a large file size or bad network connection. (Though it could also be some sort of server timeout) To keep things clear, let's restrict this thread to the 409 error code issue. Feel free to start another issue, or file a support case at https://firebase.google.com/support. |
@Lauravdearmas That seems to be a different issue. Feel free to open a new issue in this repo and let us know about the details. In the meantime, I'm going to lock this issue since the original 409 error seems resolved. |
whenever I try to deploy my project to new firebase project with
firebase deploy
I get this errorold firebase projects work fine
The text was updated successfully, but these errors were encountered: