RpcFailure on Run a local network

As per https://developers.libra.org/docs/run-local-network#run-a-local-network, when I do:

cargo run -p libra-swarm -- -s

I either get this:

....
Loading client...

E1112 18:10:11.177134 4645463488 client/src/client_proxy.rs:849] Failed to get account state from validator, error: RpcFailure(RpcStatus { status: RpcStatusCode(3), details: Some("Request failed grpc error: RpcFailure(RpcStatus { status: RpcStatusCode(14), details: Some(\"Name resolution failure\") })") })

Not able to connect to validator at localhost:58601, error RpcFailure(RpcStatus { status: RpcStatusCode(3), details: Some("Request failed grpc error: RpcFailure(RpcStatus { status: RpcStatusCode(14), details: Some(\"Name resolution failure\") })") })

Exit client.

Exit libra-swarm.

or this:

...
Loading client...

E1112 18:04:42.680625 4654986688 client/src/client_proxy.rs:849] Failed to get account state from validator, error: RpcFailure(RpcStatus { status: RpcStatusCode(3), details: Some("Request failed grpc error: RpcFailure(RpcStatus { status: RpcStatusCode(14), details: Some(\"Name resolution failure\") })") })

Not able to connect to validator at localhost:58564, error RpcFailure(RpcStatus { status: RpcStatusCode(3), details: Some("Request failed grpc error: RpcFailure(RpcStatus { status: RpcStatusCode(14), details: Some(\"channel is in state TRANSIENT_FAILURE\") })") })

Exit client.

Exit libra-swarm.

The ports, eg 58601, 58564, are different every time. Sometimes though I get this:

...
thread 'main' panicked at 'Failed to launch validator swarm: NodeCrash', src/libcore/result.rs:1165:5

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

logs located at "/var/folders/ks/zvlbpmlx427bjjc0ptwmb_s80000gn/T/526b00837e4228630f67c2c262ffc02e"

I’m on macOS Mojave 10.14.6.

Thanks for the post–moving it to the Libra Core topic!

1 Like

I found this issue, ran ulimit -n 8192 as per the issue, and now it works!