xmrig / xmrig-proxy

Monero (XMR) Stratum protocol proxy
https://xmrig.com/proxy
GNU General Public License v3.0
613 stars 338 forks source link

Proxy not work/not show connected miner (WOWNERO after hard fork) #459

Open queenofwhale opened 3 years ago

queenofwhale commented 3 years ago

Proxy show error "End of file" at start

image

oooo@ProxyX:~/xmrig-proxy-6.13.0$ tail -f proxyv13.log [2021-07-05 05:39:15.816] proxy 0.00 kH/s, shares: 0/0 +0, upstreams: 0, miners: 0 (max 0) +0/-0 [2021-07-05 05:40:15.877] proxy 0.00 kH/s, shares: 0/0 +0, upstreams: 0, miners: 0 (max 0) +0/-0 [2021-07-05 05:41:15.938] proxy 0.00 kH/s, shares: 0/0 +0, upstreams: 0, miners: 0 (max 0) +0/-0 [2021-07-05 05:42:16.002] proxy 0.00 kH/s, shares: 0/0 +0, upstreams: 0, miners: 0 (max 0) +0/-0 [2021-07-05 05:43:16.065] proxy 0.00 kH/s, shares: 0/0 +0, upstreams: 0, miners: 0 (max 0) +0/-0 [2021-07-05 05:44:16.123] proxy 0.00 kH/s, shares: 0/0 +0, upstreams: 0, miners: 0 (max 0) +0/-0 [2021-07-05 05:45:16.189] proxy 0.00 kH/s, shares: 0/0 +0, upstreams: 0, miners: 0 (max 0) +0/-0 [2021-07-05 05:46:16.250] proxy 0.00 kH/s, shares: 0/0 +0, upstreams: 0, miners: 0 (max 0) +0/-0 [2021-07-05 05:47:16.311] proxy 0.00 kH/s, shares: 0/0 +0, upstreams: 0, miners: 0 (max 0) +0/-0 [2021-07-05 05:48:16.372] proxy 0.00 kH/s, shares: 0/0 +0, upstreams: 0, miners: 0 (max 0) +0/-0 [2021-07-05 05:49:16.434] proxy 0.00 kH/s, shares: 0/0 +0, upstreams: 0, miners: 0 (max 0) +0/-0

