Coder Social home page Coder Social logo

Comments (12)

mritd avatar mritd commented on August 20, 2024

I have fixed this problem; but I have not updated the version number of docker image in order to follow the main version of shadowsocks; you can update the image by executing the following command:

docker rmi mritd/shadowsocks:3.2.0
docker pull mritd/shadowsocks:3.2.0

from dockerfile.

jaggerwang avatar jaggerwang commented on August 20, 2024

@mritd Still have this problem. Running on GCP VM instance "Linux jw-gcp-server1 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64".

2018-11-06 14:46:28:Status: Downloaded newer image for mritd/shadowsocks:3.2.0
2018-11-06 14:46:30:Recreating dao_ss_1...
2018-11-06 14:46:46:Creating dao_ss_1...
2018-11-06 14:46:48:�[32mStarting shadowsocks......�[0m
2018-11-06 14:46:48: 2018-11-06 14:46:47 INFO: using tcp fast open
2018-11-06 14:46:48: 2018-11-06 14:46:47 INFO: This system doesn't provide enough entropy to quickly generate high-quality random numbers.
2018-11-06 14:46:48:Installing the rng-utils/rng-tools, jitterentropy or haveged packages may help.
2018-11-06 14:46:48: 2018-11-06 14:46:47 INFO: tcp server listening at 0.0.0.0:6443
2018-11-06 14:46:48: 2018-11-06 14:46:47 INFO: running from root user
2018-11-06 14:46:48:2018/11/06 14:46:47 initiating key derivation
2018-11-06 14:46:48:2018/11/06 14:46:47 listening on: [::]:6500
2018-11-06 14:46:48:2018/11/06 14:46:47 compression: true
2018-11-06 14:46:48:2018/11/06 14:46:47 mtu: 1350
2018-11-06 14:46:48:2018/11/06 14:46:47 acknodelay: false
2018-11-06 14:46:48:2018/11/06 14:46:47 keepalive: 10
2018-11-06 14:46:48:2018/11/06 14:46:47 snmplog: 
2018-11-06 14:46:48:2018/11/06 14:46:47 snmpperiod: 60
2018-11-06 14:46:48:2018/11/06 14:46:47 pprof: false
2018-11-06 14:46:48:2018/11/06 14:46:47 quiet: false

from dockerfile.

mritd avatar mritd commented on August 20, 2024

Wait a moment, I will test it again.

from dockerfile.

mritd avatar mritd commented on August 20, 2024

This is a weird problem... I tested it on Conoha's VPS, but there was a problem with GCE's vps; I'm trying to fix it. 😌

from dockerfile.

mritd avatar mritd commented on August 20, 2024

I added the -r option to fix this error, and the docker hub will finish building later.

refs shadowsocks/shadowsocks-libev#1389

from dockerfile.

jaggerwang avatar jaggerwang commented on August 20, 2024

Still there?

2018-11-06 16:26:20:Pulling ss (index.docker.io/mritd/shadowsocks:3.2.0)...
2018-11-06 16:26:23:3.2.0: Pulling from mritd/shadowsocks
2018-11-06 16:26:23:Digest: sha256:0741040b09848acad8e6542cce0698b0fb8ce1d45e4eb0f164ae84020dea78ae
2018-11-06 16:26:23:Status: Image is up to date for mritd/shadowsocks:3.2.0
2018-11-06 16:26:26:Recreating dao_ss_1...
2018-11-06 16:26:41:Creating dao_ss_1...
2018-11-06 16:26:43:�[32mStarting kcptun......�[0m
2018-11-06 16:26:43:�[32mStarting shadowsocks......�[0m
2018-11-06 16:26:43: 2018-11-06 16:26:42 INFO: using tcp fast open
2018-11-06 16:26:43: 2018-11-06 16:26:42 INFO: initializing ciphers... aes-256-cfb
2018-11-06 16:26:43: 2018-11-06 16:26:42 INFO: This system doesn't provide enough entropy to quickly generate high-quality random numbers.
2018-11-06 16:26:43:Installing the rng-utils/rng-tools, jitterentropy or haveged packages may help.
2018-11-06 16:26:43:On virtualized Linux environments, also consider using virtio-rng.
2018-11-06 16:26:43:The service will not start until enough entropy has been collected.
2018-11-06 16:26:43:
2018-11-06 16:26:43: 2018-11-06 16:26:42 INFO: tcp server listening at 0.0.0.0:6443
2018-11-06 16:26:43: 2018-11-06 16:26:42 INFO: running from root user
2018-11-06 16:26:43:2018/11/06 16:26:42 version: 20181002
2018-11-06 16:26:43:2018/11/06 16:26:42 initiating key derivation
2018-11-06 16:26:43:2018/11/06 16:26:42 listening on: [::]:6500
2018-11-06 16:26:43:2018/11/06 16:26:42 target: 127.0.0.1:6443
2018-11-06 16:26:43:2018/11/06 16:26:42 encryption: aes
2018-11-06 16:26:43:2018/11/06 16:26:42 nodelay parameters: 1 20 2 1
2018-11-06 16:26:43:2018/11/06 16:26:42 sndwnd: 1024 rcvwnd: 1024
2018-11-06 16:26:43:2018/11/06 16:26:42 compression: true
2018-11-06 16:26:43:2018/11/06 16:26:42 mtu: 1350
2018-11-06 16:26:43:2018/11/06 16:26:42 datashard: 10 parityshard: 3
2018-11-06 16:26:43:2018/11/06 16:26:42 acknodelay: false
2018-11-06 16:26:43:2018/11/06 16:26:42 dscp: 0
2018-11-06 16:26:43:2018/11/06 16:26:42 sockbuf: 4194304
2018-11-06 16:26:43:2018/11/06 16:26:42 keepalive: 10
2018-11-06 16:26:43:2018/11/06 16:26:42 snmplog: 
2018-11-06 16:26:43:2018/11/06 16:26:42 snmpperiod: 60
2018-11-06 16:26:43:2018/11/06 16:26:42 pprof: false
2018-11-06 16:26:43:2018/11/06 16:26:42 quiet: false

from dockerfile.

mritd avatar mritd commented on August 20, 2024

Use -r and --privileged option, like this:

docker run -dt --name test --privileged mritd/shadowsocks:3.2.0 -s "-s 0.0.0.0 -p 6443 -m chacha20 -k test123 --fast-open" -r

from dockerfile.

jaggerwang avatar jaggerwang commented on August 20, 2024

It's the same. Do I need do something on my GCE vps?

~ docker container inspect --format='{{.HostConfig.Privileged}}' dao_ss_1
true

Here is my docker compose file:

ss:
  image: index.docker.io/mritd/shadowsocks:3.2.0
  privileged: true
  restart: always
  ports:
  - 10300:6443
  environment:
  - SS_MODULE=ss-server
  - SS_CONFIG=-s 0.0.0.0 -p 6443 -m aes-256-cfb -k xxx --fast-open
  - KCP_FLAG=true
  - KCP_MODULE=kcpserver
  - KCP_CONFIG=-t 127.0.0.1:6443 -l :6500 -mode fast2

from dockerfile.

mritd avatar mritd commented on August 20, 2024

add environment RNGD_FLAG=true

from dockerfile.

jaggerwang avatar jaggerwang commented on August 20, 2024

Have another error:

Use /dev/urandom to quickly generate high-quality random numbers......
Failed to init entropy source 1: TPM RNG Device

Starting kcptun......
Starting shadowsocks......
 2018-11-06 18:44:00 INFO: using tcp fast open
 2018-11-06 18:44:00 INFO: initializing ciphers... aes-256-cfb
 2018-11-06 18:44:00 INFO: tcp server listening at 0.0.0.0:6443
 2018-11-06 18:44:00 INFO: running from root user
2018/11/06 18:44:00 version: 20181002
2018/11/06 18:44:00 initiating key derivation
2018/11/06 18:44:00 listening on: [::]:6500
2018/11/06 18:44:00 target: 127.0.0.1:6443
2018/11/06 18:44:00 encryption: aes
2018/11/06 18:44:00 nodelay parameters: 1 20 2 1
2018/11/06 18:44:00 sndwnd: 1024 rcvwnd: 1024
2018/11/06 18:44:00 compression: true
2018/11/06 18:44:00 mtu: 1350
2018/11/06 18:44:00 datashard: 10 parityshard: 3
2018/11/06 18:44:00 acknodelay: false
2018/11/06 18:44:00 dscp: 0
2018/11/06 18:44:00 sockbuf: 4194304
2018/11/06 18:44:00 keepalive: 10
2018/11/06 18:44:00 snmplog:
2018/11/06 18:44:00 snmpperiod: 60
2018/11/06 18:44:00 pprof: false
2018/11/06 18:44:00 quiet: false

from dockerfile.

mritd avatar mritd commented on August 20, 2024

This error message should be ignored.

from dockerfile.

jaggerwang avatar jaggerwang commented on August 20, 2024

Got it!

from dockerfile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.