'unsupported protocol' error when using PyMySQL
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| openssl (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
1)
Description: Ubuntu 20.04 LTS
Release: 20.04
2)
openssl:
Installiert: 1.1.1f-1ubuntu2
Installations
Versionstabelle:
*** 1.1.1f-1ubuntu2 500
500 http://
100 /var/lib/
3) + 4)
I am trying to connect to my MariaDB with python package "PyMySQL" and SSL enabled. On my old installation (Kubuntu 19.10) this worked. With the new installation (also new PC: Xubuntu 20.04) I get this error message:
ssl.SSLError: [SSL: UNSUPPORTED_
Here are my installation details:
Old installation: python 3.7.5, pymysql 0.9.3, ssl.OPENSSL_VERSION = 1.1.1c 28 May 2019
New installation: python 3.8.2, pymysql 0.9.3, ssl.OPENSSL_VERSION = 1.1.1f 31 Mar 2020
When I use python with a different SSL version...:
this works: python 3.7.5, ssl.OPENSSL_VERSION = OpenSSL 1.1.0m-dev xx XXX xxxx
this works: python 3.7.5, ssl.OPENSSL_VERSION = OpenSSL 1.1.1h-dev xx XXX xxxx
this works: python 3.8.2, ssl.OPENSSL_VERSION = OpenSSL 1.1.1h-dev xx XXX xxxx
It seems, like the one specific version of openSSL (1.1.1f 31 Mar 2020) does not work together with PyMySQL.
Some more details I have posted here:
https:/
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: openssl 1.1.1f-1ubuntu2
ProcVersionSign
Uname: Linux 5.4.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.4
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Sat Jul 18 15:42:27 2020
InstallationDate: Installed on 2020-07-13 (4 days ago)
InstallationMedia: Xubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: openssl
UpgradeStatus: No upgrade log present (probably fresh install)
| Changed in openssl (Ubuntu): | |
| status: | Incomplete → Confirmed |

Hi, I'm having a similar issue. Mariadb server with ssl connection, I'm trying to connect a software called Superset with PyMySQL driver. Error message looks identical:
WARNING: superset. views.core: Connection failed (pymysql. err.Operational Error) (2003, "Can't connect to MySQL server on '<IP_ADDRESS>' ([SSL: UNSUPPORTED_ PROTOCOL] unsupported protocol (_ssl.c:1108))") sqlalche. me/e/13/ e3q8)
(Background on this error at: http://
Client running on Ubuntu 20.04