全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworksBGVM服务器主机交流
IP归属甄别会员请立即修改密码Sharktech防护
查看: 3201|回复: 17

[疑问] 乌图版,大便系统搭建酸酸**出错。。。

[复制链接]
发表于 2018-5-15 14:00:26 | 显示全部楼层 |阅读模式
乌图版,大便系统搭建酸酸**出错。。。
大佬帮忙看看哪里错了,怎么改?
root@centos-s-1vcpu-1gb-sfo2-01:~/shadowsocksr# ./initcfg.sh
root@centos-s-1vcpu-1gb-sfo2-01:~/shadowsocksr# nano userapiconfig.py
root@centos-s-1vcpu-1gb-sfo2-01:~/shadowsocksr# nano user-config.json
root@centos-s-1vcpu-1gb-sfo2-01:~/shadowsocksr# nano usermysql.json
root@centos-s-1vcpu-1gb-sfo2-01:~/shadowsocksr# python server.py
IPv6 support
2018-05-15 05:16:25 INFO     util.py:94 loading libcrypto from libcrypto.so.1.0.0
2018-05-15 05:16:25 INFO     asyncdns.py:287 black_hostname_list init as : []
2018-05-15 05:16:25 INFO     asyncdns.py:335 dns server: [('67.207.67.3', 53), ('67.207.67.2', 53)]
2018-05-15 05:16:25 INFO     shell.py:74 ShadowsocksR SSRR 3.2.1 2017-10-15
2018-05-15 05:16:25 INFO     db_transfer.py:244 current process RLIMIT_NOFILE resource: soft 1024 hard 4096
2018-05-15 05:16:25 ERROR    db_transfer.py:272 Traceback (most recent call last):
  File "/root/shadowsocksr/db_transfer.py", line 254, in thread_db
    rows = db_instance.pull_db_all_user()
  File "/root/shadowsocksr/db_transfer.py", line 389, in pull_db_all_user
    db=self.cfg["db"], charset='utf8')
  File "/root/shadowsocksr/cymysql/__init__.py", line 84, in Connect
    return Connection(*args, **kwargs)
  File "/root/shadowsocksr/cymysql/connections.py", line 245, in __init__
    self._connect()
  File "/root/shadowsocksr/cymysql/connections.py", line 413, in _connect
    self._request_authentication()
  File "/root/shadowsocksr/cymysql/connections.py", line 497, in _request_authentication
    auth_packet = self.read_packet()
  File "/root/shadowsocksr/cymysql/connections.py", line 418, in read_packet
    return MysqlPacket(self)
  File "/root/shadowsocksr/cymysql/packet.py", line 65, in __init__
    raise_mysql_exception(self.__data)
  File "/root/shadowsocksr/cymysql/err.py", line 149, in raise_mysql_exception
    _check_mysql_exception(errinfo)
  File "/root/shadowsocksr/cymysql/err.py", line 144, in _check_mysql_exception
    raise InternalError(errno, errorvalue)
InternalError: (1043, u'Bad handshake')

^X^CTraceback (most recent call last):
  File "server.py", line 58, in main
    thread.join(10.0)
  File "/usr/lib/python2.7/threading.py", line 960, in join
    self.__block.wait(delay)
  File "/usr/lib/python2.7/threading.py", line 358, in wait
    _sleep(delay)
