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

Application not responding, what is the entrypoint of the app? #1

Closed
saikia1 opened this issue May 8, 2018 · 26 comments
Closed

Application not responding, what is the entrypoint of the app? #1

saikia1 opened this issue May 8, 2018 · 26 comments

Comments

@saikia1
Copy link

saikia1 commented May 8, 2018

After following the installation instruction for production I'm not able to see results

I have also ran the following commands
$ ./medrec EthereumClient $ ./medrec DatabaseManager $ ./medrec UserClient

@Firescar96
Copy link
Collaborator

What Operating System are you on?

@Firescar96
Copy link
Collaborator

My first response is you should run go build before trying to use the medrec binary. But it would help if you could provide any sort of error logs from the terminal.

@saikia1
Copy link
Author

saikia1 commented May 9, 2018

I'm using Ubuntu 16.04. There are no outputs or error messages when I ran the three commands . I also tried running build-linux-amd64.sh for build; but still no luck.

@Firescar96
Copy link
Collaborator

I just pushed an update changing a fair amount of how MedRec works and added a release for amd64 systems

please try again

@karthyk16
Copy link

karthyk16 commented Jul 19, 2018

@Firescar96 : I have taken the latest Master branch and trying to setup a dev environment.. Running in Mac system. I am able to launch the UserClient frontend and able to see the login/register page. But, i try to create a new user or try to login, there is no response and can't see any thing in network as well when i do inspect.

This is what i see in the logs in go when i hit login.
2018/07/20 01:40:54 POST /localRPC 2018-07-20 01:40:54.891572889 +0530 IST m=+211.302230454
2018/07/20 01:40:54 darwmin

Kindly let me know if i am missing something. Should i try with the above link that you have shared.?

@Firescar96
Copy link
Collaborator

Open inspect and look at the Console tab instead of Network. Post if there are any errors there.
You should be able to create a new user, return to the login page, and then login.

@Firescar96
Copy link
Collaborator

Also, try using the production instructions.

@karthyk16
Copy link

@Firescar96 :
Below is logged in Console repeatedly as soon as the page is loaded.
websocket.js:140 WebSocket connection to 'ws://localhost:8546/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

I tried Creating a new user and nothing gets logged in Console except the above error.

@Firescar96
Copy link
Collaborator

I merged a branch #2 called "onlyproduction" that I think permanently breaks the use of ganache-cli, and therefore the development instructions. Try following the production instructions.

@sudhirgiri2911
Copy link

@Firescar96
When i run this command while following production instruction.

  1. ./medrec-amd64 DatabaseManager
    2018/07/20 12:14:20 Failed to get the filter logs: Post http://localhost:8545: dial tcp 127.0.0.1:8545: getsockopt: connection refused
  2. ./medrec-amd64 UserClient
    2018/07/20 12:17:02 User client Exited
    2018/07/20 12:17:02 exit status 127
    Can you please let me know why I'm getting this.
    Additional infromation about my system:- Ubuntu 17.04

@Firescar96
Copy link
Collaborator

Each command is supposed to be run in a different terminal. The first error suggests ./medrec-amd64 EthereumClient hasn't run long enough to have finished starting yet.

@sudhirgiri2911
Copy link

Yeah thanks that i figured it out. Can you please tell me about the second one.

@Firescar96
Copy link
Collaborator

Looks like a command not found error, maybe you skipped step 2 of the production instructions. Otherwise I don't know.

@Firescar96
Copy link
Collaborator

This has been helpful for realizing the documentation is now severly out of date, thanks to all of you for making efforts to run this software. I'll try setting up from scratch and maybe I'll run into the same problems.

@karthyk16
Copy link

@Firescar96 : Were you able to run the application.?

@karthyk16
Copy link

@Firescar96 : I followed the production instruction and did the below.

Run Ethereum client first and waited for it to load.
Run Database MAnager
Run User Client.

UI Opened with landing screen. Tried registering a user, I could see POST /LocalRPC in Database manager log and a KEy prompted in UI. USed the key and created a user. Again i could see POST /LocalRPC and darwmin in the database manager logs. But user didnt get created. Can you tell me if i am missing something.

@Firescar96
Copy link
Collaborator

I just downloaded and installed MedRec. I changed the instructions slightly, there's another component that needs to be installed that was missing before. I would recommend starting over with the production instructions, creating a user, then logging in with your chosen username.

