Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid subscribe request "method":"mining.subscribe" #6

Open
emmalaporte93 opened this issue Apr 1, 2024 · 10 comments
Open

invalid subscribe request "method":"mining.subscribe" #6

emmalaporte93 opened this issue Apr 1, 2024 · 10 comments

Comments

@emmalaporte93
Copy link

Hi guys, just started to use your proxy, made 1-liner install, my test workers is givin me this:

1|zero-proxy  | [2024-04-01 19:23:21][LOG][ProxyService]{40ff266f} get connection: ::ffff:MY_OWRKER_IP:54028, worker pool is {"host":"asia-rvn.2miners.com","port":16060,"tls":true,"coin":"RVN"}
1|zero-proxy  | [2024-04-01 19:23:21][ERROR][ProxyService]{40ff266f} invalid subscribe request: {"id":1,"jsonrpc":"2.0","method":"mining.subscribe","params":[]}
1|zero-proxy  | [2024-04-01 19:23:24][WARN][ProxyService]{40ff266f} client socket end.
1|zero-proxy  | [2024-04-01 19:23:24][WARN][ProxyService]{40ff266f} client socket close.

and this goes on and on in loop. Any ideas?

@emmalaporte93
Copy link
Author

I am using xmrig and silentCryptoMiner btw, maybe you have limited support of those?

@emmalaporte93
Copy link
Author

emmalaporte93 commented Apr 1, 2024

Tried to switch to another pool, now its giving this:

1|zero-proxy  | [2024-04-01 19:41:04][WARN][ProxyService]destroy worker sockets since current id is agent id
1|zero-proxy  | [2024-04-01 19:41:04][WARN][ProxyService]{8ba3d254}[]() agent socket end.
1|zero-proxy  | [2024-04-01 19:41:04][WARN][ProxyService]{8ba3d254} client socket close.
1|zero-proxy  | [2024-04-01 19:41:04][LOG][ProxyService][5e605073]() destroy agent socket
1|zero-proxy  | [2024-04-01 19:41:04][LOG][ProxyService][5e605073] delete tasks by id 5e605073#

@zero-proxy
Copy link
Owner

zero-proxy commented Apr 2, 2024

Looks like it is caused by empty parameter of the subscribe method submitted by silentCryptoMiner and then causes the switching.

A fixing has been made to handle this issue, please try the latest updates and let me know if it works.

Please refer to this section for updating details.

@emmalaporte93
Copy link
Author

emmalaporte93 commented Apr 2, 2024

Hey @zero-proxy , I really appreciate fast response and bugfix :)
Logs are bit different now:
silentCryptoMiner:

2|zero-proxy  | [2024-04-02 18:12:09][LOG][ProxyService]{345192e9} get connection: ::ffff:149.102.x.x:54593, worker pool is {"host":"rvn-eu1.nanopool.org","port":10443,"tls":true,"coin":"RVN"}
2|zero-proxy  | [2024-04-02 18:12:09][LOG][ProxyService]{345192e9} client: {"id":1,"method":"mining.hello","params":{"agent":"ethminer-0.19.0","host":"82.x.x.x","port":"4b0","proto":"EthereumStratum/2.0.0"}}
2|zero-proxy  | [2024-04-02 18:12:09][ERROR][ProxyService]{345192e9} doesn't login yet
2|zero-proxy  | [2024-04-02 18:12:12][LOG][ProxyService]{1b83c428} get connection: ::ffff:149.102.x.x:54596, worker pool is {"host":"rvn-eu1.nanopool.org","port":10443,"tls":true,"coin":"RVN"}
2|zero-proxy  | [2024-04-02 18:12:12][LOG][ProxyService]{1b83c428} client: {"id":1,"method":"mining.subscribe","params":["ethminer-0.19.0","EthereumStratum/1.0.0"]}
2|zero-proxy  | [2024-04-02 18:12:18][LOG][ProxyService]{c3125975} get connection: ::ffff:149.102.x.x:54610, worker pool is {"host":"rvn-eu1.nanopool.org","port":10443,"tls":true,"coin":"RVN"}
2|zero-proxy  | [2024-04-02 18:12:18][LOG][ProxyService]{c3125975} client: {"id":1,"jsonrpc":"2.0","method":"mining.subscribe","params":[]}
2|zero-proxy  | [2024-04-02 18:12:18][ERROR][ProxyService]{c3125975} invalid subscribe request: {"id":1,"jsonrpc":"2.0","method":"mining.subscribe","params":[]}
2|zero-proxy  | [2024-04-02 18:12:26][LOG][ProxyService]{37344d5b} get connection: ::ffff:149.102.x.x:54617, worker pool is {"host":"rvn-eu1.nanopool.org","port":10443,"tls":true,"coin":"RVN"}
2|zero-proxy  | [2024-04-02 18:12:26][LOG][ProxyService]{37344d5b} client: {"id":1,"jsonrpc":"2.0","method":"mining.subscribe","params":[]}
2|zero-proxy  | [2024-04-02 18:12:26][ERROR][ProxyService]{37344d5b} invalid subscribe request: {"id":1,"jsonrpc":"2.0","method":"mining.subscribe","params":[]}
2|zero-proxy  | [2024-04-02 18:12:29][LOG][ProxyService]{df977dc5} get connection: ::ffff:149.102.x.x:54621, worker pool is {"host":"rvn-eu1.nanopool.org","port":10443,"tls":true,"coin":"RVN"}
2|zero-proxy  | [2024-04-02 18:12:29][LOG][ProxyService]{df977dc5} client: {"id":1,"jsonrpc":"2.0","method":"mining.subscribe","params":[]}
2|zero-proxy  | [2024-04-02 18:12:29][ERROR][ProxyService]{df977dc5} invalid subscribe request: {"id":1,"jsonrpc":"2.0","method":"mining.subscribe","params":[]}

