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

ERROR: create encryptor fail at port 1080 的解决方案 #32

Closed
JabinGP opened this issue Feb 24, 2021 · 4 comments
Closed

ERROR: create encryptor fail at port 1080 的解决方案 #32

JabinGP opened this issue Feb 24, 2021 · 4 comments

Comments

@JabinGP
Copy link

JabinGP commented Feb 24, 2021

问题描述

发现手上有很多的服务器无法成功连接使用,在查看 ~/.ssr-command-client/shadowsocksr.logtcprelay.py 进行 debug 后得到如下有效错误信息:

{'method': 'chacha20-ietf'............} libsodium not found

原因一目了然,因为系统没有自带 chacha20 加密库。

解决方案

手动安装 chacha20 加密库,以 ubuntu18.04 为例:

sudo apt-get install -y libsodium-dev

也可以参考通过源码手动编译,参考官网

建议

似乎 ubuntu16 以上都不自带 libsodium ,其他发行版情况尚未考证,因为该问题无明显报错,较难察觉,如果作者认为有必要,我可以将以上信息添加到 README 以提醒使用者。

@TyrantLucifer
Copy link
Owner

哈哈哈,我以为玩linux大佬们都会注意到这个点的,这的确是个小坑,使用chacha20加密方式需要安装加密库,那我晚上回去更新一下,感谢,代码现在重构了,现在可以直接用pip安装了。🤪

@JabinGP
Copy link
Author

JabinGP commented Feb 24, 2021

我的😫

@baicaiaichibaicai
Copy link

baicaiaichibaicai commented May 23, 2022

Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10

安装完,依然报错
2022-05-23 02:39:19,984 - tcprelay.py[line:272] - [_create_encryptor] - ERROR: create encryptor fail at port 1080

@zezhishao
Copy link

Distributor ID: Ubuntu Description: Ubuntu 21.10 Release: 21.10

安装完,依然报错 2022-05-23 02:39:19,984 - tcprelay.py[line:272] - [_create_encryptor] - ERROR: create encryptor fail at port 1080

请问你解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants