Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with private validator socket client #7

Open
TimaxLacs opened this issue Feb 18, 2024 · 1 comment
Open

error with private validator socket client #7

TimaxLacs opened this issue Feb 18, 2024 · 1 comment

Comments

@TimaxLacs
Copy link

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 [email protected]: 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 = "[email protected]: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

  • 4 vCPU Cores
  • 6 GB RAM
  • 400 GB SSD
  • 1 Snapshot
  • Ubuntu 20.04
@TimaxHack
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants