oliverw / miningcore

Miningcore is a high-performance Mining Pool Software for Linux and Windows.
https://store.miningcore.pro
MIT License
717 stars 662 forks source link

XMrig miner connecting to Miningcore with error "Unsupported request login", code: 20 [DOGE mining] #1705

Closed Hyperpool closed 1 year ago

Hyperpool commented 1 year ago

I got this error while connecting XMrig to MC for Doge mining The MC is hosted in WSL.

[2023-07-03 16:55:25.411] net X.X.X.X:65000 error: "Unsupported request login", code: 20

Any solutions ?


Xmrig output:

-

I'd double-checked all configs & procedures in network & MC config or did i miss something ? Here's my concept & settings :


Network diagram:

[ Internet ] [ Router ]
X.X.X.X 192.168.0.1

[ Windows host ] 192.168.0.3
172.31.32.1 | [ WSL ] 172.31.44.42

-


PORT-FORWARDING on Windows:

Source Address:
0.0.0.0

Source Port: 64000-65535

Destination Address: 172.31.44.42

Destination Port: 64000-65535


NETSTAT on Windows Host:

Active Connections

Proto Local Address Foreign Address State TCP 0.0.0.0:135 0.0.0.0:0 LISTENING TCP 0.0.0.0:445 0.0.0.0:0 LISTENING TCP 0.0.0.0:5040 0.0.0.0:0 LISTENING TCP 0.0.0.0:5357 0.0.0.0:0 LISTENING TCP 0.0.0.0:5432 0.0.0.0:0 LISTENING TCP 0.0.0.0:7680 0.0.0.0:0 LISTENING TCP 0.0.0.0:8732 0.0.0.0:0 LISTENING TCP 0.0.0.0:22556 0.0.0.0:0 LISTENING TCP 0.0.0.0:49664 0.0.0.0:0 LISTENING TCP 0.0.0.0:49665 0.0.0.0:0 LISTENING TCP 0.0.0.0:49666 0.0.0.0:0 LISTENING TCP 0.0.0.0:49667 0.0.0.0:0 LISTENING TCP 0.0.0.0:49668 0.0.0.0:0 LISTENING TCP 0.0.0.0:49669 0.0.0.0:0 LISTENING TCP 0.0.0.0:65000 0.0.0.0:0 LISTENING TCP 127.0.0.1:60643 127.0.0.1:60644 ESTABLISHED TCP 127.0.0.1:60644 127.0.0.1:60643 ESTABLISHED TCP 127.0.0.1:60645 127.0.0.1:60646 ESTABLISHED TCP 127.0.0.1:60646 127.0.0.1:60645 ESTABLISHED TCP 127.0.0.1:60649 127.0.0.1:60650 ESTABLISHED TCP 127.0.0.1:60650 127.0.0.1:60649 ESTABLISHED TCP 127.0.0.1:60651 127.0.0.1:60652 ESTABLISHED TCP 127.0.0.1:60652 127.0.0.1:60651 ESTABLISHED TCP 127.0.0.1:65535 0.0.0.0:0 LISTENING TCP 172.31.32.1:139 0.0.0.0:0 LISTENING TCP 172.31.32.1:54850 172.31.44.42:65000 ESTABLISHED TCP 192.168.0.3:139 0.0.0.0:0 LISTENING TCP 192.168.0.3:5432 192.168.0.3:50476 ESTABLISHED TCP 192.168.0.3:22555 0.0.0.0:0 LISTENING TCP 192.168.0.3:22555 192.168.0.3:50492 ESTABLISHED TCP 192.168.0.3:22556 51.91.82.136:39962 ESTABLISHED TCP 192.168.0.3:22556 51.91.82.136:51082 ESTABLISHED TCP 192.168.0.3:22556 54.145.114.66:39468 ESTABLISHED TCP 192.168.0.3:22556 78.56.65.28:51636 ESTABLISHED TCP 192.168.0.3:22556 84.255.25.188:59482 ESTABLISHED TCP 192.168.0.3:22556 90.204.85.245:55590 ESTABLISHED TCP 192.168.0.3:22556 147.229.8.240:48912 ESTABLISHED TCP 192.168.0.3:22556 176.9.45.188:49814 ESTABLISHED TCP 192.168.0.3:22556 188.166.62.180:64599 ESTABLISHED TCP 192.168.0.3:54607 20.198.118.190:443 ESTABLISHED TCP 192.168.0.3:54849 X.X.X.X:65000 ESTABLISHED TCP 192.168.0.3:60655 13.212.96.101:22556 ESTABLISHED TCP 192.168.0.3:60656 47.197.216.7:22556 ESTABLISHED TCP 192.168.0.3:60658 159.223.20.99:22556 ESTABLISHED TCP 192.168.0.3:60676 78.42.111.37:22556 ESTABLISHED TCP 192.168.0.3:60677 144.172.125.5:22556 ESTABLISHED TCP 192.168.0.3:60679 37.59.32.10:22556 ESTABLISHED TCP 192.168.0.3:60687 136.26.58.52:22556 ESTABLISHED TCP 192.168.0.3:60760 74.125.200.188:443 ESTABLISHED TCP 192.168.0.3:60771 99.72.218.42:22556 ESTABLISHED TCP 192.168.0.3:65000 X.X.X.X:54849 ESTABLISHED


