Code Monkey home page Code Monkey logo

eth-net-intelligence-api's Introduction

Ethereum Network Intelligence API

Build Status dependency status

This is the backend service which runs along with ethereum and tracks the network status, fetches information through JSON-RPC and connects through WebSockets to eth-netstats to feed information. For full install instructions please read the wiki.

Prerequisite

  • eth, geth or pyethapp
  • node
  • npm

Installation on an Ubuntu EC2 Instance

Fetch and run the build shell. This will install everything you need: latest ethereum - CLI from develop branch (you can choose between eth or geth), node.js, npm & pm2.

bash <(curl https://raw.githubusercontent.com/cubedro/eth-net-intelligence-api/master/bin/build.sh)

Installation as docker container (optional)

There is a Dockerfile in the root directory of the repository. Please read through the header of said file for instructions on how to build/run/setup. Configuration instructions below still apply.

Configuration

Configure the app modifying processes.json. Note that you have to modify the backup processes.json file located in ./bin/processes.json (to allow you to set your env vars without being rewritten when updating).

"env":
	{
		"NODE_ENV"        : "production", // tell the client we're in production environment
		"RPC_HOST"        : "localhost", // eth JSON-RPC host
		"RPC_PORT"        : "8545", // eth JSON-RPC port
		"LISTENING_PORT"  : "30303", // eth listening port (only used for display)
		"INSTANCE_NAME"   : "", // whatever you wish to name your node
		"CONTACT_DETAILS" : "", // add your contact details here if you wish (email/skype)
		"WS_SERVER"       : "wss://rpc.ethstats.net", // path to eth-netstats WebSockets api server
		"WS_SECRET"       : "see http://forum.ethereum.org/discussion/2112/how-to-add-yourself-to-the-stats-dashboard-its-not-automatic", // WebSockets api server secret used for login
		"VERBOSITY"       : 2 // Set the verbosity (0 = silent, 1 = error, warn, 2 = error, warn, info, success, 3 = all logs)
	}

Run

Run it using pm2:

cd ~/bin
pm2 start processes.json

Updating

To update the API client use the following command:

~/bin/www/bin/update.sh

It will stop the current netstats client processes, automatically detect your ethereum implementation and version, update it to the latest develop build, update netstats client and reload the processes.

eth-net-intelligence-api's People

Contributors

cubedro avatar ethers avatar ifa88 avatar konradkonrad avatar mpitid avatar tumf avatar tymat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eth-net-intelligence-api's Issues

program run Error

at Object.<anonymous> (/Users/yinzf/Documents/shiji__workspace/nodejs_workspace/eth-net-intelligence-api/lib/node.js:6:12)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
2017-07-18 11:54 +08:00: [eth] =✘= Error: Cannot find module 'web3'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)

update.sh bad way to kill remaining process

 heading "Killing remaining node processes"
echo `ps auxww | grep node | awk '{print $2}'`
kill -9 `ps auxww | grep node | awk '{print $2}'`

When running this command on my machine, $ ps auxww | grep node | awk '{print $2}', here is the output:

1445
1617
1950
2174
2559
2851
12019

Now see the process:

$ ps -p 1445 -o comm=
slack
ps -ef | grep 1445
261:gabx      1445  1419  0 May03 ?        00:01:21 /usr/lib/slack/slack --type=renderer --no-sandbox --lang=en-US --register-standard-schemes=slack-resources --node-integration=true --preload=/usr/lib/slack/resources/app.asar/src/static/index.js --num-raster-threads=4 --content-image-texture-target=3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553 --video-image-texture-target=3553 --disable-accelerated-video-decode --disable-gpu-compositing --channel=1396.0.1432034957 --v8-natives-passed-by-fd --v8-snapshot-passed-by-fd

As you can see, nothing to do with eth process.

Mark repo as not maintained

as i get through the same problem than the one intended to be fixed in #242 i got here.

Unfortunately i can see that this repo doesn't seem maintained anymore and yet, this tool seems to be quite used by dockerized ethereum bundles :/

Last merge was more than two years ago, and the related issue addressed quite the same amount of time.

@cubedro : Maybe updating the readme.md at least to inform that the repo is not maintained would be great so people know that if they want to implement it, issues might not be fixed. Also, if anyone knows an alternative or maintained version of the tool, adding it to the readme to provide the information to other users would be great.

Unable to request access

Hi,

I'm unable to join the skype channel to request a key.
I'd rather not spam your skype directly or email inbox.
Is there another way to request a key? Should I do so directly?

Thanks,

  • Art

Error: certificate has expired

Uhm, I'm sorry because this is probably the wrong place to report it, but I do not know where else to go.

The SSL cert for ethstats.net is expired and now my eth-net-intelligence-api instance throws the following error:

2016-09-20 21:18 +02:00: [wsc] =✘= Socket error: { Error: certificate has expired
    at Error (native)
    at TLSSocket.<anonymous> (_tls_wrap.js:1060:38)
    at emitNone (events.js:86:13)
    at TLSSocket.emit (events.js:185:7)
    at TLSSocket._finishInit (_tls_wrap.js:584:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)
  code: 'CERT_HAS_EXPIRED',
  type: 'error',
  target: 
   WebSocket {
     domain: null,
     _events: { error: [Function: onerror] },
     _eventsCount: 1,
     _maxListeners: undefined,
     _socket: null,
     _ultron: null,
     _closeReceived: false,
     bytesReceived: 0,
     readyState: 3,
     supports: { binary: true },
     extensions: null,
     _isServer: false,
     url: 'wss://rpc.ethstats.net/api/?_primuscb=LT92BOF',
     protocolVersion: 13,
     binaryType: 'arraybuffer',
     _closeTimer: null } }
