Coder Social home page Coder Social logo

Comments (11)

mritd avatar mritd commented on August 20, 2024

有没有详细的 consul 日志?暂时从没出现过

from dockerfile.

mritd avatar mritd commented on August 20, 2024

@crankpin .....这个原因一般是链接被干扰了

from dockerfile.

mritd avatar mritd commented on August 20, 2024

@crankpin 走低位端口试试

from dockerfile.

alexya avatar alexya commented on August 20, 2024

@mritd
不好意思,不是很懂什么是'consul’日志?这个是vm上面的docker日志?还是container里面的ss的日志?
位置在哪里或者怎么打开?
或者,像楼上兄弟那样docker logs [container name]
谢谢!

from dockerfile.

mritd avatar mritd commented on August 20, 2024

@alexya 。。。额,回复你的时候正好在看 consul 文档......所以把 console 打成了 consul 😌

from dockerfile.

alexya avatar alexya commented on August 20, 2024

@mritd 我猜是console。
但我不知道你看什么的?ss-server运行的console日志么?貌似没有呢。
或者怎么让他显示出来?类似楼上的docker logs ss
我去试试。

[updated]

sudo docker logs c4179a4a2542
Kcptun not started......
Starting shadowsocks......
 2018-01-03 15:23:44 INFO: using tcp fast open
sudo docker exec -it c4179a4a2542 /bin/bash
bash-4.4# ps aux
PID   USER     TIME   COMMAND
    1 root       0:00 {entrypoint.sh} /bin/bash /entrypoint.sh
    5 root       0:00 [ss-server]
    6 root       0:00 /bin/bash
   10 root       0:00 ps aux

And I attached my docker stack config:

version: '3'

services:
  server:
    image: mritd/shadowsocks
    ports:
      - "8388:8388"
      - "6500:6500/udp"
    environment:
      SS_MODULE: "ss-server"
      SS_CONFIG: "-s 0.0.0.0 -p 8388 -l 1080 -m aes-256-cfb -k barfoo! --fast-open"
      KCP_FLAG: "false"
      KCP_MODULE: "kcpserver"
      KCP_CONFIG: "-t 127.0.0.1:8388 -l :6500 -mode fast2 --log /var/log/kcpserver.log"

furthermore, I tried to use docker run -dt ... directly instead of docker stack, but got the same error. e.g.

bash-4.4# ps aux 
PID   USER     TIME   COMMAND
    1 root       0:00 {entrypoint.sh} /bin/bash /entrypoint.sh -m ss-server -s -s 0.0.0.0 -p 8388 -m aes-256-cfb -k barfoo! --fast-open
    5 root       0:00 kcpserver -t 127.0.0.1:8388 -l :6500 -mode fast2
    6 root       0:00 ss-server -s 0.0.0.0 -p 8388 -m aes-256-cfb -k barfoo! --fast-open
   10 root       0:00 /bin/bash
   15 root       0:00 ps aux
bash-4.4# ps aux 
PID   USER     TIME   COMMAND
    1 root       0:00 {entrypoint.sh} /bin/bash /entrypoint.sh -m ss-server -s -s 0.0.0.0 -p 8388 -m aes-256-cfb -k barfoo! --fast-open
    5 root       0:00 kcpserver -t 127.0.0.1:8388 -l :6500 -mode fast2
    6 root       0:00 [ss-server]
   10 root       0:00 /bin/bash
   16 root       0:00 ps aux

from dockerfile.

alexya avatar alexya commented on August 20, 2024

@mritd It should be my virtual machine's issue.
I deleted it and re-created one, after running the container, I didn't find the issue.

from dockerfile.

ConserveLee avatar ConserveLee commented on August 20, 2024

刚好看到这里, @alexya 请问关于ss到客户端到health check,consul有什么解决办法吗

from dockerfile.

mritd avatar mritd commented on August 20, 2024

@ConserveLee 没懂你什么意思,ss 作为网络 tunnel 使用?

from dockerfile.

ConserveLee avatar ConserveLee commented on August 20, 2024

@ConserveLee 没懂你什么意思,ss 作为网络 tunnel 使用?

就是有多个ss-server的容器,consul可否检查哪个网络是连通的
@alexya

from dockerfile.

mritd avatar mritd commented on August 20, 2024

可以,请参考 https://www.consul.io/docs/agent/checks.html

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.