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

Deploying chaincode failed #551

Open
MahathirMohammadShuvo opened this issue Nov 2, 2023 · 0 comments
Open

Deploying chaincode failed #551

MahathirMohammadShuvo opened this issue Nov 2, 2023 · 0 comments

Comments

@MahathirMohammadShuvo
Copy link

MahathirMohammadShuvo commented Nov 2, 2023

I can not deploy chaincode. here is all the commands that i use:


# Update
sudo apt-get update

# Install dependencies
sudo apt-get install git curl docker-compose jq nodejs npm -y

# install go(https://go.dev/doc/install)
cd Downloads/

sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.21.3.linux-amd64.tar.gz

export PATH=$PATH:/usr/local/go/bin

go version


git clone https://github.com/hyperledger-labs/fabric-operations-console

cd fabric-operations-console/scripts

sudo ./setupNetwork.sh up

But I am getting this error:

Error: failed to normalize chaincode path: failed to determine module root: exec: "go": executable file not found in $PATH
Chaincode packaging has failed
Deploying chaincode failed

I have attached the full log file with this issue, so you can check it.
full_log.txt. can anyone tell me what is the issue here or how to fix it?

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

1 participant