Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

ERROR: Port 8888 is already in use #4789

Closed
devgg opened this issue Jul 22, 2018 · 3 comments
Closed

ERROR: Port 8888 is already in use #4789

devgg opened this issue Jul 22, 2018 · 3 comments
Assignees
Labels

Comments

@devgg
Copy link

devgg commented Jul 22, 2018

I ran

/usr/local/bin/mongod -f /usr/local/etc/mongod.conf &
        cd /Users/flo/projects/eos/build; make test

with ctest --output-on-failure and get the following failures:

35/41 Test #35: distributed-transactions-test ........   Passed   78.59 sec
      Start 36: restart-scenarios-test-resync
36/41 Test #36: restart-scenarios-test-resync ........***Failed    0.58 sec
libc++abi.dylib: terminating with uncaught exception of type fc::eof_exception
libc++abi.dylib: terminating with uncaught exception of type fc::eof_exception
  File "/Users/flo/projects/eos/build/tests/restart-scenarios-test.py", line 74, in <module>
    errorExit("Failed to stand up eos cluster.")
 BEGIN
 UTC time: 2018-07-22 16:41:03.476180
 EOS Client version: 75635168
 Processor: i386
 OS name: Darwin-17.4.0-x86_64-i386-64bit
 cmd: programs/eosio-launcher/eosio-launcher -k 9
 cmd: pkill -9 nodeos
 cmd: pkill -9 keosd
producing nodes: 4, topology: mesh, delay between nodes launch(seconds): 1, chain sync strategy: resync
Stand up cluster
  Checking if port 8888 is available.
  ERROR: Port 8888 is already in use
 ERROR: Another process is listening on nodeos default port.
 ERROR: Failed to stand up eos cluster.
 Test failed.
   =================================================================
   Contents of etc/eosio/node_bios/config.ini:
   File etc/eosio/node_bios/config.ini not found.
   =================================================================
   Contents of var/lib/node_bios/stderr.txt:
   File var/lib/node_bios/stderr.txt not found.
  =================================================================
 == Errors see above ==
 Shut down the cluster.
  cmd: programs/eosio-launcher/eosio-launcher -k 9
  cmd: pkill -9 nodeos
 Shut down the wallet.
  cmd: pkill -9 keosd

      Start 37: restart-scenarios-test-hard_replay
37/41 Test #37: restart-scenarios-test-hard_replay ...   Passed  161.53 sec
      Start 38: restart-scenarios-test-none
38/41 Test #38: restart-scenarios-test-none ..........***Failed    0.78 sec
libc++abi.dylib: terminating with uncaught exception of type fc::eof_exception
libc++abi.dylib: terminating with uncaught exception of type fc::eof_exception
  File "/Users/flo/projects/eos/build/tests/restart-scenarios-test.py", line 74, in <module>
    errorExit("Failed to stand up eos cluster.")
 BEGIN
 UTC time: 2018-07-22 16:43:45.898677
 EOS Client version: 75635168
 Processor: i386
 OS name: Darwin-17.4.0-x86_64-i386-64bit
 cmd: programs/eosio-launcher/eosio-launcher -k 9
 cmd: pkill -9 nodeos
 cmd: pkill -9 keosd
producing nodes: 4, topology: mesh, delay between nodes launch(seconds): 1, chain sync strategy: none
Stand up cluster
  Checking if port 8888 is available.
  ERROR: Port 8888 is already in use
 ERROR: Another process is listening on nodeos default port.
 ERROR: Failed to stand up eos cluster.
 Test failed.
   =================================================================
   Contents of etc/eosio/node_bios/config.ini:
   File etc/eosio/node_bios/config.ini not found.
   =================================================================
   Contents of var/lib/node_bios/stderr.txt:
   File var/lib/node_bios/stderr.txt not found.
  =================================================================
 == Errors see above ==
 Shut down the cluster.
  cmd: programs/eosio-launcher/eosio-launcher -k 9
  cmd: pkill -9 nodeos
 Shut down the wallet.
  cmd: pkill -9 keosd

      Start 39: validate_dirty_db_test