2016-09-20 21:18 +02:00: [wsc] =!= Reconnecting in 500 ms
2016-09-20 21:18 +02:00: [wsc] =!= This is attempt 1 out of 10
2016-09-20 21:18 +02:00: [wsc] =!= Reconnecting in 1885 ms
2016-09-20 21:18 +02:00: [wsc] =!= This is attempt 2 out of 10
2016-09-20 21:18 +02:00: [wsc] =!= Reconnecting in 2925 ms
2016-09-20 21:18 +02:00: [wsc] =!= This is attempt 3 out of 10
2016-09-20 21:18 +02:00: [wsc] =!= Reconnecting in 7401 ms
2016-09-20 21:18 +02:00: [wsc] =!= This is attempt 4 out of 10
2016-09-20 21:18 +02:00: [wsc] =!= Reconnecting in 9898 ms
2016-09-20 21:18 +02:00: [wsc] =!= This is attempt 5 out of 10
2016-09-20 21:18 +02:00: [wsc] =!= Reconnecting in 26798 ms
2016-09-20 21:18 +02:00: [wsc] =!= This is attempt 6 out of 10
2016-09-20 21:19 +02:00: [wsc] =!= Reconnecting in 38600 ms
2016-09-20 21:19 +02:00: [wsc] =!= This is attempt 7 out of 10
2016-09-20 21:19 +02:00: [wsc] =!= Reconnecting in 69972 ms
2016-09-20 21:19 +02:00: [wsc] =!= This is attempt 8 out of 10
2016-09-20 21:20 +02:00: [wsc] =!= Reconnecting in 211728 ms
2016-09-20 21:20 +02:00: [wsc] =!= This is attempt 9 out of 10

Now, my questions basicly are:

  • Who maintains the certificate for ethstats.net?
  • Can I ignore the certificate for ethstats.net temporarily?
  • Is there a workaround from within eth-net-intelligence-api available?

Thanks.

The daemon stops submitting the correct block height.

The daemon stops submitting the correct block hight after a certain amount of time.

You can find my nodes on https://ethstats.net/ by searching for my nick. You will see one of the nodes is "red" regarding the block height, but whenever I check the geth client on that node, it is fully synced.

Restarting the pm2 daemon solves this issue temporary until it gets stuck again.

how to connect with multiple rpc ip:port ?

i have three nodes which running on 3 different server. I want to list all 3 node on my eth-netstat app
for example

  1. enode://pubkey1@ip1:port1
  2. enode://pubkey2@ip2:port2
  3. enode://pubkey3@ip3:port3
    how can I achive this?

right now I can attach with one node by setting env in app.json.

{
"NODE_ENV" : "production",
"RPC_HOST" : "ip1",
"RPC_PORT" : "port1",
"LISTENING_PORT" : "30303",
"INSTANCE_NAME" : "my_node",
"CONTACT_DETAILS" : "",
"WS_SERVER" : "ws://localhost:3000",
"WS_SECRET" : "ChangeWsSecret",
"VERBOSITY" : "2"
}

my goal is to list multiple node.

No compatible version found: bignumber.js@'debris/bignumber.js#master'

Having problems installing on ubuntu 15.04