KeyboardInterrupt
root@centos-s-1vcpu-1gb-sfo2-01:~/shadowsocksr# pip uninstall cymysql && pip install cymysql=="0.9.6"
Uninstalling cymysql:
  /usr/local/lib/python2.7/dist-packages/cymysql-0.9.6.egg-info
  /usr/local/lib/python2.7/dist-packages/cymysql/__init__.py
  /usr/local/lib/python2.7/dist-packages/cymysql/__init__.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/charset.py
  /usr/local/lib/python2.7/dist-packages/cymysql/charset.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/connections.py
  /usr/local/lib/python2.7/dist-packages/cymysql/connections.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/CLIENT.py
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/CLIENT.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/COMMAND.py
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/COMMAND.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/CR.py
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/CR.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/ER.py
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/ER.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/FIELD_TYPE.py
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/FIELD_TYPE.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/FLAG.py
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/FLAG.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/SERVER_STATUS.py
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/SERVER_STATUS.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/__init__.py
  /usr/local/lib/python2.7/dist-packages/cymysql/constants/__init__.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/converters.py
  /usr/local/lib/python2.7/dist-packages/cymysql/converters.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/cursors.py
  /usr/local/lib/python2.7/dist-packages/cymysql/cursors.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/err.py
  /usr/local/lib/python2.7/dist-packages/cymysql/err.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/packet.py
  /usr/local/lib/python2.7/dist-packages/cymysql/packet.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/__init__.py
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/__init__.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/base.py
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/base.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/test_DictCursor.py
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/test_DictCursor.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/test_SSCursor.py
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/test_SSCursor.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/test_basic.py
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/test_basic.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/test_example.py
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/test_example.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/test_issues.py
  /usr/local/lib/python2.7/dist-packages/cymysql/tests/test_issues.pyc
  /usr/local/lib/python2.7/dist-packages/cymysql/times.py
  /usr/local/lib/python2.7/dist-packages/cymysql/times.pyc
Proceed (y/n)? y
  Successfully uninstalled cymysql
Downloading/unpacking cymysql==0.9.6
  Downloading cymysql-0.9.6.tar.gz (42kB): 42kB downloaded
  Running setup.py (path:/tmp/pip_build_root/cymysql/setup.py) egg_info for package cymysql
   
Installing collected packages: cymysql
  Running setup.py install for cymysql
   
Successfully installed cymysql
Cleaning up...
root@centos-s-1vcpu-1gb-sfo2-01:~/shadowsocksr# python server.py
IPv6 support
2018-05-15 05:22:22 INFO     util.py:94 loading libcrypto from libcrypto.so.1.0.0
2018-05-15 05:22:22 INFO     asyncdns.py:287 black_hostname_list init as : []
2018-05-15 05:22:22 INFO     asyncdns.py:335 dns server: [('67.207.67.3', 53), ('67.207.67.2', 53)]
2018-05-15 05:22:22 INFO     shell.py:74 ShadowsocksR SSRR 3.2.1 2017-10-15
2018-05-15 05:22:22 INFO     db_transfer.py:244 current process RLIMIT_NOFILE resource: soft 1024 hard 4096
2018-05-15 05:22:22 ERROR    db_transfer.py:272 Traceback (most recent call last):
  File "/root/shadowsocksr/db_transfer.py", line 254, in thread_db
    rows = db_instance.pull_db_all_user()
  File "/root/shadowsocksr/db_transfer.py", line 389, in pull_db_all_user
    db=self.cfg["db"], charset='utf8')
  File "/root/shadowsocksr/cymysql/__init__.py", line 84, in Connect
    return Connection(*args, **kwargs)
  File "/root/shadowsocksr/cymysql/connections.py", line 245, in __init__
    self._connect()
  File "/root/shadowsocksr/cymysql/connections.py", line 413, in _connect
    self._request_authentication()
  File "/root/shadowsocksr/cymysql/connections.py", line 497, in _request_authentication
    auth_packet = self.read_packet()
  File "/root/shadowsocksr/cymysql/connections.py", line 418, in read_packet
    return MysqlPacket(self)
  File "/root/shadowsocksr/cymysql/packet.py", line 65, in __init__
    raise_mysql_exception(self.__data)
  File "/root/shadowsocksr/cymysql/err.py", line 149, in raise_mysql_exception
    _check_mysql_exception(errinfo)
  File "/root/shadowsocksr/cymysql/err.py", line 144, in _check_mysql_exception
    raise InternalError(errno, errorvalue)
InternalError: (1043, u'Bad handshake')

