z-classic / z-nomp

z-nomp is mining pool software for Zcash and Zclassic so you can create internet money in your home!
MIT License
289 stars 441 forks source link

Job timeout #87

Closed JackMiner153 closed 7 years ago

JackMiner153 commented 7 years ago

Error in the last version ZEC: Stratum - connecting to '192.168.2.2' <192.168.2.2> port 3032 ZEC: Stratum - Connected (192.168.2.2:3032) (unsecure) ZEC: Job timeout, disconnect, retry in 20 sec...

WaveringAna commented 7 years ago

can you make a new config using the new examples?

JackMiner153 commented 7 years ago

i'm already did it "tlsOptions": { "enabled": false, "serverKey":"", "serverCert":"", "ca":"" },

"ports": { "3032": { "diff": 0.05, "tls": false, "varDiff": { "minDiff": 0.04, "maxDiff": 16, "targetTime": 15, "retargetTime": 60, "variancePercent": 30 } } },

CloudMiningPool commented 7 years ago

Same here ... using nheqminer error is :

stratum | Connected! stratum | read_until: End of File stratum | Reconnecting in 3 seconds

With GPU Claymore

ZEC: Job timeout, disconnect, retry in 20 sec

CloudMiningPool commented 7 years ago

into z-nomp directory

#~/z-nomp# git pull remote: Counting objects: 16, done. remote: Total 16 (delta 11), reused 11 (delta 11), pack-reused 5 Unpacking objects: 100% (16/16), done. From https://github.com/joshuayabut/node-open-mining-portal 9199a6e..69cae62 master -> origin/master

#~/z-nomp# rm -r node_modules #~/z-nomp# npm update

after update ...........

make: Leaving directory '/home/z-nomp/node_modules/bignum/build' z-nomp@0.0.4 /home/z-nomp ├── async@2.1.4 ├── bignum@0.12.5 ├── body-parser@1.16.1 ├── colors@1.1.2 ├── compression@1.6.2 ├── dateformat@2.0.0 ├── dot@1.1.1 ├── express@4.14.1 ├── extend@3.0.0 ├── mysql@2.13.0 ├── node-json-minify@1.0.0 ├── node-watch@0.4.1 ├── nonce@1.0.4 ├── redis@2.6.5 ├── request@2.79.0 └── stratum-pool@0.1.6 (git+https://github.com/z-classic/node-stratum-pool.git#a5ba489aa6aeb9d4d9126225d4d2fee11651e943)

edit : pool_configs/zcash.json

"tlsOptions": { "enabled": false, "serverKey":"/etc/letsencrypt/live/{domain}/privkey.pem", "serverCert":"/etc/letsencrypt/live/{domain}/cert.pem", "ca":"/etc/letsencrypt/live/{domain}/chain.pem" },

"ports": {
    "3020": {
        "diff": 0.05,
        **"tls": false,**
        "varDiff": {
            "minDiff": 0.01,
            "maxDiff": 16,
            "targetTime": 15,
            "retargetTime": 60,
            "variancePercent": 30
        }
    }
},

with true and false stratum pool not work

WaveringAna commented 7 years ago

If you're not using TLS, connect to the startum normally, if you are, please consult your miners documentation on how to connect

JackMiner153 commented 7 years ago

i know how to connect without TLS and previous version working fine

CloudMiningPool commented 7 years ago

Before last commit also my pool working well .. I try to remove/set false to tls options and tlsOptions but without success.

i will try to use console.log to find more informations

CloudMiningPool commented 7 years ago

Problem solved .. you need to modify this node_modules/stratum-pool/lib/stratum.js at row 445/447

var serversStarted = 0; Object.keys(options.ports).forEach(function(port){ if (port.tls = "false" || undefined) { ................................................................................. } else if (port.tls = "true" ) {

it's work with true and false

please commit this, Regards

WaveringAna commented 7 years ago

should be fixed, remove your node_modules and then npm install

WaveringAna commented 7 years ago

Confirmed with #88 that this works, thanks