➜  www git:(master) bash <(curl https://raw.githubusercontent.com/cubedro/eth-net-intelligence-api/master/bin/build.sh)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1706  100  1706    0     0   1763      0 --:--:-- --:--:-- --:--:--  1762

==> You're about to install ethereum.
Please choose one of the following:
1. eth
2. geth
Choose the implementation: 1

==> Installing
[sudo] password for ligi: 
Ign http://de.archive.ubuntu.com vivid InRelease
Ign http://dl.google.com stable InRelease
Ign http://de.archive.ubuntu.com vivid-updates InRelease                       
Ign http://dl.google.com stable InRelease                                      
Ign http://de.archive.ubuntu.com vivid-backports InRelease                     
Hit http://dl.google.com stable Release.gpg                                    
Hit http://de.archive.ubuntu.com vivid Release.gpg                             
Hit http://dl.google.com stable Release.gpg                                    
Ign http://security.ubuntu.com vivid-security InRelease                        
Hit http://de.archive.ubuntu.com vivid-updates Release.gpg                     
Hit http://dl.google.com stable Release                                        
Hit http://de.archive.ubuntu.com vivid-backports Release.gpg                   
Hit http://dl.google.com stable Release                                        
Get:1 http://security.ubuntu.com vivid-security Release.gpg [933 B]            
Hit http://de.archive.ubuntu.com vivid Release                                 
Hit http://dl.google.com stable/main amd64 Packages                            
Get:2 http://de.archive.ubuntu.com vivid-updates Release [63,5 kB]             
Hit http://dl.google.com stable/main i386 Packages                             
Get:3 http://security.ubuntu.com vivid-security Release [63,5 kB]              
Ign http://de.archive.ubuntu.com vivid-updates Release                         
Hit http://de.archive.ubuntu.com vivid-backports Release                       
Hit http://de.archive.ubuntu.com vivid/main Sources                            
Hit http://de.archive.ubuntu.com vivid/restricted Sources                      
Hit http://de.archive.ubuntu.com vivid/universe Sources                        
Hit http://de.archive.ubuntu.com vivid/multiverse Sources                      
Get:4 http://security.ubuntu.com vivid-security/main Sources [10,8 kB]         
Hit http://de.archive.ubuntu.com vivid/main amd64 Packages                     
Hit http://de.archive.ubuntu.com vivid/restricted amd64 Packages               
Hit http://de.archive.ubuntu.com vivid/universe amd64 Packages                 
Get:5 http://security.ubuntu.com vivid-security/restricted Sources [28 B]      
Ign http://ppa.launchpad.net vivid InRelease                                   
Hit http://de.archive.ubuntu.com vivid/multiverse amd64 Packages               
Hit http://dl.google.com stable/main amd64 Packages                            
Ign http://ppa.launchpad.net vivid InRelease                                   
Hit http://de.archive.ubuntu.com vivid/main i386 Packages                      
Get:6 http://security.ubuntu.com vivid-security/universe Sources [3.150 B]     
Hit http://dl.google.com stable/main i386 Packages                             
Hit http://de.archive.ubuntu.com vivid/restricted i386 Packages                
Ign http://ppa.launchpad.net vivid InRelease                                   
Get:7 http://security.ubuntu.com vivid-security/multiverse Sources [28 B]      
Hit http://de.archive.ubuntu.com vivid/universe i386 Packages                  
Get:8 http://ppa.launchpad.net vivid Release.gpg [316 B]                       
Hit http://de.archive.ubuntu.com vivid/multiverse i386 Packages                
Hit http://ppa.launchpad.net vivid Release.gpg                                 
Get:9 http://security.ubuntu.com vivid-security/main amd64 Packages [28,0 kB]  
Hit http://de.archive.ubuntu.com vivid/main Translation-en                     
Hit http://ppa.launchpad.net vivid Release.gpg                                 
Hit http://de.archive.ubuntu.com vivid/multiverse Translation-en               
Get:10 http://ppa.launchpad.net vivid Release [15,1 kB]                        
Hit http://de.archive.ubuntu.com vivid/restricted Translation-en               
Get:11 http://security.ubuntu.com vivid-security/restricted amd64 Packages [28 B]
Hit http://de.archive.ubuntu.com vivid/universe Translation-en                 
Ign http://de.archive.ubuntu.com vivid-updates/main Sources/DiffIndex          
Get:12 http://security.ubuntu.com vivid-security/universe amd64 Packages [11,0 kB]
Ign http://de.archive.ubuntu.com vivid-updates/restricted Sources/DiffIndex    
Hit http://ppa.launchpad.net vivid Release                                     
Ign http://de.archive.ubuntu.com vivid-updates/universe Sources/DiffIndex      
Ign http://de.archive.ubuntu.com vivid-updates/multiverse Sources/DiffIndex    
Get:13 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [28 B]
Hit http://ppa.launchpad.net vivid Release                                     
Ign http://de.archive.ubuntu.com vivid-updates/main amd64 Packages/DiffIndex   
Ign http://de.archive.ubuntu.com vivid-updates/restricted amd64 Packages/DiffIndex
Get:14 http://security.ubuntu.com vivid-security/main i386 Packages [27,5 kB]  
Ign http://de.archive.ubuntu.com vivid-updates/universe amd64 Packages/DiffIndex
Get:15 http://ppa.launchpad.net vivid/main amd64 Packages [3.725 B]            
Ign http://de.archive.ubuntu.com vivid-updates/multiverse amd64 Packages/DiffIndex
Get:16 http://ppa.launchpad.net vivid/main i386 Packages [3.773 B]             
Ign http://de.archive.ubuntu.com vivid-updates/main i386 Packages/DiffIndex    
Get:17 http://security.ubuntu.com vivid-security/restricted i386 Packages [28 B]
Ign http://de.archive.ubuntu.com vivid-updates/restricted i386 Packages/DiffIndex
Ign http://de.archive.ubuntu.com vivid-updates/universe i386 Packages/DiffIndex
Get:18 http://ppa.launchpad.net vivid/main Translation-en [1.375 B]            
Get:19 http://security.ubuntu.com vivid-security/universe i386 Packages [11,1 kB]
Ign http://de.archive.ubuntu.com vivid-updates/multiverse i386 Packages/DiffIndex
Ign http://dl.google.com stable/main Translation-en_US                         
Hit http://ppa.launchpad.net vivid/main amd64 Packages                         
Ign http://dl.google.com stable/main Translation-en                            
Get:20 http://security.ubuntu.com vivid-security/multiverse i386 Packages [28 B]
Hit http://ppa.launchpad.net vivid/main i386 Packages                          
Ign http://dl.google.com stable/main Translation-en_US                         
Hit http://de.archive.ubuntu.com vivid-updates/main Translation-en             
Ign http://dl.google.com stable/main Translation-en                            
Hit http://security.ubuntu.com vivid-security/main Translation-en              
Hit http://ppa.launchpad.net vivid/main Translation-en                         
Hit http://de.archive.ubuntu.com vivid-updates/multiverse Translation-en
Hit http://security.ubuntu.com vivid-security/multiverse Translation-en
Hit http://de.archive.ubuntu.com vivid-updates/restricted Translation-en
Hit http://ppa.launchpad.net vivid/main amd64 Packages                         
Hit http://security.ubuntu.com vivid-security/restricted Translation-en        
Hit http://de.archive.ubuntu.com vivid-updates/universe Translation-en
Hit http://ppa.launchpad.net vivid/main i386 Packages              
Hit http://de.archive.ubuntu.com vivid-backports/main Sources      
Hit http://de.archive.ubuntu.com vivid-backports/restricted Sources
Hit http://ppa.launchpad.net vivid/main Translation-en             
Hit http://de.archive.ubuntu.com vivid-backports/universe Sources  
Hit http://de.archive.ubuntu.com vivid-backports/multiverse Sources  
Hit http://security.ubuntu.com vivid-security/universe Translation-en
Hit http://de.archive.ubuntu.com vivid-backports/main amd64 Packages 
Hit http://de.archive.ubuntu.com vivid-backports/restricted amd64 Packages
Hit http://de.archive.ubuntu.com vivid-backports/universe amd64 Packages
Hit http://de.archive.ubuntu.com vivid-backports/multiverse amd64 Packages
Hit http://de.archive.ubuntu.com vivid-backports/main i386 Packages
Hit http://de.archive.ubuntu.com vivid-backports/restricted i386 Packages
Hit http://de.archive.ubuntu.com vivid-backports/universe i386 Packages
Hit http://de.archive.ubuntu.com vivid-backports/multiverse i386 Packages
Hit http://de.archive.ubuntu.com vivid-backports/main Translation-en
Hit http://de.archive.ubuntu.com vivid-backports/multiverse Translation-en
Hit http://de.archive.ubuntu.com vivid-backports/restricted Translation-en
Hit http://de.archive.ubuntu.com vivid-backports/universe Translation-en
Hit http://de.archive.ubuntu.com vivid-updates/main Sources
Hit http://de.archive.ubuntu.com vivid-updates/restricted Sources
Hit http://de.archive.ubuntu.com vivid-updates/universe Sources
Hit http://de.archive.ubuntu.com vivid-updates/multiverse Sources
Hit http://de.archive.ubuntu.com vivid-updates/main amd64 Packages
Hit http://de.archive.ubuntu.com vivid-updates/restricted amd64 Packages       
Hit http://de.archive.ubuntu.com vivid-updates/universe amd64 Packages         
Hit http://de.archive.ubuntu.com vivid-updates/multiverse amd64 Packages       
Hit http://de.archive.ubuntu.com vivid-updates/main i386 Packages              
Hit http://de.archive.ubuntu.com vivid-updates/restricted i386 Packages        
Hit http://de.archive.ubuntu.com vivid-updates/universe i386 Packages          
Get:21 http://de.archive.ubuntu.com vivid-updates/multiverse i386 Packages [28 B]
Ign http://de.archive.ubuntu.com vivid-updates/main Translation-en_US          
Ign http://de.archive.ubuntu.com vivid-updates/multiverse Translation-en_US    
Ign http://de.archive.ubuntu.com vivid-updates/restricted Translation-en_US    
Ign http://de.archive.ubuntu.com vivid-updates/universe Translation-en_US      
Fetched 244 kB in 7s (32,3 kB/s)                                               
Reading package lists... Done
W: GPG error: http://de.archive.ubuntu.com vivid-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  account-plugin-aim account-plugin-facebook account-plugin-flickr
  account-plugin-google account-plugin-jabber account-plugin-salut
  account-plugin-twitter account-plugin-windows-live account-plugin-yahoo
  empathy empathy-common ethereum geth libaccount-plugin-generic-oauth
  libaccount-plugin-google mcp-account-manager-uoa mist
17 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8.972 kB of archives.
After this operation, 3.072 B disk space will be freed.
WARNING: The following packages cannot be authenticated!
  mcp-account-manager-uoa account-plugin-yahoo account-plugin-salut
  account-plugin-jabber account-plugin-aim empathy empathy-common
  libaccount-plugin-generic-oauth account-plugin-facebook
  account-plugin-flickr libaccount-plugin-google account-plugin-google
  account-plugin-twitter account-plugin-windows-live
E: There are problems and -y was used without --force-yes
Reading package lists... Done
Building dependency tree       
Reading state information... Done
software-properties-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
gpg: keyring `/tmp/tmpeoldeq1k/secring.gpg' created
gpg: keyring `/tmp/tmpeoldeq1k/pubring.gpg' created
gpg: requesting key 923F6CA9 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpeoldeq1k/trustdb.gpg: trustdb created
gpg: key 923F6CA9: public key "Launchpad PPA for Ethereum" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
gpg: keyring `/tmp/tmpx4xmcyag/secring.gpg' created
gpg: keyring `/tmp/tmpx4xmcyag/pubring.gpg' created
gpg: requesting key 923F6CA9 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpx4xmcyag/trustdb.gpg: trustdb created
gpg: key 923F6CA9: public key "Launchpad PPA for Ethereum" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
Ign http://dl.google.com stable InRelease
Ign http://security.ubuntu.com vivid-security InRelease                        
Ign http://de.archive.ubuntu.com vivid InRelease                               
Ign http://dl.google.com stable InRelease                                      
Ign http://de.archive.ubuntu.com vivid-updates InRelease                       
Get:1 http://security.ubuntu.com vivid-security Release.gpg [933 B]            
Hit http://dl.google.com stable Release.gpg                                    
Ign http://de.archive.ubuntu.com vivid-backports InRelease                     
Get:2 http://security.ubuntu.com vivid-security Release [63,5 kB]              
Hit http://de.archive.ubuntu.com vivid Release.gpg                             
Get:3 http://de.archive.ubuntu.com vivid-updates Release.gpg [933 B]           
Hit http://de.archive.ubuntu.com vivid-backports Release.gpg                   
Hit http://de.archive.ubuntu.com vivid Release                                 
Get:4 http://security.ubuntu.com vivid-security/main Sources [10,8 kB]         
Hit http://de.archive.ubuntu.com vivid-updates Release                         
Hit http://de.archive.ubuntu.com vivid-backports Release                       
Get:5 http://security.ubuntu.com vivid-security/restricted Sources [28 B]      
Hit http://dl.google.com stable Release.gpg                                    
Hit http://de.archive.ubuntu.com vivid/main Sources                            
Get:6 http://security.ubuntu.com vivid-security/universe Sources [3.150 B]     
Hit http://dl.google.com stable Release                                        
Hit http://de.archive.ubuntu.com vivid/restricted Sources                      
Get:7 http://security.ubuntu.com vivid-security/multiverse Sources [28 B]      
Hit http://dl.google.com stable Release                                        
Hit http://de.archive.ubuntu.com vivid/universe Sources                        
Get:8 http://security.ubuntu.com vivid-security/main amd64 Packages [28,0 kB]  
Hit http://dl.google.com stable/main amd64 Packages                            
Hit http://de.archive.ubuntu.com vivid/multiverse Sources                      
Get:9 http://security.ubuntu.com vivid-security/restricted amd64 Packages [28 B]
Hit http://de.archive.ubuntu.com vivid/main amd64 Packages                     
Hit http://dl.google.com stable/main i386 Packages                             
Get:10 http://security.ubuntu.com vivid-security/universe amd64 Packages [11,0 kB]
Hit http://de.archive.ubuntu.com vivid/restricted amd64 Packages               
Hit http://de.archive.ubuntu.com vivid/universe amd64 Packages                 
Get:11 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [28 B]
Hit http://de.archive.ubuntu.com vivid/multiverse amd64 Packages               
Ign http://ppa.launchpad.net vivid InRelease                                   
Hit http://dl.google.com stable/main amd64 Packages                            
Get:12 http://security.ubuntu.com vivid-security/main i386 Packages [27,5 kB]  
Hit http://de.archive.ubuntu.com vivid/main i386 Packages                      
Ign http://ppa.launchpad.net vivid InRelease                                   
Hit http://de.archive.ubuntu.com vivid/restricted i386 Packages                
Get:13 http://security.ubuntu.com vivid-security/restricted i386 Packages [28 B]
Ign http://ppa.launchpad.net vivid InRelease                                   
Get:14 http://security.ubuntu.com vivid-security/universe i386 Packages [11,1 kB]
Hit http://ppa.launchpad.net vivid Release.gpg                                 
Hit http://dl.google.com stable/main i386 Packages                             
Hit http://de.archive.ubuntu.com vivid/universe i386 Packages                  
Get:15 http://security.ubuntu.com vivid-security/multiverse i386 Packages [28 B]
Hit http://ppa.launchpad.net vivid Release.gpg                                 
Hit http://de.archive.ubuntu.com vivid/multiverse i386 Packages                
Hit http://security.ubuntu.com vivid-security/main Translation-en              
Hit http://ppa.launchpad.net vivid Release.gpg                                 
Hit http://de.archive.ubuntu.com vivid/main Translation-en                     
Hit http://security.ubuntu.com vivid-security/multiverse Translation-en        
Hit http://ppa.launchpad.net vivid Release                                     
Hit http://de.archive.ubuntu.com vivid/multiverse Translation-en               
Hit http://security.ubuntu.com vivid-security/restricted Translation-en        
Hit http://ppa.launchpad.net vivid Release                                     
Hit http://de.archive.ubuntu.com vivid/restricted Translation-en               
Hit http://ppa.launchpad.net vivid Release                                     
Hit http://de.archive.ubuntu.com vivid/universe Translation-en                 
Hit http://ppa.launchpad.net vivid/main amd64 Packages                         
Hit http://security.ubuntu.com vivid-security/universe Translation-en          
Get:16 http://de.archive.ubuntu.com vivid-updates/main Sources [18,5 kB]       
Hit http://ppa.launchpad.net vivid/main i386 Packages                          
Hit http://ppa.launchpad.net vivid/main Translation-en                         
Get:17 http://de.archive.ubuntu.com vivid-updates/restricted Sources [28 B]    
Hit http://ppa.launchpad.net vivid/main amd64 Packages                         
Get:18 http://de.archive.ubuntu.com vivid-updates/universe Sources [4.974 B]   
Hit http://ppa.launchpad.net vivid/main i386 Packages                          
Get:19 http://de.archive.ubuntu.com vivid-updates/multiverse Sources [28 B]    
Hit http://ppa.launchpad.net vivid/main Translation-en                         
Get:20 http://de.archive.ubuntu.com vivid-updates/main amd64 Packages [43,2 kB]
Hit http://ppa.launchpad.net vivid/main amd64 Packages                         
Hit http://ppa.launchpad.net vivid/main i386 Packages                          
Get:21 http://de.archive.ubuntu.com vivid-updates/restricted amd64 Packages [28 B]
Get:22 http://de.archive.ubuntu.com vivid-updates/universe amd64 Packages [20,8 kB]
Hit http://ppa.launchpad.net vivid/main Translation-en                         
Get:23 http://de.archive.ubuntu.com vivid-updates/multiverse amd64 Packages [28 B]
Get:24 http://de.archive.ubuntu.com vivid-updates/main i386 Packages [42,8 kB] 
Get:25 http://de.archive.ubuntu.com vivid-updates/restricted i386 Packages [28 B]
Get:26 http://de.archive.ubuntu.com vivid-updates/universe i386 Packages [20,7 kB]
Ign http://dl.google.com stable/main Translation-en_US                        
Hit http://de.archive.ubuntu.com vivid-updates/multiverse i386 Packages
Ign http://dl.google.com stable/main Translation-en                
Ign http://dl.google.com stable/main Translation-en_US
Ign http://dl.google.com stable/main Translation-en
Hit http://de.archive.ubuntu.com vivid-updates/main Translation-en
Hit http://de.archive.ubuntu.com vivid-updates/multiverse Translation-en
Hit http://de.archive.ubuntu.com vivid-updates/restricted Translation-en
Hit http://de.archive.ubuntu.com vivid-updates/universe Translation-en
Hit http://de.archive.ubuntu.com vivid-backports/main Sources
Hit http://de.archive.ubuntu.com vivid-backports/restricted Sources
Hit http://de.archive.ubuntu.com vivid-backports/universe Sources
Hit http://de.archive.ubuntu.com vivid-backports/multiverse Sources
Hit http://de.archive.ubuntu.com vivid-backports/main amd64 Packages
Hit http://de.archive.ubuntu.com vivid-backports/restricted amd64 Packages
Hit http://de.archive.ubuntu.com vivid-backports/universe amd64 Packages
Hit http://de.archive.ubuntu.com vivid-backports/multiverse amd64 Packages
Hit http://de.archive.ubuntu.com vivid-backports/main i386 Packages
Hit http://de.archive.ubuntu.com vivid-backports/restricted i386 Packages
Hit http://de.archive.ubuntu.com vivid-backports/universe i386 Packages
Hit http://de.archive.ubuntu.com vivid-backports/multiverse i386 Packages
Hit http://de.archive.ubuntu.com vivid-backports/main Translation-en
Hit http://de.archive.ubuntu.com vivid-backports/multiverse Translation-en
Hit http://de.archive.ubuntu.com vivid-backports/restricted Translation-en
Hit http://de.archive.ubuntu.com vivid-backports/universe Translation-en
Fetched 308 kB in 4s (73,9 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
cloud-utils is already the newest version.
git is already the newest version.
ntp is already the newest version.
unzip is already the newest version.
wget is already the newest version.
nodejs is already the newest version.
npm is already the newest version.
The following NEW packages will be installed:
  eth
0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
Need to get 152 kB of archives.
After this operation, 545 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ethereum/ethereum-dev/ubuntu/ vivid/main eth amd64 0.9.18+11SNAPSHOT20150511223920vivid-0ubuntu1 [152 kB]
Fetched 152 kB in 1s (95,9 kB/s)    
Selecting previously unselected package eth.
(Reading database ... 484401 files and directories currently installed.)
Preparing to unpack .../eth_0.9.18+11SNAPSHOT20150511223920vivid-0ubuntu1_amd64.deb ...
Unpacking eth (0.9.18+11SNAPSHOT20150511223920vivid-0ubuntu1) ...
Setting up eth (0.9.18+11SNAPSHOT20150511223920vivid-0ubuntu1) ...
Cloning into 'www'...
remote: Counting objects: 1148, done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 1148 (delta 36), reused 0 (delta 0), pack-reused 1049
Receiving objects: 100% (1148/1148), 168.95 KiB | 0 bytes/s, done.
Resolving deltas: 100% (549/549), done.
Checking connectivity... done.
Already up-to-date.

> [email protected] install /home/ligi/bin/www/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

make: Entering directory '/home/ligi/bin/www/node_modules/ws/node_modules/bufferutil/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
make: Leaving directory '/home/ligi/bin/www/node_modules/ws/node_modules/bufferutil/build'

> [email protected] install /home/ligi/bin/www/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild

make: Entering directory '/home/ligi/bin/www/node_modules/ws/node_modules/utf-8-validate/build'
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory '/home/ligi/bin/www/node_modules/ws/node_modules/utf-8-validate/build'
npm ERR! Failed to change folder ownership under npm cache for %s /home/ligi/.npm/_git-remotes/git-github-com-debris-bignumber-js-744e7959
npm ERR! Failed to change folder ownership under npm cache for %s /home/ligi/.npm/_git-remotes/git-github-com-debris-bignumber-js-fc04e1c5
npm ERR! notarget No compatible version found: bignumber.js@'debris/bignumber.js#master'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.4.0","1.4.1","1.5.0","2.0.0","2.0.1","2.0.2","2.0.3","2.0.5","2.0.6","2.0.7"]
npm ERR! notarget 
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! System Linux 3.19.0-16-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/ligi/bin/www
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code ETARGET
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/ligi/bin/www/npm-debug.log
npm ERR! not ok code 0
npm WARN optional dep failed, continuing [email protected]
/usr/local/bin/pm2 -> /usr/local/lib/node_modules/pm2/bin/pm2
[email protected] /usr/local/lib/node_modules/pm2
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

JSON processes.json not found - At the end of the execution of "./bin/update.sh"

Hi,

I have updated the API client with "./bin/update.sh" and I get an error message "SON processes.json not found". Where is the processes.json? There is only a processes-ec2.json in eth-net-intelligence-api, and not a processes.json

==> Updating eth-netstats client
./bin/update.sh: line 75: cd: /home/skydog/bin/www: No such file or directory
Already up-to-date.

==> Ethereum was updated successfully

==> Restarting processes
[PM2] Spawning PM2 daemon
[PM2] PM2 Successfully daemonized
[PM2][ERROR] JSON processes.json not found

TypeError: object is not a function

with version 5029c39:

2016-02-20 15:07 +00:00: [eth] =✘= TypeError: object is not a function
    at Node.startWeb3Connection (/home/pi/eth-net-intelligence-api/lib/node.js:137:9)
    at new Node (/home/pi/eth-net-intelligence-api/lib/node.js:128:7)
    at Object.<anonymous> (/home/pi/eth-net-intelligence-api/app.js:5:12)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function._load (/usr/local/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21)
    at Object.<anonymous> (/usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js:28:21)
    at Module._compile (module.js:456:26)

How do you connect to a local eth-netstats node?

Could you please provide instructions on how to connect to a local eth-netstats node? I have the node running just fine, but I don't see how to connect to it, I tried setting WS_SERVER to "wss://localhost:3000" but nothing happens. And on the eth-netstats server, how do I set the port + secret + etc? On the documentation, it reads "For full install instructions please read the wiki." But the wiki has no information about how to run your own node.

I keep getting this everytime I try to start with pm2

[wsc] =✓= The socket connection has been established.
node-app-0 [eth] =i= { id: 'lyylNycDev1',
node-app-0 stats:
node-app-0 { active: true,
node-app-0 syncing: false,
node-app-0 mining: false,
node-app-0 hashrate: 0,
node-app-0 peers: 0,
node-app-0 gasPrice: '20000000000',
node-app-0 uptime: 100 } }
node-app-0 [eth] =✘= TypeError: results.reverse is not a function
node-app-0 at /root/eth-net-intelligence-api/lib/node.js:622:21
node-app-0 at /root/eth-net-intelligence-api/node_modules/async/lib/async.js:52:16
node-app-0 at /root/eth-net-intelligence-api/node_modules/async/lib/async.js:361:13
node-app-0 at /root/eth-net-intelligence-api/node_modules/async/lib/async.js:52:16
node-app-0 at iterate (/root/eth-net-intelligence-api/node_modules/async/lib/async.js:260:24)
node-app-0 at async.forEachOfSeries.async.eachOfSeries (/root/eth-net-intelligence-api/node_modules/async/lib/async.js:281:9)
node-app-0 at _asyncMap (/root/eth-net-intelligence-api/node_modules/async/lib/async.js:355:9)
node-app-0 at Object.mapSeries (/root/eth-net-intelligence-api/node_modules/async/lib/async.js:347:20)
node-app-0 at Node.getHistory (/root/eth-net-intelligence-api/lib/node.js:601:8)
node-app-0 at Primus. (/root/eth-net-intelligence-api/lib/node.js:246:8)

Need help with [npm install pm2 -g]

root@ftcbcuxut20:~/eluvio-deb/www# npm install pm2 -g
▐ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine [email protected]: wanted: {"node":">=10.0.0"} (current: {"node":"8.10.0","npm":"3.5.2"})
loadDep:@pm2/pm2-version- ▄ ╢███████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:@pm2/pm2-version- ▀ ╢███████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:@pm2/pm2-version- ▀ ╢███████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm ERR! Linux 4.15.0-112-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "pm2" "-g"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror http://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /root/eluvio-deb/www/npm-debug.log
root@ftcbcuxut20:/eluvio-deb/www# /usr/bin/node --version
v8.10.0
root@ftcbcuxut20:
/eluvio-deb/www# dpkg -l |grep nodejs
ii nodejs 8.10.0dfsg-2ubuntu0.4 amd64 evented I/O for V8 javascript
ii nodejs-dev 8.10.0
dfsg-2ubuntu0.4 amd64 evented I/O for V8 javascript (development files)
ii nodejs-doc 8.10.0dfsg-2ubuntu0.4 all API documentation for Node.js, the javascript platform
root@ftcbcuxut20:
/eluvio-deb/www# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
root@ftcbcuxut20:~/eluvio-deb/www#

Can't connect anymore

I can't connect to either wss://rpc.ethstats.net or wss://stats.ethdev.com

Is there a new password?

Cannot find module 'chalk'

My node-app-err-0.log is throwing these errors:

2018-01-30 10:05 -08:00: Error: Cannot find module 'chalk'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/root/bin/www/lib/utils/logger.js:4:13)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)

