develsoftware / GMinerRelease

Ethash, ProgPoW, Equihash, CuckooCycle GPU Miner
https://bitcointalk.org/index.php?topic=5034735.0
1.97k stars 331 forks source link

gminer cannot mine at etp.sandpool.org #579

Open PSLLSP opened 2 years ago

PSLLSP commented 2 years ago

gminer 2.74, Linux

gminer cannot mine ETP (ethash) at pool etp.sandpool.org. Error is Connection Error: Connection closed. It looks like a compatibility problem. miniZ and nanominer can mine ETP at that pool without an issue...

$ cat test-etp-sp.sh 
#!/bin/sh

# ETP@SANDPOOL - Metaverse

POOL="etp.sandpool.org:8008"
#POOL="etp.sandpool.org:8009"

HOST="TEST1"
USER="MWHLJTawEecdiz8xBK98GB6MGD1qzYRmrP.$HOST"
PASS="x"

./miner --algo ethash --server "$POOL" --user "$USER" --pass "$PASS" $OPTS "$@"
$ sh test-etp-sp.sh 
+----------------------------------------------------------------+
|                          GMiner v2.74                          |
+----------------------------------------------------------------+
Algorithm:          Ethash
DevFee:             0.65 %
Stratum server:     
  host:             etp.sandpool.org:8008
  user:             MWHLJTawEecdiz8xBK98GB6MGD1qzYRmrP.TEST1
  password:         x
Power calculator:   on
Color output:       on
Watchdog:           on
API:                off
Log to file:        off
Selected devices:   GPU0  
Intensity:          100   
Temperature limits: 90/120
------------------------------------------------------------------
12:03:50 Nvidia Driver: 470.86
12:03:50 Connected to etp.sandpool.org:8008 [89.38.98.143]
12:03:50 Connection Error: Connection closed

nanominer config for reference, it works OK...

$ cat test-etp-sp-nm.sh
#!/bin/sh

WALLET="MWHLJTawEecdiz8xBK98GB6MGD1qzYRmrP"
WORKER="TEST2"

POOL1="etp.sandpool.org:8008"
COIN1="ETP"

./nanominer -rigName "$WORKER" -algo EtHash -coin "$COIN1" -pool1 "$POOL1" -wallet "$WALLET" "$@"
$ sh test-etp-sp-nm.sh
                                   _                 
 _ __   __ _ _ __   ___  _ __ ___ (_)_ __   ___ _ __ 
