UNOMP / unified-node-open-mining-portal

Development stopped and is now unsupported. The node.js version is being deprecated in October 2016.
GNU General Public License v2.0
347 stars 395 forks source link

Error with RPC Call and can't run posix #290

Open Mentors4EDU opened 6 years ago

Mentors4EDU commented 6 years ago

I keep getting this error everytime I try running node init.js. I don't know if it has to do with the ports I am listening too or why it wouldn't allow me to have bind access. I am running both Monero & Dash as well as Redis and have created the config files already. I looked on GitHub for common problems but haven't been able to seemingly find anything wrong with the RPC. I had both similar problems to UNOMP as I did with zone117x's cryptonote mining portal. Tried doing NPM Install Bindings and it has the bindings file. For some reason also I am entirely unable to install Posix even doing sudo npm install posix or sudo npm install -g posix. Lots of people suggested updating NPM or changing the version of nvm which I also previously tried. Other things I tried, was reinstalling NPM, doing node update multiple times, or even deleting the .npm private directories and modules and trying again. All suggestions didn't fully work, and even using the Forever NPM package to do forever start init.js didn't work either (but was helpful in generating a better log). Does anyone have a suggestion why this error keeps re-occuring on loop when I run init.js or why I can't install posix?

Thanks so much in advanced to anyone who helps me. Any help would be greatly appreciated.

``proxy state from redis
null
[2018-05-12 15:14:31.236] [DEBUG] [default] - Pool dash Thread 24 Could not start pool, error with init batch RPC call: {"type":"offline","message":"connect ECONNREFUSED"}
null
[2018-05-12 15:14:31.237] [DEBUG] [default] - Pool monero Thread 24 Could not start pool, error with init batch RPC call: {"type":"offline","message":"connect ECONNREFUSED"}
[2018-05-12 15:14:31.239] [DEBUG] [default] - Pool dash Thread 24 Share processing setup with redis (127.0.0.1:6379)
[2018-05-12 15:14:31.239] [DEBUG] [default] - Pool monero Thread 24 Share processing setup with redis (127.0.0.1:6379)
[2018-05-12 15:14:34.549] [DEBUG] [default] - Master CLI CLI listening on port 17117
[2018-05-12 15:14:35.111] [INFO] [default] - New Relic
[2018-05-12 15:14:35.116] [INFO] [default] - POSIX Not Installed
[2018-05-12 15:14:35.117] [INFO] [default] - Run Workers
[2018-05-12 15:14:35.133] [ERROR] [default] - Payments dash Error with payment processing daemon {"type":"offline","message":"connect ECONNREFUSED"}
[2018-05-12 15:14:35.135] [ERROR] [default] - Payments monero Error with payment processing daemon {"type":"offline","message":"connect ECONNREFUSED"}
[2018-05-12 15:14:35.143] [INFO] [default] - New Relic
[2018-05-12 15:14:35.148] [INFO] [default] - POSIX Not Installed
[2018-05-12 15:14:35.149] [INFO] [default] - Run Workers

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: bind EACCES
    at errnoException (net.js:901:11)
    at net.js:1069:30
    at Object.26:1 (cluster.js:592:5)
    at handleResponse (cluster.js:171:41)
    at respond (cluster.js:192:5)
    at handleMessage (cluster.js:202:5)
    at process.EventEmitter.emit (events.js:117:20)
    at handleMessage (child_process.js:318:10)
    at Pipe.channel.onread (child_process.js:345:11)
[2018-05-12 15:14:35.232] [ERROR] [default] - Master Website Website process died, spawning replacement...
[2018-05-12 15:14:37.800] [INFO] [default] - New Relic
[2018-05-12 15:14:37.805] [INFO] [default] - POSIX Not Installed
[2018-05-12 15:14:37.806] [INFO] [default] - Run Workers

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: bind EACCES
    at errnoException (net.js:901:11)
    at net.js:1069:30
    at Object.27:1 (cluster.js:592:5)
    at handleResponse (cluster.js:171:41)
    at respond (cluster.js:192:5)
    at handleMessage (cluster.js:202:5)
    at process.EventEmitter.emit (events.js:117:20)
    at handleMessage (child_process.js:318:10)
    at Pipe.channel.onread (child_process.js:345:11)
[2018-05-12 15:14:37.875] [ERROR] [default] - Master Website Website process died, spawning replacement...
[2018-05-12 15:14:40.436] [INFO] [default] - New Relic
[2018-05-12 15:14:40.441] [INFO] [default] - POSIX Not Installed
[2018-05-12 15:14:40.441] [INFO] [default] - Run Workers

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: bind EACCES
    at errnoException (net.js:901:11)
    at net.js:1069:30
    at Object.28:1 (cluster.js:592:5)
    at handleResponse (cluster.js:171:41)
    at respond (cluster.js:192:5)
    at handleMessage (cluster.js:202:5)
    at process.EventEmitter.emit (events.js:117:20)
    at handleMessage (child_process.js:318:10)
    at Pipe.channel.onread (child_process.js:345:11)
[2018-05-12 15:14:40.519] [ERROR] [default] - Master Website Website process died, spawning replacement...
[2018-05-12 15:14:43.077] [INFO] [default] - New Relic
[2018-05-12 15:14:43.082] [INFO] [default] - POSIX Not Installed
[2018-05-12 15:14:43.083] [INFO] [default] - Run Workers

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: bind EACCES
    at errnoException (net.js:901:11)
    at net.js:1069:30
    at Object.29:1 (cluster.js:592:5)
    at handleResponse (cluster.js:171:41)
    at respond (cluster.js:192:5)
    at handleMessage (cluster.js:202:5)
    at process.EventEmitter.emit (events.js:117:20)
    at handleMessage (child_process.js:318:10)
    at Pipe.channel.onread (child_process.js:345:11)
[2018-05-12 15:14:43.156] [ERROR] [default] - Master Website Website process died, spawning replacement...
Mentors4EDU commented 6 years ago

I was running redis-stable from my computer doing ./redis-server

Now I also decided to install the node packages redis and node-redis and ended up with a slightly different error for node init.js. This time the error is:

`[2018-05-12 15:57:10.897] [DEBUG] [default] - Pool monero Thread 24 Could not start pool, error with init batch RPC call: {"type":"offline","message":"connect ECONNREFUSED"}
[2018-05-12 15:57:10.899] [DEBUG] [default] - Pool dash Thread 24 Share processing setup with redis (127.0.0.1:6379)
[2018-05-12 15:57:10.900] [DEBUG] [default] - Pool monero Thread 24 Share processing setup with redis (127.0.0.1:6379)

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: listen EADDRINUSE
    at errnoException (net.js:901:11)
    at Server._listen2 (net.js:1039:14)
    at listen (net.js:1061:10)
    at net.js:1143:9
    at dns.js:72:18
    at process._tickCallback (node.js:415:13)
`

Any suggestions?

Update:: If I run the command killall -9 node for killing the node processes, and then run node init.js again, it runs into the original error. So it is likely a connection problem that could be related to ports. How do I find out though which port or what I shouldn't be running?