genesismining / sgminer-gm

A multi-algo GPU miner
GNU General Public License v3.0
340 stars 146 forks source link

Can't connect to solo XMR (sgminer-gm-5.4.0-alpha) #7

Open akanter opened 7 years ago

akanter commented 7 years ago

I've got a monero node set up on my host and I'm trying to get this to connect, but I'm having issues. When I've got it set up, the monerod (v0.10.0.0) shows

2016-Nov-16 18:09:02.108777 [RPC1]ERROR /DISTRIBUTION-BUILD/contrib/epee/include/net/http_protocol_handler.inl:356 simple_http_connection_handler<t_connection_context>::handle_invoke_query_line(): Failed to match first line: {"method": "login", "params": {"login": "43KP6ajVvNM3cJTWVZjSL4K7QWDjV5MiyN8NREboesziXJSu5FqVhVxZxdkKiCrsUdPk2BSpHXg5P1DysiT7ogH5FBn6mM8", "pass": "x", "agent": "sgminer/5.4.0-gm"}, "id": 1}

2016-Nov-16 18:09:02.108882 [RPC1]ERROR /DISTRIBUTION-BUILD/contrib/epee/include/net/http_protocol_handler.inl:300 simple_http_connection_handler::handle_char_out: Error state!!!

From the sgminer-gm log:

# ./sgminer-gm-xmr-ubuntu64 -c sgminer.conf -D
18:11:37] Testing monero_solo
[18:11:37] Select timeout/failed connect
[18:11:37] Succeeded delayed connect
[18:11:37] Socket closed waiting in recv_line
[18:11:37] Closing socket for stratum monero_solo
[18:11:37] Failed to parse a \n terminated string in recv_line: buffer =
[18:11:38] No servers were found that could be used to get work from.
[18:11:38] Please check the details from the list below of the servers you have input
[18:11:38] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
[18:11:38] Pool: 0  URL: http://daemon+tcp://localhost:18081  User: 43KP6ajVvNM3cJTWVZjSL4K7QWDjV5MiyN8NREboesziXJSu
5FqVhVxZxdkKiCrsUdPk2BSpHXg5P1DysiT7ogH5FBn6mM8  Password: x

Contents of sgminer.conf:

{
  "pools": [
    {
      "name": "monero_solo",
      "url": "daemon+tcp://localhost:18081",
      "user": "43KP6ajVvNM3cJTWVZjSL4K7QWDjV5MiyN8NREboesziXJSu5FqVhVxZxdkKiCrsUdPk2BSpHXg5P1DysiT7ogH5FBn6mM8",
      "pass": "x",
      "profile": "monero"
    }
  ],
  "profiles": [
    {
      "name": "monero",
      "algorithm": "cryptonight",
      "intensity": "19",
      "thread-concurrency": "10696,8192",
      "worksize": "512",
      "gpu-engine": "1100",
      "gpu-threads": "2",
      "gpu-fan": "75"
    }
  ],
  "failover-only": true,
  "default-profile": "monero",
  "gpu-memdiff": "0,0",
  "shares": "0",
  "kernel-path": "/home/miner/kernel",
  "api-allow": "W:127.0.0.1",
  "api-listen": true,
  "api-mcast-port": "4028",
  "api-port": "4028",
  "expiry": "1",
  "failover-switch-delay": "60",
  "gpu-dyninterval": "7",
  "gpu-platform": "-1",
  "hamsi-expand-big": "4",
  "log": "5",
  "no-pool-disable": true,
  "no-client-reconnect": true,
  "queue": "0",
  "scan-time": "1",
  "tcp-keepalive": "30",
  "temp-hysteresis": "3"
}

Anyone have any thoughts here?

Thanks!

Mikhail1337 commented 7 years ago

I'm having the same problem,

OhGodAPet commented 7 years ago

I don't believe this yet supports XMR solo - only Stratum.

akanter commented 7 years ago

@wolf9466 Thank you very much for the info! I'm back to using your miner then for the time being. Do you see any reason to set up a stratum proxy (https://github.com/Atrides/xmr-proxy) and use sgminer-gm rather than just using https://github.com/wolf9466/wolf-xmr-miner?

Mikhail1337 commented 7 years ago

If the "invalid socket" exit in the main.c code gets some better flow control the wolf xmr miner is the best option imho. I just can't get sgminer to work with monero, solo or pool based

OhGodAGirl commented 7 years ago

I'm working on adding this @akanter - I can't promise it will be done in time for the next release, but I'll try my hardest. Thanks for being so patient.

mcintyremason commented 7 years ago

Is there any update on this issue?