question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

server closed unexpectedly while running on Azure.

See original GitHub issue

Is this a bug report or a feature request? Bug report

If this is a bug report, please provide as much info as possible

  • version "start-server-and-test": "^1.11.0",
  • platform Microsoft Azure
  • expected behavior Run a Cypress test on a Azure environment
  • actual behavior server closes unexpectedly
lerna success exec Executed command in 1 package: "yarn start --all-apps"
Error: server closed unexpectedly
    at ChildProcess.onClose (D:\a\1\s\node_modules\start-server-and-test\src\index.js:69:14)
    at ChildProcess.emit (events.js:209:13)
    at ChildProcess.cp.emit (D:\a\1\s\node_modules\start-server-and-test\node_modules\cross-spawn\lib\enoent.js:34:29)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
##[error]Cmd.exe exited with code '1'.
Finishing: Run Cypress testsk

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dominikwilkowskicommented, Jul 4, 2020

I have the same issue in CircleCI: https://app.circleci.com/pipelines/github/dominikwilkowski/bronzies/122/workflows/aafbb9bc-9d96-4836-8204-2c03a545d5c0/jobs/247 (Also using CRA)

Seems related. What’s curious though is that when I ssh into the instance and run the same command that fails in ci, it runs without issues suggesting that the ssh session keeps something alive that’s otherwise shutdown in ci.

0reactions
samlucaxcommented, Sep 13, 2020

Related #250

Read more comments on GitHub >

github_iconTop Results From Across the Web

Start-server-and-test "server closed unexpectedly"
I'm using the start-server-and-test package to start a server on my Azure pipeline to run Cypress. This is the yarn command I use...
Read more >
Error message "The server unexpectedly closed the connection"
The error message that you're getting is usually caused by the server not being able to run some processes to support your session....
Read more >
SFTP/FTP Issue on azure server - MSDN - Microsoft
I am getting error 'Server unexpectedly closed network connection' when I use Putty through Windows 10. Using winSCP
Read more >
Troubleshoot SSH connection issues to an Azure VM
How to troubleshoot issues such as 'SSH connection failed' or 'SSH connection refused' for an Azure VM running Linux.
Read more >
psycopg2.OperationalError: server closed the connection ...
OperationalError : server closed the connection unexpectedly. I tried setting up odoo and postgres containers in azure using docker-compose, when ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found