| '_ \ / _` | '_ \ / _ \| '_ ` _ \| | '_ \ / _ \ '__|
| | | | (_| | | | | (_) | | | | | | | | | |  __/ |   
|_| |_|\__,_|_| |_|\___/|_| |_| |_|_|_| |_|\___|_|   

Version 3.5.2-cuda11
2021-Dec-25 12:10:18: Started EthMan server on port 3333 without a password (read-only mode).
2021-Dec-25 12:10:18: Started web interface on port 9090 without a password.
2021-Dec-25 12:10:18: CUDA driver version is 11.4, runtime version is 11.1
Single device detected
GPU 0 PCI 01:00.0, Platform: CUDA, Name: NVIDIA GeForce GTX 1060 3GB, 3019 MB available
-------------------Ethash:------------------
Currency: ETP
Wallet: MWHLJTawEecdiz8xBK98GB6MGD1qzYRmrP
Rig name: TEST2
Email was not set.
Hashrate threshold to restart miner is not set
Number of rejected shares per hour to restart miner is not set
Added pool: etp.sandpool.org:8008
Auto pool sorting is disabled
Using all GPU devices
Memory tweak: 1
-------------Common parameters:-------------
Log path: ./logs/
Log is written to file
GPU watchdog is enabled
Never calling reboot.sh (always restarting the miner in case of errors). 
2021-Dec-25 12:10:19: Setting up algorithm: Ethash
2021-Dec-25 12:10:19: Connecting to pools...
2021-Dec-25 12:10:19: Connected to pool: etp.sandpool.org:8008 | IP: 89.38.98.143
2021-Dec-25 12:10:21: New job from etp.sandpool.org:8008 | share difficulty = 2000 MH, epoch 202 (2639 MB)
ETP - Total speed: 0.000 H/s, Total shares: 0 Rejected: 0, Time: 00:01
GPU0 t=68°C fan 54% power 34.42W. Total power: 34.42W
2021-Dec-25 12:10:35: GPU0: 2639 MB DAG generated in 9.03 seconds
2021-Dec-25 12:10:42: New job from etp.sandpool.org:8008
ETP - Total speed: 0.000 H/s, Total shares: 0 Rejected: 0, Time: 00:23
ETP last 10 min - Total: 0.000 H/s.
2021-Dec-25 12:11:00: New job from etp.sandpool.org:8008
ETP - Total speed: 20.179 MH/s, Total shares: 0 Rejected: 0, Time: 00:41
GPU0 t=71°C fan 53% power 75.42W. Total power: 75.42W
2021-Dec-25 12:11:03: New job from etp.sandpool.org:8008
ETP - Total speed: 20.179 MH/s, Total shares: 0 Rejected: 0, Time: 00:43
2021-Dec-25 12:11:08: New job from etp.sandpool.org:8008
ETP - Total speed: 20.179 MH/s, Total shares: 0 Rejected: 0, Time: 00:49
GPU0 t=71°C fan 54% power 76.19W. Total power: 76.19W

gminer can mine ETP at other pool, like 2miners:

$ cat test-etp-2m.sh 
#!/bin/sh

# ETP@2MINERS - Metaverse

POOL="etp.2miners.com:9292"

HOST="TEST3"
USER="MWHLJTawEecdiz8xBK98GB6MGD1qzYRmrP.$HOST"
PASS="x"

./miner --algo ethash --server "$POOL" --user "$USER" --pass "$PASS" $OPTS "$@"
$ sh test-etp-2m.sh
+----------------------------------------------------------------+
|                          GMiner v2.74                          |
+----------------------------------------------------------------+
Algorithm:          Ethash
DevFee:             0.65 %
Stratum server:     
  host:             etp.2miners.com:9292
  user:             MWHLJTawEecdiz8xBK98GB6MGD1qzYRmrP.TEST3
  password:         x
Power calculator:   on
Color output:       on
Watchdog:           on
API:                off
Log to file:        off
Selected devices:   GPU0  
Intensity:          100   
Temperature limits: 90/120
------------------------------------------------------------------
13:49:36 Nvidia Driver: 470.86
13:49:36 Connected to etp.2miners.com:9292 [51.89.96.115]
13:49:36 Authorized on Stratum Server
13:49:36 New Job: 9b9b45ea Epoch: #202 Diff: 8.726G
13:49:36 Started Mining on GPU0: NVIDIA NVIDIA GeForce GTX 1060 3GB [0000:01:00.0]
13:49:38 New Job: 43fdd48e Epoch: #202 Diff: 8.726G
13:49:42 GPU0: Generating DAG for epoch #202 [Single Buffer 2640 MB]
13:49:47 New Job: f4b1be9a Epoch: #202 Diff: 8.726G
13:49:51 GPU0: DAG generated in 8.61s [307 MB/s]
13:49:51 GPU0: DAG verification passed
13:50:03 New Job: 4f652c68 Epoch: #202 Diff: 8.726G
PSLLSP commented 2 years ago

Debug communication, it looks like the pool doesn't like "hello" message... Like eth_submitLogin is not expected.

$ sh test-etp-sp.sh --log_stratum 1
...
11:38:38 Nvidia Driver: 470.86
11:38:38 Connected to etp.sandpool.org:8008 [89.38.98.143]
11:38:38 <<<{"id":1,"method":"eth_submitLogin","worker":"eth1.0","params":["MWHLJTawEecdiz8xBK98GB6MGD1qzYRmrP.TEST1","x"],"jsonrpc":"2.0"}
11:38:38 >>>{"id":1,"jsonrpc":"2.0","result":null,"error":{"code":-1,"message":"Invalid login"}}
11:38:38 Authorization on Stratum Server Failed: Invalid login
$ sh test-etp-2m.sh --log_stratum 1
...
11:39:09 Nvidia Driver: 470.86
11:39:10 Connected to etp.2miners.com:9292 [51.89.96.115]
11:39:10 <<<{"id":1,"method":"eth_submitLogin","worker":"eth1.0","params":["MWHLJTawEecdiz8xBK98GB6MGD1qzYRmrP.TEST3","x"],"jsonrpc":"2.0"}
11:39:10 >>>{"id":1,"jsonrpc":"2.0","result":true,"error":null}
11:39:10 Authorized on Stratum Server
11:39:10 <<<{"id":2,"method":"eth_getWork","params":[],"jsonrpc":"2.0"}
11:39:10 >>>{"id":2,"jsonrpc":"2.0","result":["0xffa5a31941c01bc94eab0aeff0b6e2b7415f0f265272459324b589d4fc9d8126","0x6475dd15a6baef221154af2b85dff79a86a0cf20fb27dab062b60c93191bd403","0x7e00000007e00000007e00000007e00000007e00000007e00000007e"],"error":null}
11:39:10 New Job: ffa5a319 Epoch: #203 Diff: 8.726G
PSLLSP commented 2 years ago

I have found the solution. Command line parameter --worker has to be used. The pool doesn't accept user as WALLET.WORKER, it has to be only WALLET. Worker can be passed with parameter --worker. nanonminer is smarter, when it is rejected with user WALLET.WORKER, it tries again with user WALLET...

This config works:

$ cat test-etp-sp1.sh 
#!/bin/sh

# ETP@SANDPOOL - Metaverse

POOL="etp.sandpool.org:8008"
#POOL="etp.sandpool.org:8009"

HOST="TEST4"
#USER="MWHLJTawEecdiz8xBK98GB6MGD1qzYRmrP.$HOST"
USER="MWHLJTawEecdiz8xBK98GB6MGD1qzYRmrP"
PASS="x"

OPTS="--worker $HOST"

./miner --algo ethash --server "$POOL" --user "$USER" --pass "$PASS" $OPTS "$@"

Debug communication:

$ sh test-etp-sp1.sh --log_stratum 1
...
12:23:39 Nvidia Driver: 470.86
12:23:39 Connected to etp.sandpool.org:8008 [89.38.98.143]
12:23:39 <<<{"id":1,"method":"eth_submitLogin","worker":"TEST4","params":["MWHLJTawEecdiz8xBK98GB6MGD1qzYRmrP","x"],"jsonrpc":"2.0"}
12:23:39 >>>{"id":1,"jsonrpc":"2.0","result":true}
12:23:39 Authorized on Stratum Server
12:23:39 <<<{"id":2,"method":"eth_getWork","params":[],"jsonrpc":"2.0"}
12:23:39 >>>{"id":2,"jsonrpc":"2.0","result":["0xee459b72bb6cac2ae12f5e9d22cd6b11341dc4c86c39bc2f014b487053a1581a","0x6475dd15a6baef221154af2b85dff79a86a0cf20fb27dab062b60c93191bd403","0x0225c17d04dad2965cc5a02a23e254c0c3f75d9178046aeb27ce1ca574"]}
12:23:39 New Job: ee459b72 Epoch: #203 Diff: 2.000G