question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Cannot use IPv6 for remote harvester or between any Chia services in config.yaml

See original GitHub issue

Discussed in https://github.com/Chia-Network/chia-blockchain/discussions/8552

<div type='discussions-op-text'>

Originally posted by cross September 21, 2021 chia-blockchain 1.2.3, Ubuntu 20. installed from the .deb distribution here.

I have a harvester I’m trying to connect to a farmer peer in the same building. I have other harvesters connected via IPv4. This newest harvester is on a segmented IPv4 network, so I’m specifying the IPv6 address of the farmer as follows in my config.yml:

harvester:
  chia_ssl_ca:
    crt: config/ssl/ca/chia_ca.crt
    key: config/ssl/ca/chia_ca.key
  farmer_peer:
    host: 2000:3000:4000:5000::101
    port: 8447
  logging: *id001
  network_overrides: *id002

But, when I start chia start harvester -r the following appears on my terminal:

chia_harvester: started
user@host:~$ Traceback (most recent call last):
  File "chia/server/start_harvester.py", line 57, in <module>
  File "chia/server/start_harvester.py", line 53, in main
  File "chia/server/start_service.py", line 255, in run_service
  File "asyncio/runners.py", line 44, in run
  File "asyncio/base_events.py", line 616, in run_until_complete
  File "chia/server/start_service.py", line 249, in async_run_service
  File "chia/server/start_service.py", line 171, in run
  File "chia/server/start_service.py", line 145, in start
  File "chia/server/start_service.py", line 146, in <listcomp>
  File "chia/server/reconnect_task.py", line 12, in start_reconnect_task
socket.gaierror: [Errno -9] Address family for hostname not supported
[1752] Failed to execute script start_harvester

Do I have the syntax wrong, or does IPv6 connections to farmer have an issue?

(netstat -an | grep 8447 on the farmer shows tcp6 0 0 :::8447 :::* LISTEN amongst tcp LISTEN and ESTABLISHED connections via IPv4. And I’ve verified I can establish the tcp connection using telnet to that IPv6 address, port 8447.)</div>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
emlowecommented, Oct 7, 2021

If your harvester is on Linux/MacOS - it’s pretty easy. Just run pip install -e ".[dev]", then edit your python, save the file, and run it inside the venv. So

  • sh install.sh
  • source ./activate
  • pip install -e ".[dev]" - the install.sh may already do this, but it doesn’t hurt
  • Edit and save your changes
  • chia start harvester

You only need to do the first 3 steps once, then you can edit python and make whatever changes you want as many times as needed.

This can also be done on Windows, but it’s a little more work to set. We have new powershell scripts to help setup though you can look at install.ps1.

1reaction
emlowecommented, Sep 29, 2021

It has the advantage that it also eliminates a lookup call - one could argue it should already have been doing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Harvester is not working - no connection to node - Chia Forum
I have a WinServ 2016 running fullnode and a ubuntu for plotting and farming. FullNode running well, but the harvester.
Read more >
Untitled
Use shim, A-hd powder reviews supplement, Tuna boat pilot, Fancy pets centre, Change quotes from movies, The child by tiger plot, Dj helios...
Read more >
Untitled
Background size not working in mozilla, Arribeno wine, Ijsberen noord of zuidpool, Armida d'amor al dolce impero, Collecting a debt from an employee, ......
Read more >
Untitled
Optisport mijdrecht zwemmen, Jody watley looking for a new love hd, Yargon, ... Carte a jouer nom figure, Monograph sample, Allow remote access...
Read more >
Awesome Stars - Source for https://arbal.github.io
CFSworks/nvml_fix - A workaround for an annoying bug in nVidia's NVML library. ... of audio streaming tools using RTP over IPv4 and IPv6...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found