oooo@ProxyX:~/xmrig-proxy-6.13.0$ tail -f accessv13.log [2021-07-05 02:41:16] #35 login: 20.197.72.107, "Wo39iXpwMaoVDeW4NXgpgDTMLm5G4cX5PRiybw2usGPjivayKAm4p8xZHFtRRryxFPcidvGYaVj7C4SAwjAdprF92i8epXM22", flow: "(null)", ua: "XMRig/6.13.1 (Linux x86_64) libuv/1.41.0 gcc/7.5.0", count: 0 [2021-07-05 02:41:36] #35 close: 20.197.72.107, "Wo39iXpwMaoVDeW4NXgpgDTMLm5G4cX5PRiybw2usGPjivayKAm4p8xZHFtRRryxFPcidvGYaVj7C4SAwjAdprF92i8epXM22", time: 20.0s, rx/tx: 534/0, count: 0 [2021-07-05 02:41:41] #36 login: 20.197.72.107, "Wo39iXpwMaoVDeW4NXgpgDTMLm5G4cX5PRiybw2usGPjivayKAm4p8xZHFtRRryxFPcidvGYaVj7C4SAwjAdprF92i8epXM22", flow: "(null)", ua: "XMRig/6.13.1 (Linux x86_64) libuv/1.41.0 gcc/7.5.0", count: 0 [2021-07-05 02:42:01] #36 close: 20.197.72.107, "Wo39iXpwMaoVDeW4NXgpgDTMLm5G4cX5PRiybw2usGPjivayKAm4p8xZHFtRRryxFPcidvGYaVj7C4SAwjAdprF92i8epXM22", time: 20.0s, rx/tx: 534/0, count: 0 [2021-07-05 02:42:06] #37 login: 20.197.72.107, "Wo39iXpwMaoVDeW4NXgpgDTMLm5G4cX5PRiybw2usGPjivayKAm4p8xZHFtRRryxFPcidvGYaVj7C4SAwjAdprF92i8epXM22", flow: "(null)", ua: "XMRig/6.13.1 (Linux x86_64) libuv/1.41.0 gcc/7.5.0", count: 0 [2021-07-05 02:42:26] #37 close: 20.197.72.107, "Wo39iXpwMaoVDeW4NXgpgDTMLm5G4cX5PRiybw2usGPjivayKAm4p8xZHFtRRryxFPcidvGYaVj7C4SAwjAdprF92i8epXM22", time: 20.0s, rx/tx: 534/0, count: 0 [2021-07-05 02:42:31] #38 login: 20.197.72.107, "Wo39iXpwMaoVDeW4NXgpgDTMLm5G4cX5PRiybw2usGPjivayKAm4p8xZHFtRRryxFPcidvGYaVj7C4SAwjAdprF92i8epXM22", flow: "(null)", ua: "XMRig/6.13.1 (Linux x86_64) libuv/1.41.0 gcc/7.5.0", count: 0 [2021-07-05 02:42:51] #38 close: 20.197.72.107, "Wo39iXpwMaoVDeW4NXgpgDTMLm5G4cX5PRiybw2usGPjivayKAm4p8xZHFtRRryxFPcidvGYaVj7C4SAwjAdprF92i8epXM22", time: 20.0s, rx/tx: 534/0, count: 0 [2021-07-05 02:42:56] #39 login: 20.197.72.107, "Wo39iXpwMaoVDeW4NXgpgDTMLm5G4cX5PRiybw2usGPjivayKAm4p8xZHFtRRryxFPcidvGYaVj7C4SAwjAdprF92i8epXM22", flow: "(null)", ua: "XMRig/6.13.1 (Linux x86_64) libuv/1.41.0 gcc/7.5.0", count: 0 [2021-07-05 02:43:10] #39 close: 20.197.72.107, "Wo39iXpwMaoVDeW4NXgpgDTMLm5G4cX5PRiybw2usGPjivayKAm4p8xZHFtRRryxFPcidvGYaVj7C4SAwjAdprF92i8epXM22", time: 13.9s, rx/tx: 534/0, count: 0

SChernykh commented 3 years ago

If you enabled tls on the proxy, you have to enabled it in miner config too.

queenofwhale commented 3 years ago

Both Proxy and Miner disable TLS.

Proxy Dashboard show miner connected. image

Miner side stuck at here image

Proxy Config : { "access-log-file": "accessv13.log", "access-password": null, "algo-ext": true, "api": { "id": null, "worker-id": null }, "http": { "enabled": true, "host": "10.0.0.4", "port": 2222, "access-token": "xxxxxxxxxxxx", "restricted": false }, "background": false, "bind": [ { "host": "0.0.0.0", "port": 1111, "tls": false }, { "host": "::", "port": 1111, "tls": false } ], "colors": true, "custom-diff": 10000, "custom-diff-stats": true, "donate-level": 0, "log-file": "proxyv13.log", "mode": "nicehash", "pools": [ { "algo": null, "coin": "wownero", "url": "localhost:34568", "user": "Wo39iXpwMaoVDeW4NXgpgDTMLm5G4cX5PRiybw2usGPjivayKAm4p8xZHFtRRryxFPcidvGYaVj7C4SAwjAdprF92i8epXM22", "spend-secret-key": "537xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdfd05", "pass": "x", "rig-id": null, "keepalive": false, "enabled": true, "tls": false, "tls-fingerprint": null, "daemon": false, "socks5": null, "self-select": null, "submit-to-origin": false } ], "retries": 2, "retry-pause": 1, "reuse-timeout": 0, "tls": { "enabled": true, "protocols": null, "cert": "cert.pem", "cert_key": "cert_key.pem", "ciphers": null, "ciphersuites": null, "dhparam": null }, "dns": { "ipv6": false, "ttl": 30 }, "user-agent": null, "syslog": false, "verbose": false, "watch": true, "workers": true }

Miner Config :