2018-05-15 05:23:22 ERROR    db_transfer.py:272 Traceback (most recent call last):
  File "/root/shadowsocksr/db_transfer.py", line 254, in thread_db
    rows = db_instance.pull_db_all_user()
  File "/root/shadowsocksr/db_transfer.py", line 389, in pull_db_all_user
    db=self.cfg["db"], charset='utf8')
  File "/root/shadowsocksr/cymysql/__init__.py", line 84, in Connect
    return Connection(*args, **kwargs)
  File "/root/shadowsocksr/cymysql/connections.py", line 245, in __init__
    self._connect()
  File "/root/shadowsocksr/cymysql/connections.py", line 413, in _connect
    self._request_authentication()
  File "/root/shadowsocksr/cymysql/connections.py", line 497, in _request_authentication
    auth_packet = self.read_packet()
  File "/root/shadowsocksr/cymysql/connections.py", line 418, in read_packet
    return MysqlPacket(self)
  File "/root/shadowsocksr/cymysql/packet.py", line 65, in __init__
    raise_mysql_exception(self.__data)
  File "/root/shadowsocksr/cymysql/err.py", line 149, in raise_mysql_exception
    _check_mysql_exception(errinfo)
  File "/root/shadowsocksr/cymysql/err.py", line 144, in _check_mysql_exception
    raise InternalError(errno, errorvalue)
InternalError: (1043, u'Bad handshake')

^CTraceback (most recent call last):
  File "server.py", line 58, in main
    thread.join(10.0)
  File "/usr/lib/python2.7/threading.py", line 960, in join
    self.__block.wait(delay)
  File "/usr/lib/python2.7/threading.py", line 358, in wait
    _sleep(delay)
KeyboardInterrupt
发表于 2018-5-15 14:22:26 | 显示全部楼层
没用过 乌图班~~
发表于 2018-5-15 14:30:26 来自手机 | 显示全部楼层
我次噢 昨天刚来一个 今天又来? 学会论坛搜索会方便很多。 pip升或降到9.0.1,然后pip install cymysql==0.9.4
 楼主| 发表于 2018-5-15 14:33:54 | 显示全部楼层
已经装了pip9.0.1

root@centos-s-1vcpu-1gb-sfo2-01:~/shadowsocksr# ls
CHANGES          apiconfig.py      db_transfer.pyc   logrun.sh         server.py         switchrule.py      utils
CONTRIBUTING.md  asyncmgr.py       debian            mudb.json         server_pool.py    tail.sh
Dockerfile       config.json       importloader.py   mujson_mgr.py     server_pool.pyc   tests
LICENSE          configloader.py   importloader.pyc  mysql.json        setup.py          user-config.json
MANIFEST.in      configloader.pyc  initcfg.bat       pip-9.0.1         setup_cymysql.sh  userapiconfig.py
README.md        cymysql           initcfg.sh        pip-9.0.1.tar.gz  shadowsocks       userapiconfig.pyc
README.rst       db_transfer.py    initmudbjson.sh   run.sh            stop.sh           usermysql.json
root@centos-s-1vcpu-1gb-sfo2-01:~/shadowsocksr# python server.py
发表于 2018-5-15 14:46:56 | 显示全部楼层
daniu 发表于 2018-5-15 14:33
已经装了pip9.0.1

root@centos-s-1vcpu-1gb-sfo2-01:~/shadowsocksr# ls

安裝cymysql 0.9.4
 楼主| 发表于 2018-5-15 15:01:54 | 显示全部楼层

我重走一遍试试
发表于 2018-5-15 15:19:05 | 显示全部楼层
daniu 发表于 2018-5-15 15:01
我重走一遍试试

給你個貼子看看能不能幫到你,我是debian,這個帖子的是centos。不過應該是一樣的
https://www.hostloc.com/thread-449538-1-1.html

pip版本不對可能無法安裝0.9.4的cymysql
发表于 2018-5-15 16:03:07 | 显示全部楼层
哪来这么麻烦  换个系统 换个一键包不得了
发表于 2018-5-15 17:25:33 | 显示全部楼层
汉顺字序并不定一影阅响读。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|全球主机交流论坛

GMT+8, 2019-12-14 13:44 , Processed in 0.074924 second(s), 7 queries , MemCache On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表