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 connect to host 127.0.0.1:8444 ssl

See original GitHub issue

Describe the bug

Second upgrade to latest results in the farm not working. Last time I needed to delete the dbs and let sync from beginning. I tried a backed up db and also had same error.

Now I am down for days while it syncs again.

To Reproduce

Steps to reproduce the behavior:

  1. Upgrade to latest.
  2. Start Farm
  3. Open debug.log and see errors

Expected behavior

Connect to farmer.

Screenshots

2021-07-13T14:29:20.291 wallet wallet_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:23.021 farmer farmer                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:23.024 farmer farmer_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:23.293 wallet wallet                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:23.295 wallet wallet_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:26.026 farmer farmer                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:26.028 farmer farmer_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:26.296 wallet wallet                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:26.298 wallet wallet_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:29.029 farmer farmer                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:29.030 farmer farmer_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:29.300 wallet wallet                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:29.301 wallet wallet_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:32.031 farmer farmer                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:32.033 farmer farmer_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:32.303 wallet wallet                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:32.305 wallet wallet_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:34.704 wallet chia.wallet.wallet_node    : INFO     Validated, fork point is 565645
2021-07-13T14:29:34.705 wallet chia.wallet.wallet_node    : INFO     self.sync_event.set()
2021-07-13T14:29:34.779 wallet chia.wallet.wallet_node    : INFO     Have collected 1 potential peaks
2021-07-13T14:29:35.035 farmer farmer                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:35.040 farmer farmer_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:35.308 wallet wallet                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:35.315 wallet wallet_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:36.680 wallet chia.wallet.wallet_node    : INFO     Requesting blocks 565644-565676
2021-07-13T14:29:38.042 farmer farmer                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:38.045 farmer farmer_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:38.318 wallet wallet                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:38.322 wallet wallet_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:41.046 farmer farmer                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:41.048 farmer farmer_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:41.080 wallet chia.wallet.wallet_node    : INFO     Requesting blocks 565676-565708
2021-07-13T14:29:41.323 wallet wallet                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:41.326 wallet wallet_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>
2021-07-13T14:29:44.049 farmer farmer                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-07-13T14:29:44.050 farmer farmer_server              : INFO     Cannot connect to host 127.0.0.1:8444 ssl:<ssl.SSLContext object at 0x7>

Desktop

  • OS: Linux
  • OS Version/Flavor: Ubuntu 20.04.2
  • CPU: Intel i7 3770k

Additional context

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:8
  • Comments:59 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
Bosswellcommented, Jan 8, 2022

The only solution I found is to downgrade the client to version 1.2.7. Seems to be working.

chia stop all -d

git pull
git checkout 1.2.7
sh install.sh

. ./activate
chia start farmer

2reactions
keliewcommented, Dec 2, 2021

Can anyone help this a noob figure out how to update my node with #8771 as @emlowe suggested?

Something like this on Linux…

$ git clone -b latest https://github.com/Chia-Network/chia-blockchain.git ./
$ git fetch origin pull/8771/head:pr-8771 && git checkout pr-8771
$ chmod +x install.sh
$ ./install.sh

Just replace 8771 with any PR number…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not able to sync: debug.log: "Cannot connect to host 127.0.0.1 ...
First thing I try is deleting all files in the database folder except the biggest one, the blockchain database. Many ppl offer a...
Read more >
updated to 1.2.8 and now Cannot connect to host 127.0.0.1 ...
8 and now Cannot connect to host 127.0.0.1:8444. This is the error I get on my Raspberry Pi farmer.
Read more >
Repository sync SSL errors after 6.11 upgrade
On a disconnected Satellite 6.11.1.1 immediately after upgrade from 6.10 (all on RHEL 7), all repositories fail to sync with the message:.
Read more >
How to fix "Unable to connect to https://127.0.0.1 SSL ...
On my ubuntu workstation, the certificate's Common Name is 'Ubuntu' -- and that won't match either localhost or 127.0.0.1. For this approach to ......
Read more >
Page can't be displayed when you connect through SSL
This problem usually occurs when you try to set up SSL on the administration Web site. IIS finds the SSL settings for the...
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