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

Please Help: ECONNREFUSED for BTC Configs #299

Open Mentors4EDU opened 5 years ago

Mentors4EDU commented 5 years ago
[2018-10-10 13:33:23.861] [DEBUG] [default] - Pool bitcoin Thread 6 Could not start pool, error with init batch RPC call: {"type":"offline","message":"connect ECONNREFUSED"}
[2018-10-10 13:33:23.862] [DEBUG] [default] - Pool bitcoin Thread 6 Share processing setup with redis (127.0.0.1:6379)
[2018-10-10 13:33:24.014] [DEBUG] [default] - Master PoolSpawner Spawned 1 pool(s) on 8 thread(s)
[2018-10-10 13:33:24.101] [INFO] [default] - New Relic
[2018-10-10 13:33:24.105] [INFO] [default] - Setting POSIX
[2018-10-10 13:33:24.105] [INFO] [default] - POSIX Set
[2018-10-10 13:33:24.105] [INFO] [default] - Run Workers
[2018-10-10 13:33:24.113] [INFO] [default] - Switching Setup Thread 7 Loading last proxy state from redis
null
[2018-10-10 13:33:24.119] [DEBUG] [default] - Pool bitcoin Thread 7 Could not start pool, error with init batch RPC call: {"type":"offline","message":"connect ECONNREFUSED"}
[2018-10-10 13:33:24.120] [DEBUG] [default] - Pool bitcoin Thread 7 Share processing setup with redis (127.0.0.1:6379)
[2018-10-10 13:33:24.356] [INFO] [default] - New Relic
[2018-10-10 13:33:24.360] [INFO] [default] - Setting POSIX
[2018-10-10 13:33:24.360] [INFO] [default] - POSIX Set
[2018-10-10 13:33:24.360] [INFO] [default] - Run Workers
[2018-10-10 13:33:24.367] [INFO] [default] - Switching Setup Thread 8 Loading last proxy state from redis
null
[2018-10-10 13:33:24.373] [DEBUG] [default] - Pool bitcoin Thread 8 Could not start pool, error with init batch RPC call: {"type":"offline","message":"connect ECONNREFUSED"}
[2018-10-10 13:33:24.374] [DEBUG] [default] - Pool bitcoin Thread 8 Share processing setup with redis (127.0.0.1:6379)
[2018-10-10 13:33:31.982] [DEBUG] [default] - Master CLI CLI listening on port 17117
[2018-10-10 13:33:32.316] [INFO] [default] - New Relic
[2018-10-10 13:33:32.320] [INFO] [default] - Setting POSIX
[2018-10-10 13:33:32.320] [INFO] [default] - POSIX Set
[2018-10-10 13:33:32.320] [INFO] [default] - Run Workers
[2018-10-10 13:33:32.326] [INFO] [default] - New Relic
[2018-10-10 13:33:32.328] [ERROR] [default] - Payments bitcoin Error with payment processing daemon {"type":"offline","message":"connect ECONNREFUSED"}
[2018-10-10 13:33:32.330] [INFO] [default] - Setting POSIX
[2018-10-10 13:33:32.330] [INFO] [default] - POSIX Set
[2018-10-10 13:33:32.330] [INFO] [default] - Run Workers
[2018-10-10 13:33:32.359] [DEBUG] [default] - Website Server Website started on 0.0.0.0:7830
[2018-10-10 13:33:32.406] [ERROR] [default] - Website bitcoin Could not dumpprivkey for bitcoin {"type":"offline","message":"connect ECONNREFUSED"}

bitcoin.json

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

    "auxes": [ // Defines auxillery coins
        {
            "coin": "bitcoin.json",
            "daemons": [ // It is reccomended to supply multiple daemons here for redundancy
                {
                    "host": "127.0.0.1",
                    "port": 23327,
                    "user": "bitcoinrpc",
                    "password": "PasswordHere"
                }
            ]
        }
    ],
    "address": "372wpDG4rXrz3E8pP8nvE5jt3SsHNNbYTX",

    "rewardRecipients": {
        "3JrGs746CaUxcg2x19EzpYYaTkyVhjh7sv": 39.0,
        "32SKT7UXfknBZP7mCfucnakSwUo1AtdVtf": 0.1
    },

    "paymentProcessing": {
        "enabled": true,
        "paymentInterval": 600,
        "minimumPayment": 0.0001,
        "daemon": {
            "host": "127.0.0.1",
            "port": 19332,
            "user": "bitcoinrpc",
            "password": "PasswordHere"
        }
    },

    "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": "testuser",
            "password": "testpass"
        }
    ],

    "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": "btc",
        "checkPassword": false,
        "autoCreateWorker": false
    }

}

