deep-foundation / deep-chain

Your 🔵 Superintelligence
https://cyb.ai
Other
8 stars 3 forks source link

error with private validator socket client #7

Open TimaxLacs opened 6 months ago

TimaxLacs commented 6 months ago

Current Behavior

Error when trying to connect to the chain:

root@vmi1665571:~/deep-chain# deepchain start --compute-gpu=false --search-api=false --home ./testnet

10:41AM ERR WARNING: The minimum-gas-prices config in app.toml is set to the empty string. This defaults to 0 in the current version, but will error in the next version (SDK v0.45). Please explicitly put the desired minimum-gas-prices in your app.toml.
10:41AM INF Loading the brain state
10:41AM INF Cyber Consensus Supercomputer is started! duration="392.696µs"
10:41AM INF starting node with ABCI Tendermint in-process
10:41AM INF Starting multiAppConn service impl=multiAppConn module=proxy
10:41AM INF Starting localClient service connection=query impl=localClient module=abci-client
10:41AM INF Starting localClient service connection=snapshot impl=localClient module=abci-client
10:41AM INF Starting localClient service connection=mempool impl=localClient module=abci-client
10:41AM INF Starting localClient service connection=consensus impl=localClient module=abci-client
10:41AM INF Starting EventBus service impl=EventBus module=events
10:41AM INF Starting PubSub service impl=PubSub module=pubsub
10:41AM INF Starting IndexerService service impl=IndexerService module=txindex
Error: error with private validator socket client: failed to start private validator: listen tcp: lookup 3c12fbf6d59a643e3473bda17230b330eb75a9c0@149.102.136.233: no such host

Expected Behavior

Connecting a validator node to the chain

Reproduction

Installing new dependencies

sudo apt-get -y install --no-install-recommends\
     make gcc g++ \
     curl\
     gnupg\
     git\
     software-properties-common\

Download go

wget https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.0.linux-amd64.tar.gz

Setting up environment variables

export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:$GOROOT/bin:$GOPATH/bin' >> ~/.bashrc

Clone the repository and go to it

git clone https://github.com/deep-foundation/deep-chain
cd deep-chain

Buildim

make install
make build CUDA_ENABLED=false

Initializing the validator

deepchain init validator --home ./testnet

Delete the current one and add a new genesis.json

rm ./testnet/config/genesis.json

Change the "persistent_peers" value in the "config.toml" file

nano ./testnet/config/config.toml
persistent_peers = "3c12fbf6d59a643e3473bda17230b330eb75a9c0@149.102.136.233:26656"

Add a validator

deepchain keys add validator --home ./testnet --keyring-backend=test --recover

We launch the validator into the network

deepchain start --compute-gpu=false --search-api=false --home ./testnet

Additional Information

Additional Information

Tried to install on VPS server

TimaxHack commented 6 months ago

The error was the incorrect wrapping of the "persistent_peers" value