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

Error "Address already in use" while running example chat server with serverless-offline #148

Closed
tkwong94 opened this issue Jun 19, 2021 · 0 comments

Comments

@tkwong94
Copy link

I am trying to run the example chat sever code with severless-offline but exception occurs, saying the port 8000 is already in use.

Steps to reproduce:

  1. sls dynamodb install
  2. sls dynamodb start
    => Dynamodb Local Started in port 8000
  3. Open another terminal window and run yarn start
    => Error happens, see below for the detailed message

Packages:
"serverless-dynamodb-local": "^0.2.38",
"serverless-offline": "^5.12.1",
"serverless-plugin-offline-dynamodb-stream": "^1.0.19",

Error messages:
Exception in thread "main" java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8000 at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:346) at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:308) at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.server.Server.doStart(Server.java:396) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at com.amazonaws.services.dynamodbv2.local.server.DynamoDBProxyServer.start(DynamoDBProxyServer.java:83) at com.amazonaws.services.dynamodbv2.local.main.ServerRunner.main(ServerRunner.java:76) Caused by: java.net.BindException: Address already in use at java.base/sun.nio.ch.Net.bind0(Native Method) at java.base/sun.nio.ch.Net.bind(Net.java:479) at java.base/sun.nio.ch.Net.bind(Net.java:468) at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:220) at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:88) at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:342) ... 8 more

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

No branches or pull requests

1 participant