-
Notifications
You must be signed in to change notification settings - Fork 95
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
Times out in Github Action #287
Comments
Can you enable https://github.com/bahmutov/start-server-and-test#debugging and paste the debug log during pinging the server? |
Here is my log. Again though, this works perfectly fine locally.
|
Im having a similar issue in Gitlab ci. Works locally but not in pipeline, even though server is definitely up its not getting past the check |
From the debug log I see 500 server error, why would that happen?
making HTTP(S) head request to url:http://localhost:8080 ...
HTTP(S) error for http://localhost:8080 Error: Request failed with status code 500
…Sent from my iPhone
On Nov 22, 2020, at 10:40, Marsunpaisti ***@***.***> wrote:
Im having a similar issue in Gitlab ci. Works locally but not in pipeline, even though server is definitely up its not getting past the check
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Im just getting this on repeat with debug output on... However localhost:8081 should be responding, just not doing it for the script for some reason |
Any movement on this? I'm having a similar issue with Gitlab pipeline:
|
Honestly I have not seen this error in my repos, if anyone gets blocked by this and can debug it, I would be super happy
…Sent from my iPhone
On Jan 8, 2021, at 17:13, edward-morgan-avalara ***@***.***> wrote:
Any movement on this? I'm having a similar issue with Gitlab pipeline:
2021-01-08T21:54:28.774Z start-server-and-test parsing CLI arguments: [ 'start', 'http-get://172.17.0.3:3000', 'cy:run' ]
2021-01-08T21:54:28.776Z start-server-and-test parsed args: { services: [ { start: 'npm run start', url: [Array] } ], test: 'npm run cy:run' }
1: starting server using command "npm run start"
and when url "[ 'http-get://172.17.0.3:3000' ]" is responding with HTTP status code 200
running tests using command "npm run cy:run"
2021-01-08T21:54:28.778Z start-server-and-test single service "npm run start" to run and test
2021-01-08T21:54:28.779Z start-server-and-test starting server with command "npm run start", verbose mode? true
2021-01-08T21:54:28.787Z start-server-and-test starting waitOn [ 'http-get://172.17.0.3:3000' ]
2021-01-08T21:54:28.787Z start-server-and-test wait-on options { resources: [ 'http-get://172.17.0.3:3000' ], interval: 2000, window: 1000, timeout: 300000, verbose: true, strictSSL: false, log: true }
waiting for 1 resources: http-get://172.17.0.3:3000
making HTTP(S) get request to url:http://172.17.0.3:3000 ...
HTTP(S) error for http://172.17.0.3:3000 Error: connect ECONNREFUSED 172.17.0.3:3000
> ***@***.*** start /builds/orl/customer-portal-ui
> react-scripts start
making HTTP(S) get request to url:http://172.17.0.3:3000 ...
HTTP(S) error for http://172.17.0.3:3000 Error: connect ECONNREFUSED 172.17.0.3:3000
making HTTP(S) get request to url:http://172.17.0.3:3000 ...
HTTP(S) error for http://172.17.0.3:3000 Error: connect ECONNREFUSED 172.17.0.3:3000
ℹ 「wds」: Project is running at http://172.17.0.3/
ℹ 「wds」: webpack output is served from
ℹ 「wds」: Content not from webpack is served from /builds/orl/customer-portal-ui/public
ℹ 「wds」: 404s will fallback to /
Starting the development server...
making HTTP(S) get request to url:http://172.17.0.3:3000 ...
making HTTP(S) get request to url:http://172.17.0.3:3000 ...
making HTTP(S) get request to url:http://172.17.0.3:3000 ...```
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I am also getting same time out and I found hack for it to pass on CI but I end up with two Cypresses running which is not good. package.json scripts
first try I did
it worked but I ended up with two cypress tests running, the cypress/github-action default one + my script
the use of If anyone has any pointers, please let me know, I've been on this for a few days now. |
@lleki Did u solve it? I'm experiencing the same issue |
@JosepSalvat No, so What made it tricky was the script to use start-server-test module meant we had to include start-server in same line as cy:run and it ended up duplicating the cypress runs for us. Turns out Cypress Github Action has a Custom Wait-On command and I used that instead of start-server. |
If you have any kind of response (500 in this case), most likely the issue is coming from the server itself that behaves differently on CI. There is also an upstream issue, btw: jeffbski/wait-on#86. You can also try replacing concurrently --kill-others \
'start' \
'wait-on --verbose <url> && test' |
In my case this started to happen both on GitHub CI and locally In my setup I was starting Drupal dev server on Somehow, this worked well until the
To resolve it, I changed the server address from UPD: I'm not so sure that the UPD2: I think the reason was the update of nodejs from v16 to v18. So the main conclusion: |
After upgrade from Node v16 to v18 I ran into the same error with my Firebase Emulator server. I had to switch from
|
Unfortunately, it doesn't work with CRA (create-react-app). |
Can anyone provide a small public repo showing the problem? |
Example repo: https://github.com/abraham/ssat |
I had just solve this problem with pm2. in script section |
Create a new project using this: go to the project: With Node.js v.16.19.0 Cypress will run, but with v.18.13.0 not. |
In my case, |
Node.js https://github.com/cypress-io/github-action#wait-on-with-nodejs-18 These are generic workarounds so they can also be used for It's also worth noting that the original issue from @BenjaminHeath96 is not related to the later issues caused by Node.js 18 and later. |
I am also facing the same issue, locally it works fine but stops working in Jenkins pipeline - fixed it using tcp:PORT Also using Node version 18.17.0 locally as well as on pipeline and changing versions like Node 16 didn't help so maybe its not related to Node version Logs -
|
Fixed the same issue by changing the server hostname from |
I'm still having this issue (but with GitLab CI). In the CI job output, it will time out, see output:
When I manually connect to the Docker container that run the CI job, and curl I'm able to run debug steps if needed |
Bug Report
I am running version
1.11.6
. My server is nodejs, rendering server side EJS templates. I am using Nightwatch for tests. My scripts are:ci: start-server-and-test start http-get://localhost:8080 test:e2e
start: node server.js
"test:e2e": "nightwatch --env default --headless"
Running
npm run ci
works perfectly locally, but when I run in a Github Action pipeline it is timing out. As you can see, I am logging a confirmation that our express server is up and running. I am getting the following error.The text was updated successfully, but these errors were encountered: