Deployment error: yarn_install is likely not on the path
Version info
5.1.1
Platform Information
OSX
Steps to reproduce
Running firebase deploy to deploy the website.
Expected behavior
Website deployed on firebase hosting
Actual behavior
i deploying functions, hosting
i functions: ensuring necessary APIs are enabled...
✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (1.28 MB) for uploading
✔ functions: functions folder uploaded successfully
i hosting[opweb-staging]: beginning deploy...
i hosting[opweb-staging]: found 65 files in public
✔ hosting[opweb-staging]: file upload complete
i functions: updating Node.js 8 function opweb(us-central1)...
⚠ functions[opweb(us-central1)]: Deployment error.
Build failed: {"message": "yarn_install yarn install --production\nexited with error [Errno 2] No such file or directory\nyarn_install is likely not on the path", "code": 1, "type": "INTERNAL_ERROR"}
Functions deploy had errors. To continue deploying other features (such as database), run:
firebase deploy --except functions
Error: Functions did not deploy properly.
error Command failed with exit code 1.
This started coming today for me too for the command firebase deploy --only functions. It looks like there is some issue internally on firebase. I tried both fresh setup on Windows 10 and Ubuntu 18 but same error. I also tried deleting all existing functions from gcloud but still no success.
I've just encountered this error also (using Node 8 engine). I kept trying and eventually it worked.
✔ functions: Finished running predeploy script.
i functions: ensuring necessary APIs are enabled...
✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (102.43 KB) for uploading
✔ functions: functions folder uploaded successfully
i functions: updating Node.js 8 function ******(us-central1)...
⚠ functions[******(us-central1)]: Deployment error.
Build failed: {"message": "yarn_install yarn install --production\nexited with error [Errno 2] No such file or directory\nyarn_install is likely not on the path", "code": 1, "type": "INTERNAL_ERROR"}
Same here. It seems that the infrastructure for cloud functions was updated without prior notice.
We didn't even updated our version of firebase-tools which is still in 4.2.1.
@laurenzlong @mbleigh Any ideas of what's going wrong?
I had issues yesterday too after I updated to 5.1.1. A rollback to 5.0.1. and everything works great again.
I'm using Firebase's RTDB and Hosting.
I reported issue above and I am on Firebase 5.0.1, did no update etc.
Same here since today. Usually none of the functions get deployed, but sometimes a few of them get lucky and they do.
Using bitbucket pipelines, with node:8-alpine and
"devDependencies": {
"firebase-tools": "^4.2.1"
},
That means it affects the CLI prior to version 5.
Yes @mrnagydavid, this is happening to us with [email protected] too with no other changes of our configuration.
This seems like it may be an issue in the Cloud Functions backend that builds the deployed code for release. We're raising the issue internally.
Anyone on this thread -- are you using yarn? Can you try deleting yarn.lock and seeing if that works? Not as a permanent solution, just to help us diagnose.
I deleted yarn.lock and it is working now.
Status page post: https://status.firebase.google.com/incident/Functions/18038
I don't see the error related to yarn anymore, but it seems that the deployment of functions encounters lots of timeout errors.
Here are the logs. These are all different functions, I just hid the names:
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
✔ functions[...(us-central1)]: Successful update operation.
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
✔ functions[...(us-central1)]: Successful update operation.
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
✔ functions[...(us-central1)]: Successful update operation.
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
✔ functions[...(us-central1)]: Successful update operation.
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
✔ functions[...(us-central1)]: Successful update operation.
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
✔ functions[...(us-central1)]: Successful update operation.
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
✔ functions[...(us-central1)]: Successful update operation.
⚠ functions[...(us-central1)]: Deployment error.
Server Error. connect ETIMEDOUT 172.217.19.234:443
Same for me, I don't have errors related to yarn anymore but almost every functions fail with the following message:
⚠ functions[...(us-central1)]: Deployment error.
Operation interrupted
We've not been able to deploy correctly our environments for two days, it starts to become frustrating... We're using [email protected] and [email protected]
I'm managing to deploy functions to us-central, but it's taking about 6 mins for a single function.
But the deployed (https) function doesn't seem to be able to return a response.
Since the original issue with yarn has been resolved, will close this out. Please open a new issue if you're still having deployment problems and we can followup there.
You can check the status of our services at the Firebase Status Dashboard that Jeff linked.