Common Errors
This article provides an overview of how to handle any errors occurred when installing the Babylon Chain.
In this article:
Error During Repository Cloning
Too Many Arguments
fatal: Too many arguments.
This error occurs when something is wrong with the git clone syntax on your Ubuntu.
Solution:
Please make sure that the syntax is correct. Here is an example of the correct syntax to clone a git repository:
git clone https://qa12345678910@github.com/babylonchain/babylon.git
Do not forget to create your personal access token to clone a git repository.
Could Not Set 'core.filemode' to 'false'
fatal: could not set 'core.filemode' to 'false'
This error occurs when the Windows Linux System permission within the drive is denied.
Solution:
Restarting the system will reset the permissions. If this doesn't work, add Sudo to the syntax, as illustrated in the following code:
sudo git clone https://qa12345678910@github.com/babylonchain/babylon.git
Error During Babylon Chain Initialization
No Such Directory Found
No such file or directory
This issue happens when a make syntax is executed in the incorrect directory or path.
Solution:
Remember to access the cloned repository folder to initialize the Babylon Chain after cloning the repository. Here is an example of a configuration code:
cd /mnt/c/Users/<yourusername>/Documents/Babylond/babylon
Command 'make' Not Found
Command 'make' not found
This occurs while building a chain without first installing the Make language.
Solution:
Install the Make language on Ubuntu by inserting the code below:
sudo apt install make
Make Build Error 1
go build -mod=readonly -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=babylon -X github.com/cosmos/cosmos-sdk/version.AppName=babylond -X github.com/cosmos/cosmos-sdk/version.Version=af24cf3 -X github.com/cosmos/cosmos-sdk/version.Commit=af24cf321f848619739fafa7c1f6173b0284e61f -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger" -w -s' -trimpath -o /mnt/c/Users/kakakepan/Documents/babylon/babylon/build/ ./...
go: updates to go.mod needed, disabled by -mod=readonly
make: *** [Makefile:116: build] Error 1
This occurs when a Golang version lower than 1.20 has been installed. Babylon requires Golang version 1.20 or above.
Solution:
You need to uninstall Golang by inserting the code below on Ubuntu:
sudo apt-get remove golang-go
Next, install the latest version of Golang by inserting the code below:
sudo wget https://go.dev/dl/go1.20.5.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.20.5.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
source ~/.bashrc
Make Build Error 127
make: *** [Makefile:116: build] Error 127
This occurs if the cloned repository already contains a Build directory when running Make Install on Ubuntu.
Solution:
- Go to the cloned repository directory.
- Remove the Build directory permanently.
- Insert the code below to create a new Build directory:
make build
Genesis File Already Exists
Error: genesis.json file already exists
This occurs when a genesis file already exists when initializing the Babylon Chain.
Solution:
Insert the code below to solve the genesis file error on Ubuntu:
rm -r ~/.babylond