{ "api": { "id": null, "worker-id": null }, "http": { "enabled": false, "host": "127.0.0.1", "port": 0, "access-token": null, "restricted": true }, "autosave": true, "background": false, "colors": true, "title": true, "randomx": { "init": -1, "init-avx2": -1, "mode": "auto", "1gb-pages": false, "rdmsr": true, "wrmsr": true, "cache_qos": false, "numa": true, "scratchpad_prefetch_mode": 1 }, "cpu": { "enabled": true, "huge-pages": true, "huge-pages-jit": false, "hw-aes": null, "priority": null, "memory-pool": false, "yield": true, "asm": true, "argon2-impl": null, "astrobwt-max-size": 550, "astrobwt-avx2": false, "argon2": [0, 1, 2, 3], "astrobwt": [0, 1, 2, 3], "cn": [ [1, 0], [1, 1], [1, 2], [1, 3] ], "cn-heavy": [ [1, 0], [1, 1], [1, 2], [1, 3] ], "cn-lite": [ [1, 0], [1, 1], [1, 2], [1, 3] ], "cn-pico": [ [2, 0], [2, 1], [2, 2], [2, 3] ], "cn/upx2": [ [2, 0], [2, 1], [2, 2], [2, 3] ], "rx": [0, 1, 2, 3], "rx/wow": [0, 1, 2, 3], "cn/0": false, "cn-lite/0": false, "rx/arq": "rx/wow", "rx/keva": "rx/wow" }, "opencl": { "enabled": false, "cache": true, "loader": null, "platform": "AMD", "adl": true, "cn/0": false, "cn-lite/0": false }, "cuda": { "enabled": false, "loader": null, "nvml": true, "cn/0": false, "cn-lite/0": false }, "log-file": null, "donate-level": 1, "donate-over-proxy": 1, "pools": [ { "algo": null, "coin": "wownero", "url": "proxyx.solomi.com:1111", "user": "Wo39iXpwMaoVDeW4NXgpgDTMLm5G4cX5PRiybw2usGPjivayKAm4p8xZHFtRRryxFPcidvGYaVj7C4SAwjAdprF92i8epXM22", "spend-secret-key": "537e633xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxb8dfadfd05", "pass": "x", "rig-id": null, "nicehash": false, "keepalive": true, "enabled": true, "tls": false, "tls-fingerprint": null, "daemon": false, "socks5": null, "self-select": null, "submit-to-origin": false } ], "retries": 5, "retry-pause": 5, "print-time": 60, "health-print-time": 60, "dmi": true, "syslog": false, "tls": { "enabled": false, "protocols": null, "cert": null, "cert_key": null, "ciphers": null, "ciphersuites": null, "dhparam": null }, "dns": { "ipv6": false, "ttl": 30 }, "user-agent": null, "verbose": 0, "watch": true, "pause-on-battery": false, "pause-on-active": false }

SChernykh commented 3 years ago

You forgot to set "daemon": true, on the proxy.

queenofwhale commented 3 years ago

Oh, my bad, work now. Tks you so much.

jrswab commented 3 years ago

@queenofwhale

Is your proxy showing the total hashrate of the combined miners? Mine currently does not but does show them connected and each are getting the new jobs as they come in.

queenofwhale commented 3 years ago

Mine does not show also.

tieanminer commented 3 years ago

@queenofwhale @SChernykh Wownero mining, how to use xmrig-proxy correctly? Run ./wownerod What parameters are needed here?

jrswab commented 3 years ago

Mine does not show also.

@queenofwhale

Turns out xmrig-proxy will show after a share is submitted. So we just need to adjust the difficulty per miner to send shares more often. (or so it seems)

jrswab commented 3 years ago

Wownero mining, how to use xmrig-proxy correctly? Run ./wownerod What parameters are needed here?

@tieanminer I have a full tutorial written up on my site if you need it.

queenofwhale commented 3 years ago

@jrswab

Turns out xmrig-proxy will show after a share is submitted. So we just need to adjust the difficulty per miner to send shares more often. (or so it seems)

Can't change "custom-diff": 0 to other number. Every time I change it to "custom-diff": 100000000 then save it. I will set back to 0.

@SChernykh is it a bug ?

xmrig commented 3 years ago

Proxy rewrite config file only in one case: if it changed via HTTP API, in other cases config file is read only so it should not changed byself. Also option custom-diff-stats should be set to true more details #376. Thank you.

queenofwhale commented 3 years ago

I found out that it worked if set "custom-diff" less than 1000000.

image

Lucky that after set diff to 1000000 I found a block with my proxy setup.