39/41 Test #39: validate_dirty_db_test ...............   Passed    2.83 sec
      Start 40: nodeos_sanity_lr_test
40/41 Test #40: nodeos_sanity_lr_test ................   Passed    2.43 sec
      Start 41: nodeos_voting_lr_test
41/41 Test #41: nodeos_voting_lr_test ................***Failed    0.33 sec
libc++abi.dylib: terminating with uncaught exception of type fc::eof_exception
libc++abi.dylib: terminating with uncaught exception of type fc::eof_exception
 BEGIN
 UTC time: 2018-07-22 16:43:51.615078
 EOS Client version: 75635168
 Processor: i386
 OS name: Darwin-17.4.0-x86_64-i386-64bit
 cmd: programs/eosio-launcher/eosio-launcher -k 9
 cmd: pkill -9 nodeos
Stand up cluster
  Checking if port 8888 is available.
  ERROR: Port 8888 is already in use
 ERROR: Another process is listening on nodeos default port.
 FAILURE - launcher
 ERROR: Failed to stand up eos cluster.
 Test failed.
   =================================================================
   Contents of etc/eosio/node_bios/config.ini:
   File etc/eosio/node_bios/config.ini not found.
   =================================================================
   Contents of var/lib/node_bios/stderr.txt:
   File var/lib/node_bios/stderr.txt not found.
  =================================================================
 == Errors see above ==
 Shut down the cluster.
  cmd: programs/eosio-launcher/eosio-launcher -k 9
  cmd: pkill -9 nodeos
 Shut down the wallet.
  cmd: pkill -9 keosd


93% tests passed, 3 tests failed out of 41

Label Time Summary:
long_running_tests    =   2.77 sec*proc (2 tests)

Total Test time (real) = 1138.73 sec

The following tests FAILED:
	 36 - restart-scenarios-test-resync (Failed)
	 38 - restart-scenarios-test-none (Failed)
	 41 - nodeos_voting_lr_test (Failed)
Errors while running CTest
make: *** [test] Error 8

I checked if anything is listening on port 8888 by running sudo lsof -i :8888 but the result is empty.

So I re-ran the tests and executed sudo lsof -i :8888 during test 33 and got the following output:

COMMAND   PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
nodeos  46466  flo   21u  IPv4 0x25cc7f5778ad9dad      0t0  TCP localhost:ddi-tcp-1 (LISTEN)

So it seems like the port is available and the error lies somewhere else.

Help would be appreciated :).

@CurtB
Copy link

CurtB commented Aug 9, 2018

Im having the same issue

@hernanarber
Copy link

Same Issue Here:

38/46 Test #38: restart-scenarios-test-resync ........***Failed 0.33 sec
libc++abi.dylib: terminating with uncaught exception of type fc::eof_exception
libc++abi.dylib: terminating with uncaught exception of type fc::eof_exception
File "/Volumes/DATA/DEV/EOS/EOSIO/eos/build/tests/restart-scenarios-test.py", line 69, in
errorExit("Failed to stand up eos cluster.")
BEGIN
UTC time: 2018-08-26 15:20:01.486078
EOS Client version: 2ad4127
Processor: i386
OS name: Darwin-17.7.0-x86_64-i386-64bit
cmd: programs/eosio-launcher/eosio-launcher -k 9
cmd: pkill -9 nodeos
cmd: pkill -9 keosd
producing nodes: 4, topology: mesh, delay between nodes launch(seconds): 1, chain sync strategy: resync
Stand up cluster
Checking if port 8888 is available.
ERROR: Port 8888 is already in use
ERROR: Another process is listening on nodeos default port.
ERROR: Failed to stand up eos cluster.
Test failed.

PLEASE HELP.... It Happens with multiple Test Scenarios

@jgiszczak
Copy link
Contributor

This is caused by attempting to run the tests while something is already occupying the port nodeos wants to use. Very likely there is already a nodeos running. You must shut it down before the tests can be run.

@halsaphi halsaphi closed this as completed Nov 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants