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

[BUG] 1.2.0 Pool SSL Certificate Failed to verify #7273

Closed
Biggers78 opened this issue Jul 9, 2021 · 34 comments · Fixed by #7461
Closed

[BUG] 1.2.0 Pool SSL Certificate Failed to verify #7273

Biggers78 opened this issue Jul 9, 2021 · 34 comments · Fixed by #7461
Labels
bug Something isn't working

Comments

@Biggers78
Copy link

Describe the bug

Cannot connect to host xch.spacefarmers.io:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')]

Certificate validity appears correct at both ends.

Result: Pool creates, Contract and ID. However not connected to pool, unable to get plot points

To Reproduce

chia.net download
Installed
Synced then pool added. Thats it.

From my basic understanding it appears to be a Python issue, but I'm far from an expert.

Tested on two different machines / MAC OS Big Sur 11.4 & Catalina 10.15.7

Expected behavior
To work...

Screenshots
N/A

Desktop

  • OS: MAC OSX
  • OS Version/Flavor: 1. Bur Sur 11.4 - 2. Catalina 10.15.7
  • CPU: 1. Inel i7 - 2. Intel i5

Additional context

@Biggers78 Biggers78 added the bug Something isn't working label Jul 9, 2021
@loppefaaret
Copy link

could you try a fresh reinstall, we had a PR submitted on our CA cert yesterday that should fix this

@yshklarov
Copy link

could you try a fresh reinstall, we had a PR submitted on our CA cert yesterday that should fix this

The fresh CA cert didn't make it into the 1.2.0 package. But in any case, replacing it with the newer file doesn't resolve the issue (I tested this). The problem is that the cert isn't being used. See my notes in the duplicate bug report.

@Biggers78
Copy link
Author

Biggers78 commented Jul 9, 2021 via email

@loppefaaret
Copy link

yes, my bad, i guess that fix above does not work for using the installers - you need to await a 1.2.1

@roxleopardo
Copy link

roxleopardo commented Jul 9, 2021

I'm having the same issue. I'm using Manjaro Linux distro (Arch Linux based) and Python 3.9.5.
I was using Ubuntu DEB package this issue happens. But when I build from source I got this working with no SSL issue.

@loppefaaret
Copy link

@roxleopardo thank you very much for the report.
on that node, im closing this issue, and participants should await a 1.2.1 release for a fix for installer users

@youngfong13
Copy link

yes, my bad, i guess that fix above does not work for using the installers - you need to await a 1.2.1

Would 1.2.1.dev0 or later have this fixed?

@loppefaaret
Copy link

please don't run dev releases on mainnet, without express direction from a developer - it can cause unexpected results!

@Biggers78
Copy link
Author

Biggers78 commented Jul 10, 2021 via email

@youngfong13
Copy link

please don't run dev releases on mainnet, without express direction from a developer - it can cause unexpected results!

Okay, just looking for solutions. so far 1.2.0 doesn't work for pool plots on linux/Mac OS for me and my non-pool plots aren't recognized in CLI.

@ukrainets
Copy link

I'm also having this issue, (Mac OS 11.4 ) and according to messages in the Space pool discord, a lot of people have it.
@loppefaaret can you share any gestimation on when we can expect a v1.2.1 ?

@loppefaaret
Copy link

I'm sorry, but all i can say is soon, hopefully very soon

@griffithJ
Copy link

Still broken on Mac in release 1.2.1

% chia version
1.2.1
% grep "GET /pool_info" debug.log | tail -1                                             
2021-07-12T14:40:18.381 farmer chia.farmer.farmer         : ERROR    Exception in GET /pool_info https://chia.futurepool.io, Cannot connect to host chia.futurepool.io:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')]

@loppefaaret loppefaaret reopened this Jul 12, 2021
@loppefaaret
Copy link

@griffithJ is that installer ? m1(arm) or intel based ?

@griffithJ
Copy link

@griffithJ is that installer ? m1(arm) or intel based ?

That was the .app copied from the .dmg. Intel. Is there a better way I should be installing updates?

@loppefaaret
Copy link

that is perfect, just wanted to make sure the error was in the installer!

