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

How to attach to eBloc Network Status: #2

Closed
ebloc opened this issue Apr 27, 2017 · 10 comments
Closed

How to attach to eBloc Network Status: #2

ebloc opened this issue Apr 27, 2017 · 10 comments

Comments

@ebloc
Copy link
Collaborator

ebloc commented Apr 27, 2017

How to attach into eBlocPOA Network Status (http://ebloc.cmpe.boun.edu.tr:3015)

Preinstallations

For Mac

sudo npm install npm pm2 -g

For Linux

To install Node.js and Node package manager(npm) type the following command in your terminal:

sudo apt-get install nodejs npm
sudo npm install pm2 -g

Create a symbolic link for node, as many Node.js tools use this name to execute.

sudo ln -s /usr/bin/nodejs /usr/bin/node

To install Ethereum Network Intelligence API

Downloading

cd $HOME 
git clone https://github.com/cubedro/eth-net-intelligence-api 

cd eth-net-intelligence-api
npm install

To Run

  • Please open stats.sh file under eblocPOAdirectory. Write your unique name instead of mynameis.

  • ⚠️ Change DATADIR variable with path for eth-net-intelligence-api directory ⚠️

  • ⚠️ geth-server should be running on the background ⚠️

Finally you should run following command

bash stats.sh
  • sudo pm2 show app should return some output starting with "status │ online".

Now, you should see your node on http://ebloc.cmpe.boun.edu.tr:3015.

If you successfully see your name, put this line bash stats.sh into last line of server.sh file.

If you are connected following peer# cell should show minimum 1.
screen shot 2017-02-21 at 12 35 35

@ebloc
Copy link
Collaborator Author

ebloc commented Apr 27, 2017

From @mmervecerit on February 20, 2017 18:35

I am having an error related to npm, on the 4th line. it says there is no such command called as npm

@ebloc
Copy link
Collaborator Author

ebloc commented Apr 27, 2017

From @avatar-lavventura on February 20, 2017 18:53

@mmervecerit I have updated the documentation.

@ebloc
Copy link
Collaborator Author

ebloc commented Apr 27, 2017

From @Mavera07 on February 20, 2017 20:21

I did all the steps but when I run the last command (pm2 show app) it outputs (status|errored).

@ebloc
Copy link
Collaborator Author

ebloc commented Apr 27, 2017

From @avatar-lavventura on February 20, 2017 20:59

@Mavera07 What do you see when you run the following command:
[~] sudo INSTANCE_NAME=mynameis RPC_HOST=localhost WS_SERVER=http://79.123.177.145:3001 WS_SECRET=63r98c3uz0cyg68v RPC_PORT=8545 LISTENING_PORT=3000 /Users/user_name/.npm-packages/bin/pm2 start $my_path/app.js

Output should be something like this:
screen shot 2017-02-20 at 23 58 21

@ebloc
Copy link
Collaborator Author

ebloc commented Apr 27, 2017

From @Mavera07 on February 20, 2017 22:2

I get this output.
screenshot from 2017-02-21 00 56 42
But after I run ( pm2 show app), I get the following.
screenshot from 2017-02-21 00 58 56

@ebloc
Copy link
Collaborator Author

ebloc commented Apr 27, 2017

From @SanD94 on February 21, 2017 5:0

There are some dependency packages, so you need to use npm install command in eth-net-intelligence-api folder, then it works well.

@ebloc
Copy link
Collaborator Author

ebloc commented Apr 27, 2017

From @avatar-lavventura on February 21, 2017 5:8

@Mavera07 What do you see when you do: cat /home/sahin/.pm2/logs/app-error-0.log. The port you are listening may also be allocated, can you try with different port number for the LISTENING_PORT?

@ebloc
Copy link
Collaborator Author

ebloc commented Apr 27, 2017

From @avatar-lavventura on February 21, 2017 9:27

@SanD94: bugun okuldaysan netlab'a gelebilir misin 4. katta, senin node'un mine yapiyor gozukuyor ama aslinda bootnode a connect olmadigi icin fork yapmis kendi chain'i uzerinde calisiyor su an. net i calistirdigin da 1 donduruyor mu?

@ebloc
Copy link
Collaborator Author

ebloc commented Apr 27, 2017

From @Mavera07 on February 21, 2017 12:46

(npm install) command fixed my problem. Thanks.
By the way, I stated name 'mynameis' when I first tried and now it is fixed but 'mynameis' remains in the list as offline.

@ebloc
Copy link
Collaborator Author

ebloc commented Apr 27, 2017

From @avatar-lavventura on February 21, 2017 13:6

@Mavera07 do: sudo pm2 delete app , it should return an empty table and "mynameis" should be removed. Than re-run the code with the name you want to use.

@ebloc ebloc closed this as completed Apr 27, 2017
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

0 participants