Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Timeout on deploying firebase files

I have a simple static HTML and CSS website, a total of 19 files, when I use firebase deploy for the first time it uploads all files except 3 (which I don't know what are they), and then I use firebase deploy again and I get this error with a timeout

Error: Task 746db75fe2e30f7db8e598da508ea0151037c4fa9ee122daec252dc18fbb8662 failed: retries exhausted after 6 attempts, with error: Timeout reached making request to https://upload-firebasehosting.googleapis.com/upload/sites/xxxx/versions/0e578bbd3fa0f905/files/746db75fe2e30f7db8e598da508ea0151037c4fa9ee122daec252dc18fbb8662

My version of firebase is 10.0.1
My Node version is 17.3.0

like image 558
xFranko Avatar asked Oct 27 '25 10:10

xFranko


1 Answers

I had a (not quite the same but) similar error while trying to deploy firebase functions and hosting in WSL2. I tried to install different firebase-tools versions, and logout then login again, nothing works.

It turns out that the WSL2 DNS issue caused this problem.

So if you're deploying firebase behind WSL2 try this (credit):

1. Create a file: /etc/wsl.conf.
2. Put the following lines in the file
[network]
generateResolvConf = false
3. In a cmd window, run wsl --shutdown
4. Restart WSL2
5. Create a file: /etc/resolv.conf. If it exists, replace existing one with this new file.
6. Put the following lines in the file
nameserver 8.8.8.8

If /etc/resolv.conf is deleted every you restart WSL2, and you're on Windows 11, add these lines to the end of the above /etc/wsl.conf file.

[boot]
command = "printf 'nameserver 8.8.8.8\nnameserver 4.4.4.4' > /etc/resolv.conf"
like image 188
Trung Tròn Trịa Avatar answered Oct 29 '25 07:10

Trung Tròn Trịa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!