@StonedStudio
Copy link

I have the issue as well still on 1.2.1 using the m1 installer.

@ukrainets
Copy link

ukrainets commented Jul 12, 2021

Yes me too. I just installed 1.2.1 and still see the same issue
2021-07-12T17:58:06.798 farmer chia.farmer.farmer : ERROR Exception in GET /pool_info https://na1.pool.space, Cannot connect to host na1.pool.space:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')]

Mac OS 11.4 (20F71) Intel, GUI installer

@loppefaaret
Copy link

could you try a fresh reinstall, we had a PR submitted on our CA cert yesterday that should fix this

The fresh CA cert didn't make it into the 1.2.0 package. But in any case, replacing it with the newer file doesn't resolve the issue (I tested this). The problem is that the cert isn't being used. See my notes in the duplicate bug report.

i think yshklarov might have something here from his dupe #7278 I'm escalating this up the chain to get some 👀 on it

@Biggers78
Copy link
Author

Biggers78 commented Jul 13, 2021 via email

@andrewsno1
Copy link

I am getting the same error when trying to create a plotnft:

Exception from 'wallet' Error connecting to pool https://pool.chiahub.io: Cannot connect to host pool.chiahub.io:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')]

I am running version 1.2.1 on Manjaro Linux. I had the issue with version 1.2.0. I tried to connect to https://pool.chiahub.io

@ukrainets
Copy link

@loppefaaret Yesterday I tried a clean install with the intel Mac GUI installer and it didn't work, still have the same issue.
Doing clean install via CLI was my last hope that what I'll try to do today and will use @Biggers78 suggestion.

@StonedStudio
Copy link

I also no longer have an issue once Python was adjusted to 3.#. It appears to have defaulted to use 2.7

@bernharl
Copy link

Still have the issue on Arch Linux. python-certifi installed.

@hoffmang9 hoffmang9 mentioned this issue Jul 13, 2021
@ukrainets
Copy link

I fixed this issue on my farmer machine by updating python.

@sdbarrish
Copy link

2021-07-14T15:59:28.653 full_node asyncio : ERROR SSL error in data received
protocol: <asyncio.sslproto.SSLProtocol object at 0x7f9a2425c0>
transport: <_SelectorSocketTransport fd=104 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
ssldata, appdata = self._sslpipe.feed_ssldata(data)
File "/usr/lib/python3.7/asyncio/sslproto.py", line 207, in feed_ssldata
self._sslobj.unwrap()
File "/usr/lib/python3.7/ssl.py", line 767, in unwrap
return self._sslobj.shutdown()
ssl.SSLError: [SSL: KRB5_S_INIT] application data after close notify (_ssl.c:2609)

@yshklarov
Copy link

Release 1.2.2 fully resolves the issue on my system (arch linux). Thanks @loppefaaret @emlowe @wjblanke!

@emlowe
Copy link
Contributor

emlowe commented Jul 14, 2021

Fixed in 1.2.2

@emlowe emlowe closed this as completed Jul 14, 2021
@Manintorn
Copy link

I fixed this problem by update Python 3.9.5 and Chia 1.2.2

@KmBooy
Copy link

KmBooy commented Jul 15, 2021

Does Windows 10 have this problem

@Manintorn
Copy link

Does Windows 10 have this problem

My PC with Windows10 works just fine.

@njtnestor
Copy link

njtnestor commented Jul 15, 2021

I have the same problem in 1.2.2 - ubuntu

@andrewsno1
Copy link

I am getting the same error when trying to create a plotnft:

Exception from 'wallet' Error connecting to pool https://pool.chiahub.io: Cannot connect to host pool.chiahub.io:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')]

I am running version 1.2.1 on Manjaro Linux. I had the issue with version 1.2.0. I tried to connect to https://pool.chiahub.io

Fixed for me in 1.2.2
I am plotting for the pool now.

@hlung
Copy link

hlung commented Aug 8, 2021

For me, something was messing my DNS. I go to System Preferences > Network > select my wifi > DNS tab > add 8.8.8.8 to my DNS servers list. This solves the issue for me.

Update: It only helps for a few hours. Now the error comes back again :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.