xmrig:

2|zero-proxy  | [2024-04-02 18:15:53][LOG][ProxyService]{6bcc920d} get connection: ::ffff:149.102.x.x:54910, worker pool is {"host":"rvn-eu1.nanopool.org","port":10443,"tls":true,"coin":"RVN"}
2|zero-proxy  | [2024-04-02 18:15:53][LOG][ProxyService]{6bcc920d} client: {"id":3,"jsonrpc":"2.0","method":"mining.subscribe","params":["XMRig/6.21.1 (Windows NT 10.0; Win64; x64) libuv/1.44.2 gcc/13.2.0"]}
2|zero-proxy  | [2024-04-02 18:15:53][LOG][ProxyService]{6bcc920d} client: {"id":4,"jsonrpc":"2.0","method":"mining.authorize","params":["x","x"]}

in xmrig, it gives read error: EOF right after this "method":"mining.authorize" appears in logs
Im using wallet address as username in xmrig config, this is whats workig with most of pools
Tried to swtich username/pass to x/x, no luck

@emmalaporte93
Copy link
Author

xmrig pool config (wallet and IP are redacted):


    "pools": [
		{
            "algo": "kawpow",
            "coin": null,
            "url": "82.x.x.x:1200",
            "rig-id": "",
            "username" : "RPkWXXXXXXXXL6dRvXVhYrg8Wvh1XXXX", 
            "rig-id": null,
            "nicehash": false,
            "keepalive": true,
            "enabled": true,
            "tls": false,
            "tls-fingerprint": null,
            "daemon": false,
            "socks5": null,
            "self-select": null
        }
    ],

@emmalaporte93
Copy link
Author

Proxy setup, tried both ssl / no ssl options:
image

@zero-proxy
Copy link
Owner

This is wired, we will run a full testing on xmrig and silentCryptoMiner late today and let you know the result asap.

The params of "method":"mining.authorize" should have been ['your-wallet', 'x'] rather than ['x', 'x'] when zero-proxy receive the client request (by your miner software). The invalid wallet name will make the pool decline the authorize process in the end.

This is not related to the ssl option.

Have you tried to use xmrig with this config to connect to nanopool directly? I believe it will not work if the miner submit [x, x] message to the pool.

@zero-proxy
Copy link
Owner

Hi @emmalaporte93 , would you mind updating the latest version (bump by today) and testing on silentCryptoMiner? It works well on my side.

xmrig has not been tested yet, please ensure the config is correct if you want to test it again.

Anyway, we highly recommend using teamreadminer, gminer, or nbminer on RVN (kawpow) algorithms as they usually out perform than other mining softwares.

@emmalaporte93
Copy link
Author

emmalaporte93 commented Apr 5, 2024

Have you tried to use xmrig with this config to connect to nanopool directly? I believe it will not work if the miner submit [x, x] message to the pool.

hi @zero-proxy , this exactly config works OK with nanopool/2miners/herominers ; the thing is that I cannot directly change params of "mining.authorize" request in xmrig, even with username/password set to wallet address, it still gives x/x

aaand silentCryptoMiner works now! thank you for support

@zero-proxy
Copy link
Owner

I also suspect the wired behavior of xmrig, zero proxy just outputs the following message from miner (client) side without any modification, which means the client sent ["x", "x"] to the pool (or proxy) with no reason.

2|zero-proxy  | [2024-04-02 18:15:53][LOG][ProxyService]{6bcc920d} client {"id":4,"jsonrpc":"2.0","method":"mining.authorize","params":["x","x"]}

I will dig into this later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants