Open isaack0815 opened 6 years ago
I'm having the same problem on CentOS7, When I run the "coin-hive-stratum 8892 - host = pool.supportxmr.com --port = 3333" command, everything is setup correctly and working fine, but when I try to run "proxy.js" with PM2, the proxy/service doesn't seem to work at all/not online/not listening on ports/not even started, I think.
Following this. PS: Try to see if the " are correctly placed (at const Proxy = require("coin-hive-stratum"); )
PPS: Be sure to run from the coin-hive-stratum directory, this seems to help too
you might try implementing your proxy as a regular node program, thus:
mkdir proxy cd proxy/ npm init <-- just use the defaults npm install --save coin-hive-stratum vi proxy.js <-- from the wiki node proxy.js <-- as a test pm2 start proxy.js --name=proxy --log-date-format="YYYY-MM-DD HH:mm" <-- from the wiki
Run npm install coin-hive-stratum inside the folder where 'script' is.
hay, when I start the proxy with pm2 I always get the following error:
but I have coin-hive-stratum with the command npm i -g pm2 coin-hive-stratum installed.
I can also do the proxy with the command coin-hive-stratum 8892 - host = pool.supportxmr.com --port = 3333 start. but not with pm2
an idea of what that may be?