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

CHANNEL JOIN FAILED: TypeError: Cannot read property 'stack' of undefined at Client.newDefaultKeyValueStore #48

Closed
germal opened this issue Jan 25, 2019 · 3 comments

Comments

@germal
Copy link

germal commented Jan 25, 2019

Hello,

I didn't manage to run successfully the application createTradeApp.js.
My environment is the following

  • Ubuntu Version 16.04

  • Nodejs set to 9.8.0 as per README

  • Hyperledger branch 1.1

  • the versions of both fabric-client and fabric-ca-client installed are "1.1.2" and grpc "1.10.1

  • I run successfully the Dev environment exercise .

  • For the 9 container JS application I applied the following steps

  • Delete client_certs, channel-artifacts, crypto-config folders in network
    ./trade.sh generate -c tradechannel within network to generate the channel and crypto material
    ./trade.sh up to start the network ( the 9 containers indeed start)
    node createTradeApp.js

the error is

CHANNEL JOIN FAILED: TypeError: Cannot read property 'stack' of undefined
at Client.newDefaultKeyValueStore.then.then.then.then (/root/go/src/github.com/hyperledger/trade-finance-logistics/middleware/join-channel.js:205:61)
at

Please help , I strongly want to learn from your book.
Thanks
Germal

docker ps
error
network.log.txt

@VRamakrishna
Copy link
Collaborator

Sorry for the late reply. You configuration and setup looks fine to me. From the error symptom, and what I see in the log you have attached, I'd guess the error is because of old/mismatched credentials or perhaps old channel artifacts, but you say you deleted them before you started.

Can you just confirm that you deleted the client-certs folder (wherever you configured that; by default, it should be in the network folder.) In your comment above, you say you deleted client_certs (with an underscore, not a dash.)

When I run the code with an identical configuration to yours and after cleaning everything up, everything runs fine, as it has since the code was developed, so I'm not sure what's different in your environment. When you retry, make sure you delete not just the folders on disk but also the running docker containers and the volumes.

@germal
Copy link
Author

germal commented Jan 31, 2019

Hello , I just deleted and re-pulled the images of docker containers and the scripts work perfectly !
Thank you very much, your book is top quality , please let us know about your further courses and publications.

@VRamakrishna
Copy link
Collaborator

Great, glad to hear it worked, and that you find the book useful. We'll post updates on this repo whenever we have any.

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