Oh you are right. I may have forgotten to use quote the ssl. After putting in the quote, I got another error throw out, it seems pymysql 0.6.2 doesn’t support “cipher”.
==> server1c1/logs/server.log <==
2017-08-07 17:31:03,169 - WARNING - 21049:Dummy-403 - SessionWrapper:22 - Could not ping:[IVLE-EHS], session will be left uninitialized, e:[Traceback (most recent call last):
File “/opt/zato/2.0.7/code/zato-server/src/zato/server/connection/sql.py”, line 50, in init_session
self.pool.ping()
File “/opt/zato/2.0.7/code/zato-server/src/zato/server/connection/sql.py”, line 143, in ping
self.engine.connect().execute(query)
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py”, line 1890, in connect
return self._connection_cls(self, **kwargs)
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py”, line 60, in init
self.__connection = connection or engine.raw_connection()
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py”, line 1964, in raw_connection
return self.pool.unique_connection()
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 280, in unique_connection
return _ConnectionFairy._checkout(self)
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 645, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 440, in checkout
rec = pool._do_get()
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 964, in _do_get
return self._create_connection()
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 285, in _create_connection
return _ConnectionRecord(self)
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 411, in init
self.connection = self.__connect()
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 539, in __connect
connection = self.__pool._creator()
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/strategies.py”, line 90, in connect
return dialect.connect(*cargs, **cparams)
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/default.py”, line 377, in connect
return self.dbapi.connect(*cargs, **cparams)
File “/opt/zato/2.0.7/code/eggs/PyMySQL-0.6.2-py2.7.egg/pymysql/init.py”, line 88, in Connect
return Connection(*args, **kwargs)
File “/opt/zato/2.0.7/code/eggs/PyMySQL-0.6.2-py2.7.egg/pymysql/connections.py”, line 546, in init
raise NotImplementedError(‘ssl options capath and cipher are not supported’)
NotImplementedError: ssl options capath and cipher are not supported
I then upgrade PyMySQL to 0.7.11 and try again. This time, it throws another error:
2017-08-07 18:02:21,159 - WARNING - 22051:Dummy-335 - SessionWrapper:22 - Could not ping:[IVLE-EHS], session will be left uninitialized, e:[Traceback (most recent call last):
File “/opt/zato/2.0.7/code/zato-server/src/zato/server/connection/sql.py”, line 50, in init_session
self.pool.ping()
File “/opt/zato/2.0.7/code/zato-server/src/zato/server/connection/sql.py”, line 143, in ping
self.engine.connect().execute(query)
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py”, line 1890, in connect
return self._connection_cls(self, **kwargs)
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py”, line 60, in init
self.__connection = connection or engine.raw_connection()
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py”, line 1964, in raw_connection
return self.pool.unique_connection()
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 280, in unique_connection
return _ConnectionFairy._checkout(self)
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 645, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 440, in checkout
rec = pool._do_get()
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 964, in _do_get
return self._create_connection()
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 285, in _create_connection
return _ConnectionRecord(self)
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 411, in init
self.connection = self.__connect()
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/pool.py”, line 539, in __connect
connection = self.__pool._creator()
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/strategies.py”, line 90, in connect
return dialect.connect(*cargs, **cparams)
File “/opt/zato/2.0.7/code/eggs/SQLAlchemy-0.9.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/default.py”, line 377, in connect
return self.dbapi.connect(*cargs, **cparams)
File “/opt/zato/2.0.7/code/lib/python2.7/site-packages/pymysql/init.py”, line 90, in Connect
return Connection(*args, **kwargs)
File “/opt/zato/2.0.7/code/lib/python2.7/site-packages/pymysql/connections.py”, line 650, in init
self.ctx = self._create_ssl_ctx(ssl)
File “/opt/zato/2.0.7/code/lib/python2.7/site-packages/pymysql/connections.py”, line 709, in _create_ssl_ctx
if isinstance(sslp, ssl.SSLContext):
AttributeError: ‘module’ object has no attribute ‘SSLContext’
]
Am not sure how to proceed from here.
Regards,
Keith