-
Notifications
You must be signed in to change notification settings - Fork 48
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
Flow server error. #138
Comments
more errors |
Closed because duplication of facebook/flow#5919, but this is a really difficult to debug error. |
Not sure if its the same issue so I'm going to leave this open for visibility |
Seeing the same issue in v0.82.0:
In my case, I suspect this to be due to the number of files Flow is trying to parse (running this from the root of a monorepo with 165K files including |
We've been seeing this failure on our CI too.
|
I may be full of it but I think it usually comes from a typo that leads to fatal error parsing flow |
To be clear, it's not consistent for us. Rerunning the workflow on Circle usually does the trick. |
we have the same issue (v0.84). On CircleCI only, never occurs on local machines |
Same here. Never fails on local machines, fails 70% of the time on CircleCI. |
* master: Do not run flow on CI until this is fixed: flow/flow-bin#138 Run one-off flow check instead of starting server/watcher. Upload flow logs to CI
* master: Do not run flow on CI until this is fixed: flow/flow-bin#138 Run one-off flow check instead of starting server/watcher. Upload flow logs to CI Try running flow separately?
* master: Do not run flow on CI until this is fixed: flow/flow-bin#138 Run one-off flow check instead of starting server/watcher. Upload flow logs to CI Try running flow separately?
* master: Do not run flow on CI until this is fixed: flow/flow-bin#138 Run one-off flow check instead of starting server/watcher. Upload flow logs to CI Try running flow separately?
I ran into this issue when another script failed to terminate the flow server once it finished running. In my case, flow-coverage-report was the culprit. |
* master: (64 commits) 🐈 upgrade deps Delist products/versions/plans. Unlisted versions can't be most recent version 🛢 merge migrations 🛢 Add missing migration. 📦 Upgrade github.py Update boto3 from 1.9.57 to 1.9.62 Update cumulusci from 2.2.2 to 2.2.3 Update service_identity from 17.0.0 to 18.1.0 Update channels from 2.1.5 to 2.1.6 Update newrelic from 4.6.0.106 to 4.8.0.110 🛢 Add is_listed boolean to Product/Plan/Version Order Products by Category, then order_key Do not run flow on CI until this is fixed: flow/flow-bin#138 Run one-off flow check instead of starting server/watcher. Upload flow logs to CI Try running flow separately? Separate Flow from ESLint. better? 🐈 Upgrade deps. ...
For those arriving here via google with CI (particularly CircleCI) failures; add the following:
This will stop flow from trying to consume too many virtual CPUs (which CircleCI doesn't actually provide), letting it run to completion without first running out of memory and killing its sub processes. |
Thanks @jesstelford. For circleCI, it also works with |
Summary: Added `max_workers` limit to flow configuration to prevent CircleCI consuming too many resources. Found this solution after investigating CircleCI logs. Where we have similar errors as mentioned in this issue flow/flow-bin#138 with suggested solution.
Summary: Added `max_workers` limit to flow configuration to prevent CircleCI consuming too many resources. Found this solution after investigating CircleCI logs. Where we have similar errors as mentioned in this issue flow/flow-bin#138 with suggested solution.
In my case, I launched flow during {
"scripts": {
"prepublish": "yarn test && yarn build",
"test": "eslint . && flow && jest --coverage --forceExit"
},
} I replaced |
flow/flow-bin#138 (comment) flow/flow-bin#138 (comment) > This will stop flow from trying to consume too many virtual CPUs (which CircleCI doesn't actually provide), letting it run to completion without first running out of memory and killing its sub processes. The log output in CircleCI was: https://circleci.com/gh/bvaughn/react-devtools-experimental/201 ``` #!/bin/bash -eo pipefail yarn flow yarn run v1.10.1 $ /home/circleci/repo/node_modules/.bin/flow Launching Flow server for /home/circleci/repo Spawned flow server (pid=259) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Launching Flow server for /home/circleci/repo Spawned flow server (pid=361) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Launching Flow server for /home/circleci/repo Spawned flow server (pid=464) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Launching Flow server for /home/circleci/repo Spawned flow server (pid=567) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Lost connection to the flow server (0 retries remaining): -Out of retries, exiting! error Command failed with exit code 7. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Exited with code 1 ```
Closing out old issues. This repository is just packaging prebuilt binaries. Please report issues with Flow itself on facebook/flow |
flow/flow-bin#138 (comment) flow/flow-bin#138 (comment) > This will stop flow from trying to consume too many virtual CPUs (which CircleCI doesn't actually provide), letting it run to completion without first running out of memory and killing its sub processes. The log output in CircleCI was: https://circleci.com/gh/bvaughn/react-devtools-experimental/201 ``` #!/bin/bash -eo pipefail yarn flow yarn run v1.10.1 $ /home/circleci/repo/node_modules/.bin/flow Launching Flow server for /home/circleci/repo Spawned flow server (pid=259) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Launching Flow server for /home/circleci/repo Spawned flow server (pid=361) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Launching Flow server for /home/circleci/repo Spawned flow server (pid=464) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Launching Flow server for /home/circleci/repo Spawned flow server (pid=567) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Lost connection to the flow server (0 retries remaining): -Out of retries, exiting! error Command failed with exit code 7. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Exited with code 1 ```
flow/flow-bin#138 (comment) flow/flow-bin#138 (comment) > This will stop flow from trying to consume too many virtual CPUs (which CircleCI doesn't actually provide), letting it run to completion without first running out of memory and killing its sub processes. The log output in CircleCI was: https://circleci.com/gh/bvaughn/react-devtools-experimental/201 ``` #!/bin/bash -eo pipefail yarn flow yarn run v1.10.1 $ /home/circleci/repo/node_modules/.bin/flow Launching Flow server for /home/circleci/repo Spawned flow server (pid=259) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Launching Flow server for /home/circleci/repo Spawned flow server (pid=361) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Launching Flow server for /home/circleci/repo Spawned flow server (pid=464) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Launching Flow server for /home/circleci/repo Spawned flow server (pid=567) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Lost connection to the flow server (0 retries remaining): -Out of retries, exiting! error Command failed with exit code 7. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Exited with code 1 ```
flow/flow-bin#138 (comment) flow/flow-bin#138 (comment) > This will stop flow from trying to consume too many virtual CPUs (which CircleCI doesn't actually provide), letting it run to completion without first running out of memory and killing its sub processes. The log output in CircleCI was: https://circleci.com/gh/bvaughn/react-devtools-experimental/201 ``` #!/bin/bash -eo pipefail yarn flow yarn run v1.10.1 $ /home/circleci/repo/node_modules/.bin/flow Launching Flow server for /home/circleci/repo Spawned flow server (pid=259) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Launching Flow server for /home/circleci/repo Spawned flow server (pid=361) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Launching Flow server for /home/circleci/repo Spawned flow server (pid=464) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Launching Flow server for /home/circleci/repo Spawned flow server (pid=567) Logs will go to /tmp/flow/zShomezScirclecizSrepo.log Monitor logs will go to /tmp/flow/zShomezScirclecizSrepo.monitor_log Lost connection to the flow server (0 retries remaining): -Out of retries, exiting! error Command failed with exit code 7. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Exited with code 1 ```
Issue
Hi All, sorry if I can't help much which the log dump, but I'm trying to run
yarn flow
and getting this issue from the hack workers. Should I crosspost this in https://github.com/facebook/hhvm?Error Dump
Versions
Version of flow-bin: '0.80.0'.
Yarn version: '1.9.4'
The text was updated successfully, but these errors were encountered: