Closed daithi-coombes closed 5 years ago
Issue is with pm2, have recreated it outside of container.
Here is the app.json:
{
"name" : "mynode-0",
"cwd" : ".",
"script" : "app.js",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"merge_logs" : false,
"watch" : false,
"exec_interpreter" : "node",
"exec_mode" : "fork_mode",
"env":
{
"NODE_ENV" : "production",
"RPC_HOST" : "1.2.3.4", // my parity ip address
"RPC_PORT" : "8545", // http rpc_api port for my parity node
"INSTANCE_NAME" : "mynode-0",
"WS_SERVER" : "http://localhost:3000",
"WS_SECRET" : "pswd",
}
}
Found solution. Don't bother to create pm2 json
for eth-netstats
. Instead run node daemon directly
WS_SECRET=pswd pm2 start ./bin/www
All seems good, am running
ethnetstats
andeth-intelligence-api
from within same container. But can't accesshttp://localhost:3000
, I'm trying to monitor a parity node. Its up and can connect using web3 no problem.When running 1st I get the following from
eth-netstats
:Think it could be related to: #293 The above error only shows once, so could be false positive whilst
netstat
is waiting forintelligence-api
to load?Anyways, the logs seem to be working...
I've disabled firewall also, and ports are exposed for
eth-netstats
but notintelligence-api
as they're in same container