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

Chaincode installation failure #259

Open
Xtaltec opened this issue Aug 22, 2018 · 3 comments
Open

Chaincode installation failure #259

Xtaltec opened this issue Aug 22, 2018 · 3 comments

Comments

@Xtaltec
Copy link

Xtaltec commented Aug 22, 2018

So I have my network up running properly and I'm able to enroll the admin and register the user. But when I try to install the chaincode with the node install_chaincode.js command I get the following error.

image
It seems to be an uncommon error since I haven't been able to find much information about it.

@dshuffma-ibm
Copy link
Contributor

dshuffma-ibm commented Aug 22, 2018

I see you have not installed marbles chaincode. perhaps the chaincode is not in the right directory or the chaincode itself is strange. check the path_2_chaincode field in the install_chaincode.js script, check if the chaincode is actually in that directory, and upload your chaincode here in a zip.

@Xtaltec
Copy link
Author

Xtaltec commented Aug 23, 2018

I tried to solve it that way but I ended up with the same error. Anyway the chaincode I'm trying is the same as marbles but with a different name to see if it installed correctly to later on include my own chaincode. The biggest problem is that I have no idea what the error is supposed to mean so I don't know how to tackle it.

@dshuffma-ibm
Copy link
Contributor

The trick is to look at the right logs. Your peer is having trouble with the chaincode. So you need to look at the peer's logs. If it is a locally hosted peer, you can see the logs with docker logs <container id> or add -f to follow the logs live and re-run the install.

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