rddill-IBM / ZeroToBlockchain

Tutorial for Zero to Blockchain series
342 stars 924 forks source link

Seller Not Able to route the order to provider #36

Closed raman2072 closed 6 years ago

raman2072 commented 6 years ago

Despite following all the directions for Chapter07, I am running into the issue of the Seller Not able to update the order to be routed to a Provider.

Environment : Hyperledger Fabric : 1.1 Hyper Ledger Composer - 0.19.5

[19] at: 10:07:38.816 Url is: /composer/client/orderAction orderAction req.body.participant is: Erin@2ndlifesystemsinc.com Order from Supplier entered for 006 inbound id: Erin@2ndlifesystemsinc.com with order.seller as: Erin@2ndlifesystemsinc.com 006 submitTransaction to update status to Order From Supplier failed with text: Error trying invoke business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 2 UNKNOWN: error executing chaincode: transaction returned with failure: AccessException: Participant 'org.acme.Z2BTestNetwork.Seller#Erin@2ndlifesystemsinc.com' does not have 'CREATE' access to resource 'org.acme.Z2BTestNetwork.OrderFromSupplier#d3e970f15f51e642195ec5e42790ade26a1dcf32387c59ecb9c46519046a8d2c'

rddill-IBM commented 6 years ago

I've seen this error before and it is normally associated with trying to reuse a business network from a previous chapter. Each chapter, after updating the model, permissions, chaincode and application code needs to have not only the npm install command run, but also the buildAndDeploy command. Additionally, once those are complete and you have started the application (npm start), you also must run the autoLoad option in the web browser Admin menu.