付费节点推荐
免费节点
节点使用教程
[root@shadowsocksr]# python server.py IPv6 support 2018-05-13 14:58:54 INFO util.py:85 loading libcrypto from libcrypto.so.10 2018-05-13 14:58:54 INFO asyncdns.py:324 dns server: [('8.8.8.8', 53), ('8.8.4.4', 53)] 2018-05-13 14:58:54 INFO shell.py:72 ShadowsocksR 3.4.0 2017-07-27 2018-05-13 14:58:54 INFO db_transfer.py:238 current process RLIMIT_NOFILE resource: soft 1024 hard 4096 2018-05-13 14:58:55 ERROR db_transfer.py:266 Traceback (most recent call last): File "/root/shadowsocksr/db_transfer.py", line 248, in thread_db rows = db_instance.pull_db_all_user() File "/root/shadowsocksr/db_transfer.py", line 383, in pull_db_all_user db=self.cfg["db"], charset='utf8') File "/usr/lib/python2.6/site-packages/cymysql/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/usr/lib/python2.6/site-packages/cymysql/connections.py", line 237, in __init__ self._connect() File "/usr/lib/python2.6/site-packages/cymysql/connections.py", line 403, in _connect self._request_authentication() File "/usr/lib/python2.6/site-packages/cymysql/connections.py", line 477, in _request_authentication auth_packet = MysqlPacket(self) File "/usr/lib/python2.6/site-packages/cymysql/packet.py", line 67, in __init__ raise_mysql_exception(self.__data) File "/usr/lib/python2.6/site-packages/cymysql/err.py", line 142, in raise_mysql_exception _check_mysql_exception(errinfo) File "/usr/lib/python2.6/site-packages/cymysql/err.py", line 138, in _check_mysql_exception raise InternalError(errno, errorvalue) InternalError: (1043, u'Bad handshake')
解决:
wget https://pypi.python.org/packages/source/p/pip/pip-9.0.1.tar.gz --no-check-certificate tar -xzvf pip-9.0.1.tar.gz cd pip-9.0.1 python setup.py install pip install cymysql==0.9.4
因pip版本太高 无法指定安装低版本cymysql,降低pip版本指定安装低版本cymysql就行了
错误就是pip和 cymysql版本都太高
未经允许不得转载:Bcoder资源网 » 解决ssr InternalError: (1043, u’Bad handshake’)
评论前必须登录!
登陆 注册