aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

[Bug] Unable to start local test validator using Docker

Open leofisG opened this issue 3 years ago • 7 comments
trafficstars

🐛 Bug

I was following the guide here. However, I am getting the following error:

Attaching to aptos_local_validator-faucet-1, aptos_local_validator-validator-1
aptos_local_validator-validator-1  | qemu: uncaught target signal 11 (Segmentation fault) - core dumped
aptos_local_validator-faucet-1     | Validator has not populated mint.key yet. Is it running?

To reproduce

I ran the following command with docker daemon started:

mkdir aptos_local_validator && cd aptos_local_validator
wget https://raw.githubusercontent.com/aptos-labs/aptos-core/main/docker/compose/validator-testnet/docker-compose.yaml
wget https://raw.githubusercontent.com/aptos-labs/aptos-core/main/docker/compose/validator-testnet/validator_node_template.yaml
docker-compose up

Code snippet to reproduce

# Your code goes here
# Please make sure it does not require any external dependencies

Stack trace/error message

Attaching to aptos_local_validator-faucet-1, aptos_local_validator-validator-1
aptos_local_validator-validator-1  | qemu: uncaught target signal 11 (Segmentation fault) - core dumped
aptos_local_validator-faucet-1     | Validator has not populated mint.key yet. Is it running?

Expected Behavior

System information

Please complete the following information:

  • Macbook Pro M1 Max

Additional context

ruyisu#5492 is also able to reproduce.

leofisG avatar Jul 01 '22 06:07 leofisG

Yeah node docker image doesn't work on M1 chip, this is a known issue unfortunately haven't resolved yet.

sherry-x avatar Jul 01 '22 06:07 sherry-x

I also tried compiling from source, it doesn't seem to work either. It keeps giving me bus error. Is there any workaround that I can use? @sherry-x

leofisG avatar Jul 01 '22 07:07 leofisG

Compiling should work, I’m on M1 chip and I can compile source with no problem. Maybe you can share the errors

sherry-x avatar Jul 01 '22 07:07 sherry-x

I can compile with no issue, but I can't run the local validator.

Here is the error that I am seeing:

[1]    16585 bus error  CARGO_NET_GIT_FETCH_WITH_CLI=true cargo run -p aptos-node -- --test

The compilation produces a binary, but the execution of the binary is throwing me this error.

leofisG avatar Jul 01 '22 07:07 leofisG

Validator has not populated mint.key yet. Is it running? happens to me too for the docker-compose setup on both a Debian VM as well as a Macbook Pro (Intel).

hubert-da avatar Jul 26 '22 14:07 hubert-da

On the other hand, aptos node run-local-testnet --with-faucet hangs on Aptos is running, press ctrl-c to exit without starting the faucet.

hubert-da avatar Jul 26 '22 14:07 hubert-da

Managed to run aptos node run-local-testnet --with-faucet with the latest CLI version (0.2.2):

Faucet is running.  Faucet endpoint: 0.0.0.0:8081

hubert-da avatar Jul 29 '22 08:07 hubert-da