I'm on Ubuntu 16.04.3 x64 and I just pulled from git

I tried to run npm install chalk -g and it completed successfully but it didn't make a difference...

Web3 connection attempt failed

Hi, i keep getting (error.log):

2016-01-16 20:58 +01:00: [eth] =✘= Web3 connection attempt #17 failed
2016-01-16 20:58 +01:00: [eth] =✘= Trying again in 9000 ms
2016-01-16 20:58 +01:00: [eth] =✘= Web3 connection attempt #18 failed
2016-01-16 20:58 +01:00: [eth] =✘= Trying again in 9500 ms
2016-01-16 20:59 +01:00: [eth] =✘= Web3 connection attempt #19 failed
2016-01-16 20:59 +01:00: [eth] =✘= Trying again in 10000 ms

I run geth with the following parameters:

geth --verbosity 3 --rpc=true --rpcport 13337 --rpccorsdomain '"*"' --etherbase '0x22a0fbf89ad1362d74f626436d8c4fc6dc4f0679' --extradata '06957e1269ca4519a181f24cbee8bf91' console 2>> /tmp/eth.log

This is my app.json:

[
  {
    "name"              : "node-app",
    "script"            : "app.js",
    "log_date_format"   : "YYYY-MM-DD HH:mm Z",
    "merge_logs"        : false,
    "watch"             : false,
    "max_restarts"      : 10,
    "exec_interpreter"  : "node",
    "exec_mode"         : "fork_mode",
    "env":
    {
      "NODE_ENV"        : "production",
      "RPC_HOST"        : "localhost",
      "RPC_PORT"        : "13337",
      "LISTENING_PORT"  : "30303",
      "INSTANCE_NAME"   : "...",
      "CONTACT_DETAILS" : "...",
      "WS_SERVER"       : "wss://stats.ethdev.com",
      "WS_SECRET"       : "...",
      "VERBOSITY"       : 2
    }
  }
]

