TyrantLucifer / ssr-command-client

:airplane:The commend client of ssr based Python3
Apache License 2.0
978 stars 240 forks source link

tcprelay.py[line:272] - [_create_encryptor] - ERROR: create encryptor fail at port 60000 #69

Open luoolu opened 2 years ago

luoolu commented 2 years ago

followed below: apt-get install build-essential -y wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz tar xzvf LATEST.tar.gz cd libsodium* ./configure && make -j8 && make install echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf ldconfig

but also create encryptor fail at port 60000

TyrantLucifer commented 2 years ago

Please use this command ldconfig -p | grep libcrypto to check the libsodium whether you had installed successfully. If yes, please offer more details that in your log files in comment.

luoolu commented 2 years ago

got this result:

libcrypto.so.1.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libcrypto.so.1.1 libcrypto.so.1.1 (libc6) => /lib/i386-linux-gnu/libcrypto.so.1.1 libcrypto.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libcrypto.so libcrypto++.so.8 (libc6,x86-64) => /lib/x86_64-linux-gnu/libcrypto++.so.8 libcrypto++.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libcrypto++.so

TyrantLucifer commented 2 years ago

It seems no problem. Is any other information in error logs?

V01dZer0 commented 1 year ago

Got same error, and fixed with:

# cent os 7
yum install epel-release -y
yum install libsodium -y

# macOS
brew install libsodium

then restart with

python3 main.py -S
V01dZer0 commented 1 year ago

And another problem is when call start script with content ( named start.sh):

#!/bin/sh
# this is start.sh
python3 main.py -s channel -p port

in python:

subprocess.check_output(["sh", "start.sh"])

I got the same error:

tcprelay.py[line:272] - [_create_encryptor] - ERROR: create encryptor fail at port