I found and fixed an error with how the EthereumClient is started, but if you haven't logged in yet you wouldn't have encountered it. You'll need to pull the latest commit and delete the folder MedRec created at ${HOME}/.medrec

@Firescar96
Copy link
Collaborator

I'm leaving this open because the readme could use some work, but I was successful opening the app by following the production instructions

@swjang
Copy link

swjang commented Dec 8, 2018

What Operating System are you on?

Can I use ubuntu 18.04?

I encountered the following errors.
....$ sudo npm install
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I'll try to do my best with it!

sha3@1.2.0 install /home/parallels/medrec/UserClient/node_modules/sha3
node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/parallels/medrec/UserClient/node_modules/sha3/build'
gyp ERR! System Linux 4.15.0-34-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/parallels/medrec/UserClient/node_modules/sha3
gyp ERR! node -v v8.14.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-vis-force@0.3.1 requires a peer of react@0.14.x - 15.x but none is installed. You must install peer dependencies yourself.
npm WARN react-vis-force@0.3.1 requires a peer of react-dom@0.14.x - 15.x but none is installed. You must install peer dependencies yourself.
npm WARN The package case-sensitive-paths-webpack-plugin is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sha3@1.2.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sha3@1.2.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/parallels/.npm/_logs/2018-12-08T14_59_25_697Z-debug.log

@Firescar96
Copy link
Collaborator

This application was developed with team members using both debian and macos, I'm sure it works on Ubuntu as well. The errors you posted are not related to medrec. You would be best searching DuckDuckGo or StackOverflow for solutions.

@swjang
Copy link

swjang commented Dec 9, 2018

I just pushed an update changing a fair amount of how MedRec works and added a release for amd64 systems

please try again

In my case, I encountered the following messages in MacOS
./medrec-amd64 EthereumClient
-bash: ./medrec-amd64: cannot execute binary file

@Firescar96
Copy link
Collaborator

Firescar96 commented Dec 9, 2018

I should have specified the binary is for amd64-linux systems, as that is what I own. You should install golang and run go build to build for you operating system.

@nikhilvariar
Copy link

What Operating System are you on?

Can I use ubuntu 18.04?

I encountered the following errors.
....$ sudo npm install
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I'll try to do my best with it!

sha3@1.2.0 install /home/parallels/medrec/UserClient/node_modules/sha3
node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/parallels/medrec/UserClient/node_modules/sha3/build'
gyp ERR! System Linux 4.15.0-34-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/parallels/medrec/UserClient/node_modules/sha3
gyp ERR! node -v v8.14.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-vis-force@0.3.1 requires a peer of react@0.14.x - 15.x but none is installed. You must install peer dependencies yourself.
npm WARN react-vis-force@0.3.1 requires a peer of react-dom@0.14.x - 15.x but none is installed. You must install peer dependencies yourself.
npm WARN The package case-sensitive-paths-webpack-plugin is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sha3@1.2.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sha3@1.2.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/parallels/.npm/_logs/2018-12-08T14_59_25_697Z-debug.log

Any Solution to this issue ?

@molten-firescar96
Copy link

This is not a bug related to MedRec, but with your npm setup. You'll have to search elsewhere.

@nikhilvariar
Copy link

I tried running
./medrec EthereumClient

and I'm getting the following error

node[1413]: ../src/node_contextify.cc:633:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfov8::Value&): Assertion args[1]->IsString()' failed. /bin/bash: line 1: 1413 Aborted node ./GolangJSHelpers/startGeth.js node[1412]: ../src/node_contextify.cc:633:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfo<v8::Value>&): Assertion args[1]->IsString()' failed.
2019/03/28 20:06:17 Ethereum client Exited
2019/03/28 20:06:17 [/bin/bash -c node ./GolangJSHelpers/startGeth.js || node ./GolangJSHelpers/startGeth.js]

I'm trying to run it on my Raspberry Pi 3B+.Please help me figure where I went wrong

@Firescar96
Copy link
Collaborator

@nikhilvariar I don't own a Raspberry PI and this system is not designed to run on one. The RasPI OS architecture is ARM, so anything compiled for amd64-linux systems won't work.

@mitmedialab mitmedialab locked as off-topic and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants