firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

Deployment error: yarn_install is likely not on the path

Open bjornbjorn opened this issue 8 years ago • 16 comments

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.

bjornbjorn avatar Oct 17 '18 13:10 bjornbjorn

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.

ahmadalibaloch avatar Oct 17 '18 13:10 ahmadalibaloch

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"}

Robula avatar Oct 17 '18 14:10 Robula

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?

jpreynat avatar Oct 17 '18 15:10 jpreynat

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.

individual8 avatar Oct 17 '18 15:10 individual8

I reported issue above and I am on Firebase 5.0.1, did no update etc.

ahmadalibaloch avatar Oct 17 '18 16:10 ahmadalibaloch

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.

mrnagydavid avatar Oct 17 '18 18:10 mrnagydavid

Yes @mrnagydavid, this is happening to us with [email protected] too with no other changes of our configuration.

jpreynat avatar Oct 17 '18 18:10 jpreynat

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.

mbleigh avatar Oct 17 '18 19:10 mbleigh

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.

mbleigh avatar Oct 17 '18 19:10 mbleigh

I deleted yarn.lock and it is working now.

ahmadalibaloch avatar Oct 17 '18 19:10 ahmadalibaloch

Status page post: https://status.firebase.google.com/incident/Functions/18038

jhuleatt avatar Oct 17 '18 22:10 jhuleatt

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

jpreynat avatar Oct 18 '18 08:10 jpreynat

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]

gaeldestrem avatar Oct 18 '18 12:10 gaeldestrem

I'm managing to deploy functions to us-central, but it's taking about 6 mins for a single function.

miketrebilcock avatar Oct 18 '18 13:10 miketrebilcock

But the deployed (https) function doesn't seem to be able to return a response.

miketrebilcock avatar Oct 18 '18 13:10 miketrebilcock

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.

kevinajian avatar Oct 22 '18 20:10 kevinajian