Why does the connection fail? Ubuntu 14.4 Kernel 3.19.0-42-generic #48-Ubuntu x86_64 GNU/Linux.

Cheers

The application don't read the process.env

I'm trying to monitor an ethereum network (eth-netstats | eth-net-intelligence-api), I have 2 experimental nodes, and a "monitor" (all are virtual machines), and, when I try to detect information of the nodes, it, just get information of the local machine, so, I started reading the code, and the errors showed in screen, finishing whit the lib/node.js file, it have a variable (process.env) that I think, its not read because, the errors (without modifying the code) shows the default values.

I have already modified the app.json, and created an app2.json in the backend ("eth-net-intelligence-api"), and started them with the pm2, but it not worked, so, I installed a backend in each node and configured it as a localhost, that sends the information to the "monitor" host (this, modifying the lib/node.js file), it worked just to show the nodes in the page (frontend), but, don't show other information

And, this is the structure of the .json files

1

`[eth] =✘= Web3 connection attempt #0 failed`

I have already geth clients running in my machine. I want to install the api and connected to my geth clients.
I followed the readme and I have this processes.json file

"env":
	{
		"NODE_ENV"        : "production", // tell the client we're in production environment
		"RPC_HOST"        : "localhost", // eth JSON-RPC host
		"RPC_PORT"        : "8502", // eth JSON-RPC port
		"LISTENING_PORT"  : "30312", // eth listening port (only used for display)
		"INSTANCE_NAME"   : "", // whatever you wish to name your node
		"CONTACT_DETAILS" : "", // add your contact details here if you wish (email/skype)
		"WS_SERVER"       : "10.2.1.139", // path to eth-netstats WebSockets api server
		"WS_SECRET"       : "mypasswd", // WebSockets api server secret used for login
		"VERBOSITY"       : 2 // Set the verbosity (0 = silent, 1 = error, warn, 2 = error, warn, info, success, 3 = all logs)
	}

