arefin97 / Medicine_Supply_Chain

Detecting fake and counterfeit drugs through supply chain management using blockchain technology.
3 stars 2 forks source link

getting errors while running ./startFabric.sh up #8

Closed firewind25 closed 3 years ago

firewind25 commented 3 years ago

I've downloaded the repo installed all pre requisties but still i get this error when i ran ./startFabric.sh up :-

The chaincode language up is not supported by this script Supported chaincode languages are: go, javascript, and typescript

so i executed ./startFabric.sh and ./startFabric.sh go and i got this msg:-

./startFabric.sh: ./byfn.sh: /bin/bash^M: bad interpreter: No such file or directory

I don't know what's the reason cause I've installed all those lang mentioned there.

arefin97 commented 3 years ago

It is not the matter of installing all languages. You have to set path of golang, fabric bin etc properly so that your system find these out. And you will face another problem here - Local fabric binaries and docker images will not match as I develop it some time ago. You can download docker-compose v1.24 to match with fabric version or work all new(updated fabric image and docker image).

firewind25 commented 3 years ago

Screenshot from 2021-05-04 18-25-31

I'm getting this error now , error getting chaincode deployment spec for medicine

arefin97 commented 3 years ago

If gopath is properly set up, then try downloading the shim package to the GOPATH $go get github.com/hyperledger/fabric-chaincode-go/shim

then again execute the script.

firewind25 commented 3 years ago

I've seen in my GOPATH that there is already a shim file in it. my GOPATH is set to Home/myusername/go dir is this okay right?

firewind25 commented 3 years ago

i was getting an error after executing this cmd $go get git.../shim

package math/bits: unrecognized import path "math/bits" (import path does not begin with hostname) package context: unrecognized import path "context" (import path does not begin with hostname) package net/http/httptrace: unrecognized import path "net/http/httptrace" (import path does not begin with hostname)

arefin97 commented 3 years ago

I have updated some things. re-download or reclone it. go to $cd /Medicine_Supply_Chain/Medi_Chain/chaincode/medicine/go and run $GO111MODULE=on go mod vendor

If successfully installed chaincode, goto javascript folder and run $npm install or npm update and some instructions I have provided you earlier.

Or go through readme.md where I have provided some instructions now.

On Wed, 5 May 2021 at 18:03, chaitanyamet25 @.***> wrote:

i was getting an error after executing this cmd $go get git.../shim

package math/bits: unrecognized import path "math/bits" (import path does not begin with hostname) package context: unrecognized import path "context" (import path does not begin with hostname) package net/http/httptrace: unrecognized import path "net/http/httptrace" (import path does not begin with hostname)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arefin97/Medicine_Supply_Chain/issues/8#issuecomment-832632899, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNMLO3ZRTHQDS7HIY35KK3TMEXYZANCNFSM436A4GJQ .

firewind25 commented 3 years ago

I've logged into admin page and added producer, but I don't see any option for producer adding medicines how can producer at medicine.

arefin97 commented 3 years ago

Then login as producer to add medicine.

On Tue, 13 Jul 2021 at 08:50, firewind25 @.***> wrote:

I've logged into admin page and added producer, but I don't see any option for producer adding medicines how can producer at medicine.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arefin97/Medicine_Supply_Chain/issues/8#issuecomment-878736107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNMLOZCJBE6DXHKZLVOOWTTXOSXHANCNFSM436A4GJQ .

arefin97 commented 3 years ago

Actually, you have to signup this producer. It works in this way that only those entities can be registered as producer who are added by admin already. Similar for dealer. But no need for endusers.

On Tue, 13 Jul 2021 at 16:17, shahriar arefin @.***> wrote:

Then login as producer to add medicine.

On Tue, 13 Jul 2021 at 08:50, firewind25 @.***> wrote:

I've logged into admin page and added producer, but I don't see any option for producer adding medicines how can producer at medicine.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arefin97/Medicine_Supply_Chain/issues/8#issuecomment-878736107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNMLOZCJBE6DXHKZLVOOWTTXOSXHANCNFSM436A4GJQ .

firewind25 commented 3 years ago

How to login as producer cause while adding it no password is asked but while signing in password is required

arefin97 commented 3 years ago

I think I made it clear in my previous reply. Okay, let's have an example. Suppose Mr x want to be a producer. If he wan't to sign up as producer, system will show you can't be a producer. If admin add Mr x add as a producer, then using this ID Mr x can be registered as producer.

On Tue, 13 Jul 2021 at 16:26, firewind25 @.***> wrote:

How to login as producer cause while adding it no password is asked but while signing in password is required

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arefin97/Medicine_Supply_Chain/issues/8#issuecomment-878970031, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNMLO2K7ZYVJZFEAZ7F3KDTXQIENANCNFSM436A4GJQ .

firewind25 commented 3 years ago

Oh... yes, I got it, first register then sign up. Ok. Thank you👍