AntelopeIO / DUNES

Docker Utilities for Node Execution
Other
26 stars 20 forks source link

Cannot start up a node that is active, but not running #160

Closed mikelik closed 1 year ago

mikelik commented 1 year ago

When we have a node that is active, but not running, it seems we can't start it up.

Example of an issue:

We have node_alpha active, but not running:

mikel@msi:~/repo/DUNE$ ./dune --list
Node Name      | Active? | Running? | HTTP           | P2P          | SHiP          
------------------------------------------------------------------------------------
node_alpha     |    Y    |    N     | 0.0.0.0:8888 | 0.0.0.0:9876 | 0.0.0.0:8080
node_bravo     |    N    |    N     | 0.0.0.0:8888 | 0.0.0.0:9876 | 0.0.0.0:8080
node_charlie   |    N    |    Y     | 0.0.0.0:8888 | 0.0.0.0:9876 | 0.0.0.0:8080

Now let's start node_alpha:

mikel@msi:~/repo/DUNE$ ./dune --start node_alpha
Currently active node [node_alpha] http port is the same as this nodes [node_alpha]
Node [node_alpha] is not running
(...)
info  2023-05-09T11:19:10.452 nodeos    producer_plugin.cpp:1254      plugin_startup       ] Launching block production for 1 producers at 2023-05-09T11:19:10.452.
mikel@msi:~/repo/DUNE$ ./dune --list
Node Name      | Active? | Running? | HTTP           | P2P          | SHiP          
------------------------------------------------------------------------------------
node_alpha     |    Y    |    N     | 0.0.0.0:8888 | 0.0.0.0:9876 | 0.0.0.0:8080
node_bravo     |    N    |    N     | 0.0.0.0:8888 | 0.0.0.0:9876 | 0.0.0.0:8080
node_charlie   |    N    |    Y     | 0.0.0.0:8888 | 0.0.0.0:9876 | 0.0.0.0:8080

From the logs it seems it should be running, but dune --list doesn't show it.

Nodes are taken from test_nodes.py.