bitcoin.conf

rpcconnect=127.0.0.1
rpcallowip=*
server=1
rpcuser=bitcoinrpc
rpcpassword=EnterPass
rpcport=23327
port=19332
addnode=54.39.107.205
daemon=1
gen=0

config.json


{
    "logLevel": "debug",
    "logColors": true,

    "cliPort": 17117,

    "clustering": {
        "enabled": true,
        "forks": "auto"
    },

    "defaultPoolConfigs": {
        "blockRefreshInterval": 1000,
        "jobRebroadcastTimeout": 55,
        "connectionTimeout": 600,
        "emitInvalidBlockHashes": false,
        "validateWorkerUsername": true,
        "tcpProxyProtocol": false,
        "banning": {
            "enabled": true,
            "time": 600,
            "invalidPercent": 50,
            "checkThreshold": 500,
            "purgeInterval": 300
        },
        "redis": {
            "host": "127.0.0.1",
            "port": 6379,
            "db": 0,
            "password": ""
        }
    },

    "website": {
        "enabled": true,
        "host": "0.0.0.0",
        "siteTitle": "PasswordHere",
        "port": 7830,
        "stratumHost": "54.39.107.205",
        "stats": {
            "updateInterval": 60,
            "historicalRetention": 43200,
            "hashrateWindow": 300,
            "graphColors": ["#058DC7", "#50B432", "#ED561B", "#DDDF00", "#24CBE5", "#64E572",
            "#FF9655", "#FFF263", "#6AF9C4"]
        },
        "adminCenter": {
            "enabled": true,
            "password": "password"
        }
    },

    "redis": {
        "host": "127.0.0.1",
        "port": 6379,
        "db": 0,
        "password": ""
    },

    "switching": {
        "switch1": {
            "enabled": true,
            "algorithm": "sha256",
            "ports": {
                "3333": {
                    "diff": 10,
                    "varDiff": {
                        "minDiff": 16,
                        "maxDiff": 512,
                        "targetTime": 15,
                        "retargetTime": 90,
                        "variancePercent": 30
                    }
                }
            }
        },
        "switch2": {
            "enabled": false,
            "algorithm": "scrypt",
            "ports": {
                "4444": {
                    "diff": 10,
                    "varDiff": {
                        "minDiff": 16,
                        "maxDiff": 512,
                        "targetTime": 15,
                        "retargetTime": 90,
                        "variancePercent": 30
                    }
                }
            }
        },
        "switch3": {
            "enabled": false,
            "algorithm": "x11",
            "ports": {
                "5555": {
                    "diff": 0.001,
                    "varDiff": {
                        "minDiff": 0.001,
                        "maxDiff": 1, 
                        "targetTime": 15, 
                        "retargetTime": 60, 
                        "variancePercent": 30 
                    }
                }
            }
        }
    },

    "profitSwitch": {
        "enabled": false,
        "updateInterval": 600,
        "depth": 0.90,
        "usePoloniex": true,
        "useBittrex": true
    }
}
Puual commented 5 years ago

You defined your deamon here which is not correct . Auxes are coins that are merged mined. And I think, bitcoin will not be the aux one :)

  "auxes": [ // Defines auxillery coins
        {
            "coin": "bitcoin.json",
            "daemons": [ // It is reccomended to supply multiple daemons here for redundancy
                {
                    "host": "127.0.0.1",
                    "port": 23327,
                    "user": "bitcoinrpc",
                    "password": "PasswordHere"
                }
            ]
        }
    ],

You need to define it there:

    "daemons": [
        {
            "host": "127.0.0.1",
            "port": 19332,
            "user": "testuser",
            "password": "testpass"
        }
    ],
emenike84 commented 3 years ago

its still not working