Skip to content
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

Can’t run more than one development server #1043

Open
supermueller opened this issue May 26, 2021 · 6 comments
Open

Can’t run more than one development server #1043

supermueller opened this issue May 26, 2021 · 6 comments
Labels

Comments

@supermueller
Copy link

After updating Fractal to v1.5.8 it isn’t possible anymore to run more than one development server (Error: listen EADDRINUSE: address already in use :::3000). Before the update starting a second server automatically increments the port.

Steps to reproduce the issue

  1. Start a development server using fractal start.
  2. In a different project start a development server using fractal start.
  3. You will get an error message: Error: listen EADDRINUSE: address already in use :::3000

Reproduces how often:

This will happen every time; but if you use fractal start --sync the second server starts with an automatically incremented port.

Context

  • Fractal version: v1.5.8
  • Node version: v14.16.0
  • OS: MacOS 11.2.3
@LeBenLeBen
Copy link
Member

Relates to #713

@mihkeleidast
Copy link
Member

Not sure it relates to #713 - that change was released a while ago. What version of Fractal did you update from?

In this repository, if I try to start two of the projects in the examples directory without sync, the first one starts on port 3000 and the second on port 3001. So I'm afraid I can't reproduce this right now without more info.

Looking at sindresorhus/get-port#31, we already specify host so it would always look at IPv4 ports. Not sure what else we can do here.

@supermueller
Copy link
Author

@mihkeleidast If have updated fractal from version 1.5.0. If I try to setup fractal using the handlebars example (https://github.com/frctl/fractal/tree/main/examples/handlebars), I get en error when running npm install, so I can’t test it with a „clean“ project.

@mihkeleidast
Copy link
Member

What error? The handlebars example is not meant to be installed standalone, as it depends on private packages only existing in this repository - but you should be able to do:

  1. npm ci
  2. npm run bootstrap
  3. Then go to the handlebars/nunjucks etc directory to start Fractal.

@supermueller
Copy link
Author

supermueller commented May 28, 2021

What error? The handlebars example is not meant to be installed standalone, as it depends on private packages only existing in this repository - but you should be able to do:

  1. npm ci
  2. npm run bootstrap
  3. Then go to the handlebars/nunjucks etc directory to start Fractal.

Thanks for the help with this.

I have tested to start two Fractal development servers as you described above and still got the error message that the address is already in use.

@mihkeleidast
Copy link
Member

Update: sindresorhus/get-port#56 got merged today, but the module is now also full ESM, which makes it hard to update for us :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants