Open ghost opened 6 years ago
Computer:aws-node-rest-api-with-dynamodb-and-offline paul$ sudo lsof -PiTCP -sTCP:LISTEN
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
launchd 1 root 12u IPv6 0xf8787fa43b9e13c1 0t0 TCP localhost:8021 (LISTEN)
launchd 1 root 13u IPv4 0xf8787fa43b9e4d21 0t0 TCP localhost:8021 (LISTEN)
launchd 1 root 15u IPv6 0xf8787fa43b9e13c1 0t0 TCP localhost:8021 (LISTEN)
launchd 1 root 16u IPv4 0xf8787fa43b9e4d21 0t0 TCP localhost:8021 (LISTEN)
geth 20144 paul 32u IPv6 0xf8787fa43b464e81 0t0 TCP *:30303 (LISTEN)
geth 20144 paul 46u IPv4 0xf8787fa43ef0ed21 0t0 TCP localhost:8545 (LISTEN)
an example can be executed without running the migration. I am guessing it required readme file update as the offline command is twice. if not then definitely a bug in the example. Hope this helps.
I also hit an error something related to this. As soon as I run Serverless offline start
, I get some outputs pertaining to the start and then this exception:
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 sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:444)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:342)
... 8 more
The curl commands specified in README doesn't work either.
Please LMK if I've made a basic mistake, or if more info is needed.
Steps to reproduce: