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

RPC error while running init.js #311

Open shakibebz opened 3 years ago

shakibebz commented 3 years ago

Im working on a mining pool project and i wana use unomp proxy. I tired to run init.js file but I had an error: Pool litecoin Thread 4 Could not start pool, error with init batch RPC call: {"type":"offline","message":"connect ECONNREFUSED"}

I also have these lines :

Payments litecoin Error with payment processing daemon {"type":"offline","message":"connect ECONNREFUSED"} [2021-02-06 07:44:52.952] [DEBUG] [default] - Website Server Website started on 0.0.0.0:8070 [2021-02-06 07:44:53.035] [ERROR] [default] - Website litecoin Could not dumpprivkey for litecoin {"type":"offline","message":"connect ECONNREFUSED"}

Any suggestion??

TheComputerGenie commented 3 years ago

ECONNREFUSED means that your daemon is refusing outside connections, this can be because of being offline or bad config credentials

shakibebz commented 3 years ago

ECONNREFUSED means that your daemon is refusing outside connections, this can be because of being offline or bad config credential

I opend every necessary port that I know. do you think there is some port that i missed and forgot to open them? what do you mean for bad config? this is my litecoin.jason file in pool_configs:

{ "enabled": true, "coin": "litecoin.json",

"auxes": [],
"address": "LhbwNk5XaoYY1VdM6KurWLJY1eJEYGsA53",

"rewardRecipients": {
    "LaHmavLvpDKzEwKue2iZmypuAtykJVZjND": 1.5,
    "LNFG69GAaDkfTViYZpabN1jBrprL5cgL22": 0.1
},

"paymentProcessing": {
    "enabled": true,
    "paymentInterval": 30,
    "minimumPayment": 0.01,
    "daemon": {
        "host": "127.0.0.1",
        "port": 19332,
        "user": "virtualcoin2018",
        "password": "kamisama123"
    }
},

"ports": {
    "3008": {
        "diff": 8
    },
    "3032": {
        "diff": 32,
        "varDiff": {
            "minDiff": 8,
            "maxDiff": 512,
            "targetTime": 15,
            "retargetTime": 90,
            "variancePercent": 30
        }
    },
    "3256": {
        "diff": 256
    }
},

"daemons": [
    {
        "host": "127.0.0.1",
        "port": 19332,
        "user": "litecoinrpc",
        "password": "kamisama123"
    }
],

"p2p": {
    "enabled": false,
    "host": "127.0.0.1",
    "port": 19333,
    "disableTransactions": false
},

"mposMode": {
    "enabled": false,
    "host": "127.0.0.1",
    "port": 3306,
    "user": "me",
    "password": "mypass",
    "database": "ltc",
    "checkPassword": false,
    "autoCreateWorker": false
}

}