IPTABLES on WSL:

Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere multiport dports 64000:65535


NETSTAT on WSL :

Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:65535 0.0.0.0: LISTEN tcp 0 0 172.31.44.42:54516 192.168.0.3:5432 ESTABLISHED tcp6 0 0 0.0.0.0:65000 ::: LISTEN tcp6 0 0 172.31.44.42:54536 192.168.0.3:22555 ESTABLISHED tcp6 0 0 172.31.44.42:65000 172.31.32.1:54850 ESTABLISHED


Miningcore' config on WSL :

{ "logging": { "level": "info", "enableConsoleLog": true, "enableConsoleColors": true, "logFile": "core.log", "apiLogFile": "api.log", "logBaseDirectory": "logfiles", "perPoolLogFile": false }, "banning": { "manager": "Integrated", "banOnJunkReceive": false, "banOnInvalidShares": false }, "notifications": { "enabled": false, "email": { "host": "smtp.example.com", "port": 587, "user": "user", "password": "password", "fromAddress": "info@something.net", "fromName": "pool support" }, "admin": { "enabled": true, "emailAddress": "user@@something.net", "notifyBlockFound": true, "ipWhitelist": ["172.31.32.1"] } }, // Where to persist shares and blocks to "persistence": { "postgres": { "host": "192.168.0.3", "port": 5432, "user": "miningcore", "password": "password", "database": "miningcore" } }, // Generate payouts for recorded shares and blocks "paymentProcessing": { "enabled": true, "interval": 600, "shareRecoveryFile": "recovered-shares.txt" }, "api": { "enabled": true, "listenAddress": "0.0.0.0", "port": 65535, "metricsIpWhitelist": ["172.31.32.1"], "rateLimiting": { "disabled": false, "rules": [ { "Endpoint": "*", "Period": "1s", "Limit": 5 } ], "ipWhitelist": ["172.31.32.1"] } }, "pools": [ // Repeat the following section for multiple coins { "id": "dogecoin", "enabled": true, "coin": "dogecoin", "address": "my doge address", "rewardRecipients": [ { // Pool wallet "address": "my doge address", "percentage": 1.5 } ], // How often to poll RPC daemons for new blocks, in milliseconds "blockRefreshInterval": 400, // Some miner apps will consider the pool dead/offline if it doesn't receive // anything new jobs for around a minute, so every time we broadcast jobs, // set a timeout to rebroadcast in this many seconds unless we find a new job. // Set to zero to disable. (Default: 0) "jobRebroadcastTimeout": 10, // Remove workers that haven't been in contact for this many seconds. // Some attackers will create thousands of workers that use up all available // socket connections, usually the workers are zombies and don't submit shares // after connecting. This features detects those and disconnects them. "clientConnectionTimeout": 600, // If a worker is submitting a high threshold of invalid shares, we can // temporarily ban their IP to reduce system/network load. "banning": { "enabled": true, "time": 600, "invalidPercent": 50, "checkThreshold": 50 }, "ports": { "65000": { "listenAddress": "0.0.0.0", "difficulty": 0.02, "tls": false, "tlsPfxFile": "/var/lib/certs/mycert.pfx", "varDiff": { "minDiff": 0.01, "maxDiff": null, "targetTime": 15, "retargetTime": 90, "variancePercent": 30, "maxDelta": 500 } } }, "daemons": [ { "host": "192.168.0.3", "port": 22555, "user": "user", "password": "password", // Enable streaming Block Notifications via ZeroMQ messaging from Bitcoin // Family daemons. Using this is highly recommended. The value of this option // is a string that should match the value of the -zmqpubhashblock parameter // passed to the coin daemon. If you enable this, you should lower // 'blockRefreshInterval' to 1000 or 0 to disable polling entirely. //"zmqBlockNotifySocket": "tcp://192.168.0.3:15101", // Enable streaming Block Notifications via WebSocket messaging from Ethereum // family Parity daemons. Using this is highly recommended. The value of this // option is a string that should match the value of the --ws-port parameter // passed to the parity coin daemon. When using --ws-port, you should also // specify --ws-interface all and // --jsonrpc-apis "eth,net,web3,personal,parity,parity_pubsub,rpc" // If you enable this, you should lower 'blockRefreshInterval' to 1000 or 0 // to disable polling entirely. //"portWs": 18545, } ], // Generate payouts for recorded shares "paymentProcessing": { "enabled": true, "minimumPayment": 0.01, "payoutScheme": "PPLNS", "payoutSchemeConfig": { "factor": 2.0 } } } // This section ends here. Add , after } if this is not the last coin section ] }


Miningcore running on WSL : (log file)

Using configuration file 'config.pro.json' [2023-07-03 16:53:31.3433] [I] [Core] Version 74.0.1.0-master [a553f62301f44c6df80891e408b6526d1dd98692] [2023-07-03 16:53:31.5724] [I] [Core] Runtime .NET 6.0.18 on Linux 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 [X64] [2023-07-03 16:53:31.6898] [I] [Core] Prometheus Metrics API listening on http://0.0.0.0:65535/metrics [2023-07-03 16:53:31.6898] [I] [Core] WebSocket Events streaming on ws://0.0.0.0:65535/notifications [2023-07-03 16:53:41.9504] [I] [ShareRecorder] Online [2023-07-03 16:53:42.0681] [I] [PayoutManager] Online [2023-07-03 16:53:42.0681] [I] [StatsRecorder] Online [2023-07-03 16:53:43.7952] [I] [Core] 120 coins loaded from '/mnt/d/Mining-pool/production-lin/miningcore/build/coins.json' [2023-07-03 16:53:43.9146] [I] [dogecoin] Starting Pool ... [2023-07-03 16:53:43.9378] [I] [dogecoin] ExtraNonceProvider using 4 bits for instance id, 28 bits for 268435455 values, instance id = 0x9 [2023-07-03 16:53:43.9728] [I] [dogecoin] Starting Job Manager ... [2023-07-03 16:53:44.5647] [I] [Core] API Access to /api/admin restricted to 127.0.0.1,::1,::ffff:127.0.0.1 [2023-07-03 16:53:44.5647] [I] [Core] API Access to /metrics restricted to 172.31.32.1,127.0.0.1,::1,::ffff:127.0.0.1 [2023-07-03 16:53:45.1227] [I] [Core] API access limited to 5 requests per 1s, except from 172.31.32.1 [2023-07-03 16:53:45.1975] [I] [Lifetime] Now listening on: http://0.0.0.0:65535 [2023-07-03 16:53:45.2046] [I] [Lifetime] Application started. Press Ctrl+C to shut down. [2023-07-03 16:53:45.2046] [I] [Lifetime] Hosting environment: Production [2023-07-03 16:53:45.2046] [I] [Lifetime] Content root path: /mnt/d/Mining-pool/production-lin/miningcore/build/ [2023-07-03 16:53:57.1678] [I] [StatsRecorder] Performing Stats GC [2023-07-03 16:53:57.5676] [I] [StatsRecorder] Stats GC complete [2023-07-03 16:54:54.9566] [I] [dogecoin] All daemons online [2023-07-03 16:54:55.6361] [I] [dogecoin] All daemons synched with blockchain [2023-07-03 16:54:56.3837] [I] [dogecoin] Job Manager Online [2023-07-03 16:54:57.2406] [I] [dogecoin] Detected new block 4784667 [POLL] [2023-07-03 16:54:57.2593] [I] [dogecoin] Broadcasting job 00000001 [2023-07-03 16:54:57.6879] [I] [dogecoin] Pool Online [2023-07-03 16:54:57.7027] [I] [dogecoin]

Mining Pool: dogecoin Coin Type: DOGE [DOGE] Network Connected: Main Detected Reward Type: POW Current Block Height: 4784667 Current Connect Peers: 15 Network Difficulty: 17.12M Network Hash Rate: 671.33 TH/s Stratum Port(s): 65000 Pool Fee: 1.5%

[2023-07-03 16:54:57.7560] [I] [dogecoin] Stratum ports 0.0.0.0:65000 online [2023-07-03 16:54:59.9643] [I] [dogecoin] [0HMRRLE8AD0J9] Accepting connection from ::ffff:172.31.32.1:54884 ... [2023-07-03 16:55:00.0549] [I] [dogecoin] [0HMRRLE8AD0J9] Connection from ::ffff:172.31.32.1:54884 accepted on port 65000 [2023-07-03 16:55:06.5250] [I] [dogecoin] Broadcasting job 00000002 [2023-07-03 16:55:16.5287] [I] [dogecoin] Broadcasting job 00000003 [2023-07-03 16:55:19.7324] [I] [dogecoin] Detected new block 4784668 [POLL] [2023-07-03 16:55:19.7377] [I] [dogecoin] Broadcasting job 00000004 [2023-07-03 16:55:20.3773] [I] [dogecoin] Detected new block 4784669 [POLL] [2023-07-03 16:55:20.3773] [I] [dogecoin] Broadcasting job 00000005 [2023-07-03 16:55:22.1874] [I] [dogecoin] [0HMRRLE8AD0J9] Connection closed [2023-07-03 16:55:25.3944] [I] [dogecoin] [0HMRRLE8AD0JA] Accepting connection from ::ffff:172.31.32.1:54887 ... [2023-07-03 16:55:25.3944] [I] [dogecoin] [0HMRRLE8AD0JA] Connection from ::ffff:172.31.32.1:54887 accepted on port 65000 [2023-07-03 16:55:26.5045] [I] [dogecoin] Broadcasting job 00000006 [2023-07-03 16:55:30.0791] [I] [dogecoin] Detected new block 4784670 [POLL] [2023-07-03 16:55:30.0846] [I] [dogecoin] Broadcasting job 00000007 [2023-07-03 16:55:32.1169] [I] [dogecoin] Detected new block 4784671 [POLL] [2023-07-03 16:55:32.1275] [I] [dogecoin] Broadcasting job 00000008 [2023-07-03 16:55:36.5174] [I] [dogecoin] Broadcasting job 00000009 [2023-07-03 16:55:46.5085] [I] [dogecoin] Broadcasting job 0000000a [2023-07-03 16:55:56.5562] [I] [dogecoin] Broadcasting job 0000000b [2023-07-03 16:55:57.1009] [I] [StatsRecorder] [dogecoin] Updating Statistics for pool [2023-07-03 16:55:57.2656] [I] [StatsRecorder] [dogecoin] Reset performance stats for pool [2023-07-03 16:56:06.5416] [I] [dogecoin] Broadcasting job 0000000c [2023-07-03 16:56:16.6224] [I] [dogecoin] Broadcasting job 0000000d

* MC seems working fine & XMrig was connected to it


API access to Miningcore: http://172.31.44.42:65535/api/pools

{ "pools": [ { "id": "dogecoin", "coin": { "type": "DOGE", "name": "Dogecoin", "symbol": "DOGE", "website": "", "market": "", "family": "bitcoin", "algorithm": "Scrypt", "twitter": "", "discord": "", "telegram": "", "canonicalName": "Dogecoin" }, "ports": { "65000": { "listenAddress": "0.0.0.0", "difficulty": 0.02, "varDiff": { "minDiff": 0.01, "maxDelta": 500, "targetTime": 15, "retargetTime": 90, "variancePercent": 30 }, "tls": false, "tlsAuto": false } }, "paymentProcessing": { "enabled": true, "minimumPayment": 0.01, "payoutScheme": "PPLNS", "payoutSchemeConfig": [ [ [] ] ], "extra": {} }, "clientConnectionTimeout": 600, "jobRebroadcastTimeout": 10, "blockRefreshInterval": 400, "poolFeePercent": 1.5, "address": "DT3XLfAGJhZLzVRPrvpgLM39v8yFoBMN9h", "addressInfoLink": "https://dogechain.info/address/DT3XLfAGJhZLzVRPrvpgLM39v8yFoBMN9h", "poolStats": { "connectedMiners": 0, "poolHashrate": 0, "sharesPerSecond": 0 }, "networkStats": { "networkType": "Main", "networkHashrate": 840971534438790.1, "networkDifficulty": 17514852.25902031, "nextNetworkTarget": "00000000000000f5370000000000000000000000000000000000000000000000", "nextNetworkBits": "1a00f537", "lastNetworkBlockTime": "2023-07-03T10:40:42.9661999Z", "blockHeight": 4784707, "connectedPeers": 14, "rewardType": "POW" }, "topMiners": [], "totalPaid": 0, "totalBlocks": 0, "poolEffort": 0 } ] }

Thank you for your kind attention.