Since two weeks, we have been having multiple intermittent build failures with the following error while trying to install Firebase CLI from firebase.tools.
#!/bin/bash --login -eo pipefail curl -sL firebase.tools | bash
Exited with code exit status 7
CircleCI received exit code 7
It’s worth sharing that re-running the build goes through without issues. So wanted to check if the team is aware of this or anyone has been facing this already.
Exited with code exit status 28
CircleCI received exit code 28
-- Checking for existing firebase-tools on PATH...
-- Checking your machine type...
-- Downloading binary from https://firebase.tools/bin/macos/latest
curl: (28) Failed to connect to firebase.tools port 443 after 75009 ms: Operation timed out
-- Setting permissions on binary...
chmod: /usr/local/bin/firebase: No such file or directory
bash: line 255: /usr/local/bin/firebase: No such file or directory
Something went wrong, firebase has not been installed.
Please file a bug with your system information on Github.
https://github.com/firebase/firebase-tools/
-- All done!
Exited with code exit status 1
CircleCI received exit code 1
Update from me:
In our company, we’re able to solve the issue by using plugin gem 'fastlane-plugin-firebase_app_distribution' in our fastlane/Pluginfile (we’re using Fastlane anw), and remove the step for curl firebase-tools .. above
It looks like we had a mix of both approaches in our setup. We fixed this issue by only keeping the way of using the fastlane-plugin-firebase_app_distribution fastlane plugin instead of installing the firebase.tools directly via curl.
I got an update from the macOS team and seems like the issues is only happening when using curl and it seems like using wget never fails. We are still continuing to investigate why using curl fails but as for a workaround I would recommend to try wget.
One note: wget is not pre installed so you would need to download with the command brew install wget which takes about a minute to download. We are working to add wget to be preinstalled.