rajivjc / clinicaltrials-on-blockchain

Demonstrate how blockchains can be used to improve data transparency in clinical trials
17 stars 7 forks source link

Couldn't get any accounts! Make sure your Ethereum client is configured correctly. #2

Open eastsee opened 7 years ago

eastsee commented 7 years ago

Environment: AWS EC2 ubuntu nodejs v8.7.0 truffle v3.2.1

when get on the site 8081 , I got "Couldn't get any accounts! Make sure your Ethereum client is configured correctly.
Also, I can not create any account like cro or pharma on website.

rajivjc commented 7 years ago

Do you have an Ethereum client like geth or testrpc running ? Have a look at this for more details - https://github.com/ethereum/go-ethereum/wiki/Managing-your-accounts

eastsee commented 7 years ago

Yes. testrpc is running and ipfs daemon is running. Truffle migrate works fine. Since my first post, I found your code is trying to connect to "localhost" at truffle.js and app.js So, I have changed the files so that truffle looks my AwsServerIP:8545. However, I still have the same problem.

rajivjc commented 7 years ago

Do you have Metamask installed on your browser by any chance ?

eastsee commented 7 years ago

No. I don't. Should I?

deomaius commented 6 years ago

@rajivjc cheers for the comment it is apparent that if you have MetaMask installed it will take the place of truffle's usual port + localhost.

moranthomas commented 6 years ago

I got this issue too..
So I had tried to upgrade the MetaMask Chrome plugin and it was in the process of doing that - So MetaMask was enabled and was trying to connect to the local blockchain on port 8545.

Removing MetaMask from Chrome did the trick (and later I re-installed the upgraded version)