Closed
Description
I already have a node running - if I try to start another then the process exits and no error is printed. I have to use DEBUG
to see the error.
$ DEBUG=* npm start
> [email protected] start /Users/alan/Code/protocol-labs/js-ipfs/examples/custom-ipfs-repo
> node index.js
jsipfs booting +0ms
repo opening at: /tmp/custom-repo/.ipfs +0ms
repo init check +2ms
repo:version comparing version: 7 and 7 +0ms
repo init null { config: true, spec: true, version: undefined } +2ms
repo:lock locking /tmp/custom-repo/.ipfs/repo.lock +0ms
repo aquired repo.lock +4ms
repo creating datastore +0ms
repo creating blocks +0ms
repo creating keystore +1ms
repo all opened +0ms
jsipfs:state -> initializing +0ms
jsipfs init +10ms
jsipfs pre-start +1ms
jsipfs no keychain, use --pass +0ms
jsipfs peer created +13ms
jsipfs Loaded pins from the datastore +12ms
jsipfs:state -> stopped +27ms
jsipfs starting +1ms
jsipfs:state -> starting +0ms
libp2p:switch:dialer create: 8 peer limit, 30000 dial timeout +0ms
libp2p:connection-manager options: {"maxPeers":null,"minPeers":0,"maxData":null,"maxSentData":null,"maxReceivedData":null,"maxEventLoopDelay":null,"pollInterval":2000,"movingAverageInterval":60000,"defaultPeerValue":1,"maxPeersPerProtocol":{}} +0ms
libp2p libp2p is starting +0ms
libp2p:switch:transport adding TCP +0ms
libp2p:switch:transport adding WebSockets +1ms
latency-monitor:LatencyMonitor latencyCheckIntervalMs: 500 dataEmitIntervalMs: 2000 +0ms
latency-monitor:LatencyMonitor Expecting ~0.25 events per summary +1ms
latency-monitor:LatencyMonitor Using process.hrtime for timing +0ms
latency-monitor:LatencyMonitor localData: { deltaOffset: 491, startTime: [ 88806, 946617583 ] } +0ms
libp2p:switch The switch is starting +0ms
libp2p:tcp:listen Listening on 4002 0.0.0.0 +0ms
libp2p:switch:error Error: listen EADDRINUSE: address already in use 0.0.0.0:4002
libp2p:switch:error at Server.setupListenHandle [as _listen2] (net.js:1290:14)
libp2p:switch:error at listenInCluster (net.js:1338:12)
libp2p:switch:error at doListen (net.js:1471:7)
libp2p:switch:error at process._tickCallback (internal/process/next_tick.js:63:19) +0ms
libp2p:error Error: listen EADDRINUSE: address already in use 0.0.0.0:4002
libp2p:error at Server.setupListenHandle [as _listen2] (net.js:1290:14)
libp2p:error at listenInCluster (net.js:1338:12)
libp2p:error at doListen (net.js:1471:7)
libp2p:error at process._tickCallback (internal/process/next_tick.js:63:19) +0ms
Metadata
Metadata
Assignees
Labels
No labels