Having trouble setting up remote harvesters

I’m having trouble getting remote harvesters set up and hoping some folks might be able to help.

I’ve got three machines set up: farmer1 (192.168.1.174 / Ubuntu), plotter2 (Mac) and plotter3 (Mac).

  1. I’ve set up thep private key on each, and copied farmer1’s certificates to ~/.chia/mainnet/config/ssl/ca_mainnode. I’ve run “chia keys init -c” on that directory on each plotter.
  2. I’ve turned off the firewall (temporarily) on farmer1 and added it’s IP address to plotter2 and plotter3’s chia config files (I’ll include below)
  3. I’ve run chia start harvester-r

What I’m really confused about (even after reading the docs) is how you set the port on the farmer, and what should be left in the plotter / harvester nodes (should it still have the full_node part of the config on these notes?)

I’m getting this error message on plotter2:

Connection error. Check if full node is running at 8555
Farming status: Not available
Total chia farmed: 0.0
User transaction fees: 0.0
Block rewards: 0.0
Last height farmed: 0
Plot count: 0
Total size of plots: 0.000 GiB
Estimated network space: Unknown
Expected time to win: Unknown
Note: log into your key using 'chia wallet show' to see rewards for each key

I’m getting this error message on plotter3:

(venv) alex@plotter3 chia-blockchain % chia farm summary
Connection error. Check if wallet is running at 9256
Connection error. Check if full node is running at 8555
Connection error. Check if farmer is running at 8559
Farming status: Not available
Total chia farmed: Unknown
User transaction fees: Unknown
Block rewards: Unknown
Last height farmed: Unknown
Plot count: 0
Total size of plots: 0.000 GiB
Estimated network space: Unknown
Expected time to win: Unknown
Note: log into your key using 'chia wallet show' to see rewards for each key

Here is the relevant part of the config file on farmer1:

daemon_port: 55400
daemon_ssl:
  private_crt: config/ssl/daemon/private_daemon.crt
  private_key: config/ssl/daemon/private_daemon.key
farmer:
  full_node_peer:
    host: localhost
    port: 8444
  harvester_peer:
    host: localhost
    port: 8448

Here is the relevant part of the config file on plotter2:

chia_ssl_ca:
  crt: config/ssl/ca/chia_ca.crt
  key: config/ssl/ca/chia_ca.key
daemon_port: 55400
daemon_ssl:
  private_crt: config/ssl/daemon/private_daemon.crt
  private_key: config/ssl/daemon/private_daemon.key
farmer:
  harvester_peer:
    host: 192.168.1.174
    port: 8444

Here is relevant part of the config from plotter3:

chia_ssl_ca:
  crt: config/ssl/ca/chia_ca.crt
  key: config/ssl/ca/chia_ca.key
daemon_port: 55400
daemon_ssl:
  private_crt: config/ssl/daemon/private_daemon.crt
  private_key: config/ssl/daemon/private_daemon.key
farmer:
  harvester_peer:
    host: 192.168.1.174
    port: 8444

Just a quick community janitor note, please use the code button to post code! It looks like this </>

Also backticks can be used either inline or three backticks

this is `code right here`

```
this is also code
```

You can also indent 4 spaces to make code. cc @cultiv

1 Like

Thanks @codinghorror, sorry about that!

Adding the log files here:

from plotter2:

2021-04-30T07:10:07.265 wallet wallet                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-04-30T07:10:07.266 wallet wallet_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x107f79040> [Connect call failed ('127.0.0.1', 8444)]
2021-04-30T07:10:10.272 wallet wallet                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-04-30T07:10:10.273 wallet wallet_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x1066190c0> [Connect call failed ('127.0.0.1', 8444)]

logfile from plotter3:

% tail -f ~/.chia/mainnet/log/debug.log 
    message = await self.read_message()
  File "/Users/alex/chia-blockchain/venv/lib/python3.9/site-packages/websockets/protocol.py", line 895, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/Users/alex/chia-blockchain/venv/lib/python3.9/site-packages/websockets/protocol.py", line 995, in read_data_frame
    await self.pong(frame.data)
  File "/Users/alex/chia-blockchain/venv/lib/python3.9/site-packages/websockets/protocol.py", line 766, in pong
    await self.ensure_open()
  File "/Users/alex/chia-blockchain/venv/lib/python3.9/site-packages/websockets/protocol.py", line 803, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason

logfile from farmer1:

$ tail -f ~/.chia/mainnet/log/debug.log
2021-04-30T00:55:33.670 full_node full_node_server        : WARNING  Banning 76.17.129.95 for 600 seconds
2021-04-30T00:55:33.671 full_node chia.full_node.full_node: ERROR    Error with syncing: <class 'RuntimeError'>Traceback (most recent call last):
  File "/home/alex/chia-blockchain/chia/full_node/full_node.py", line 624, in _sync
    raise RuntimeError(f"Weight proof did not arrive in time from peer: {weight_proof_peer.peer_host}")
RuntimeError: Weight proof did not arrive in time from peer: 76.17.129.95

2021-04-30T01:03:33.528 full_node full_node_server        : WARNING  Peer 76.17.129.95 is still banned, not connecting to it
2021-04-30T04:29:33.891 full_node chia.full_node.full_node: WARNING  Invalid response for slot None
2021-04-30T04:35:21.828 full_node chia.full_node.full_node: WARNING  Invalid response for slot None
2021-04-30T04:43:19.247 full_node full_node_server        : WARNING  Cannot write to closing transport 116.92.202.239
1 Like