then when I run : npm start processes.json
I got this error:

[eth] =✘= Web3 connection attempt #0 failed

Socket error: Error: unexpected server response (403)

Hi.

After installation on an Ubuntu (16 lts) EC2 Instance I get error:

[wsc] =✘= Socket error: { Error: unexpected server response (403)
    at ClientRequest.response (/home/ubuntu/web/node_modules/ws/lib/WebSocket.js:719:15)
    at ClientRequest.g (events.js:291:16)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at HTTPParser.parserOnIncomingClient (_http_client.js:474:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
    at Socket.socketOnData (_http_client.js:363:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
  type: 'error',
  target: 
   WebSocket {
     domain: null,
     _events: { error: [Function: onerror] },
     _eventsCount: 1,
     _maxListeners: undefined,
     _socket: null,
     _ultron: null,
     _closeReceived: false,
     bytesReceived: 0,
     readyState: 3,
     supports: { binary: true },
     extensions: null,
     _binaryType: 'arraybuffer',
     _isServer: false,
     url: 'ws://localhost:8546/api/?_primuscb=LUzwiR9',
     protocolVersion: 13,
     _closeTimer: null,
     _closeCode: 1006 } }

nodejs-legacy installed.

geth with parameter "--ws" says:
$admin.startWS()
WebSocket RPC already running on localhost:8546

web3.net.getPeerCount TypeError: undefined is not a function

2015-07-30 15:50 +00:00: /home/pi/eth-net-intelligence-api/lib/node.js:489
                                web3.net.getPeerCount(callback);
                                         ^
TypeError: undefined is not a function
    at Object.async.parallel.peers (/home/pi/eth-net-intelligence-api/lib/node.js:489:14)
    at /home/pi/eth-net-intelligence-api/node_modules/async/lib/async.js:583:25
    at /home/pi/eth-net-intelligence-api/node_modules/async/lib/async.js:125:13
    at Array.forEach (native)
    at _each (/home/pi/eth-net-intelligence-api/node_modules/async/lib/async.js:46:24)
    at Object.async.each (/home/pi/eth-net-intelligence-api/node_modules/async/lib/async.js:124:9)
    at _parallel (/home/pi/eth-net-intelligence-api/node_modules/async/lib/async.js:582:20)
    at Object.async.parallel (/home/pi/eth-net-intelligence-api/node_modules/async/lib/async.js:598:9)
    at Node.getStats (/home/pi/eth-net-intelligence-api/lib/node.js:486:9)
    at Primus.<anonymous> (/home/pi/eth-net-intelligence-api/lib/node.js:241:8)

Using websocket instead of rpc

I am running my ethereum network with websocket instead of rpc (to use smart contract events). Is it possible to connect the netstat api to a websocket node?
Regards!

invalid IP address

Hi, i need help.

eth-err.log:
2016-05-07 02:34 -04:00: Fatal: Option nat: invalid IP address

nano eth-log.log:

2016-05-07 02:25 -04:00: Local IP: unavailable
Public IP: unavailable
Starting geth
geth --rpc --bootnodes enode://[email protected]$
2016-05-07 02:25 -04:00: Fatal: Option nat: invalid IP address
2016-05-07 02:25 -04:00: Fatal: Option nat: invalid IP address
2016-05-07 02:25 -04:00: Local IP: unavailable
2016-05-07 02:25 -04:00: Public IP: unavailable

installation error

georg@georg-CELSIUS-W380:~/eth-net-intelligence-api$ sudo npm install
npm http GET http://registry.npmjs.org/web3/0.15.1
npm http 304 http://registry.npmjs.org/web3/0.15.1
npm http GET http://registry.npmjs.org/bignumber.js
npm http GET http://registry.npmjs.org/crypto-js
npm http GET http://registry.npmjs.org/utf8
npm http GET http://registry.npmjs.org/xmlhttprequest
npm http 304 http://registry.npmjs.org/bignumber.js
npm http 304 http://registry.npmjs.org/utf8
npm http 304 http://registry.npmjs.org/crypto-js
npm http 304 http://registry.npmjs.org/xmlhttprequest
npm ERR! Error: No compatible version found: bignumber.js@'debris/bignumber.js#master'
npm ERR! Valid install targets:
npm ERR! ["1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.4.0","1.4.1","1.5.0","2.0.0","2.0.1","2.0.2","2.0.3","2.0.5","2.0.6","2.0.7","2.0.8","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4"]
npm ERR! at installTargetsError (/usr/share/npm/lib/cache.js:719:10)
npm ERR! at /usr/share/npm/lib/cache.js:638:10
npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR! at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]

npm ERR! System Linux 3.19.0-25-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/georg/eth-net-intelligence-api
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/georg/eth-net-intelligence-api/npm-debug.log
npm ERR! not ok code 0

How to run multiple nodes behind a single public IP address?

I have 3 separate machines running an Ethereum node in my local network. I tried to add them all to the network status page, but it appears as soon as I have more than one node online, the system fails to display them correctly.

Is that by design that there should be one node per IP? Connecting only a single node works as desired.

Too many "Web3 connection attempt"s

On Mac OS X 10.9.5, when the geth --rpc instance gets in a funk, freezes, or fails to respond, pm2 node-app process error logs "[eth] =x= Web3 connection attempt #NNN failed" at the rate of 60 records per minute, various SyntaxErrors scattered throughout the log, along with the spawning of countless "(node)" processes, ultimately exhausting all of the system resources. Perhaps some sort of additional connection rate limiting is needed in lib/node.js Node.prototype.checkWeb3Connection = function()? Or how to keep node process forking under better control when there are connection errors?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.