Giter VIP home page Giter VIP logo

chislash's People

Contributors

chisbread avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chislash's Issues

订阅问题

我这边只要一使用第三方的订阅转换(sub.pet sub.maoxiong.net 品云等等都试了)就会报500状态错误,拿不到节点报文,直接使用机场的订阅链可以订阅成功。不知道是否方便排查问题。不知道是不是cf的原因,我这win客户端直连也能订阅成功的。
image

CPU占用高

我在安装完成后,没有使用,就发现CPU占用很高,排查发现是容器里面的tail命令一直在高占用,能否优化一下呢?
image

网络连接

我使用chislash时有些网络访问的不熟悉的问题,向您请教下:
测试步骤如下:
在一台ubuntu16.04上,测试 命令行wget及 chrome浏览器可正常打开www.baidu.com,

chislash 启动:
docker run --name chislash
--network="host"
--privileged
--rm -it
-e SUBSCR_URLS=xxxx
-v $HOME/.config/chislash:/etc/clash
-v /dev:/dev
-v /lib/modules:/lib/modules
-e REMOTE_CONV_RULE=""
chisbread/chislash:latest

  1. docker 运行后 宿主机的wget www.baidu.com正常访问。

  2. 运行chrome
    但是,chrome打不开www.baidu.com, 不知道为什么会这样... 是否需要特殊设置呢?

  3. 启动另一个docker container
    docker run -it --rm --name chislash_test --entrypoint=/bin/bash --privileged -v /dev:/dev -v /lib/modules:/lib/modules --net=host chisbread/chislash -c "wget www.baidu.com"
    Resolving www.baidu.com (www.baidu.com)... 39.156.66.18, 39.156.66.14
    Connecting to www.baidu.com (www.baidu.com)|39.156.66.18|:80...
    也得不到网页数据.

  4. docker stop chislash
    chislash_test, chrome网络都正常。

  5. 在另一台机器上出现过 docker 如果启动的时候不是--net=host , container就无法访问网络。

不太理解是哪部分出问题了,是路由规则还是哪出了问题?

使用supervisor管理服务后启动容器输出xxxx entered FATAL state, too many start retries too quickly

服务启动失败后进入容器内执行的日志

sh-5.0# ss -tulpn
Netid                  State                  Recv-Q                  Send-Q                                    Local Address:Port                                     Peer Address:Port                  Process                  
sh-5.0# supervisord 
/usr/lib/python3/dist-packages/supervisor/options.py:470: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
  self.warnings.warn(
2023-01-09 01:43:27,009 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2023-01-09 01:43:27,010 INFO Included extra file "/etc/supervisord.d/clash.conf" during parsing
2023-01-09 01:43:27,010 INFO Included extra file "/etc/supervisord.d/exporter.conf" during parsing
2023-01-09 01:43:27,010 INFO Included extra file "/etc/supervisord.d/subconverter.conf" during parsing
2023-01-09 01:43:27,012 INFO supervisord started with pid 1725
2023-01-09 01:43:28,014 INFO spawned: 'exporter' with pid 1727
2023-01-09 01:43:28,016 INFO spawned: 'subconverter' with pid 1728
2023-01-09 01:43:28,017 INFO spawned: 'clash' with pid 1729
[chislash log] 启动规则文件服务...
[chislash log] 启动订阅转换服务...
[chislash log] 转换服务: http://172.16.1.132:25500/sub
[chislash log] 规则服务: http://172.16.1.132:8091/ACL4SSR/Clash/config/
[chislash log] 转换规则: http://172.16.1.132:8091/ACL4SSR/Clash/config/ACL4SSR_Online_Full.ini
[chislash log] 订阅已过期 重新订阅中...
[chislash log] Caught SIGTERM signal!
[chislash log] Tell the clash session to shut down.
2023-01-09 01:43:28,053 INFO exited: clash (exit status 0; not expected)
[chislash err] 订阅转换服务未能启动, 请检查端口是否被占用
2023-01-09 01:43:28,057 INFO exited: subconverter (exit status 1; not expected)
[chislash err] 规则文件服务未能启动, 请检查端口是否被占用
2023-01-09 01:43:28,058 INFO exited: exporter (exit status 1; not expected)
2023-01-09 01:43:29,061 INFO spawned: 'exporter' with pid 1857
2023-01-09 01:43:29,064 INFO spawned: 'subconverter' with pid 1858
2023-01-09 01:43:29,067 INFO spawned: 'clash' with pid 1859
[chislash log] 启动规则文件服务...
[chislash log] 启动订阅转换服务...
[chislash log] 转换服务: http://172.16.1.132:25500/sub
[chislash log] 规则服务: http://172.16.1.132:8091/ACL4SSR/Clash/config/
[chislash log] 转换规则: http://172.16.1.132:8091/ACL4SSR/Clash/config/ACL4SSR_Online_Full.ini
[chislash log] 订阅已过期 重新订阅中...
[chislash log] Caught SIGTERM signal!
[chislash log] Tell the clash session to shut down.
2023-01-09 01:43:29,104 INFO exited: clash (exit status 0; not expected)
[chislash err] 订阅转换服务未能启动, 请检查端口是否被占用
2023-01-09 01:43:29,104 INFO exited: subconverter (exit status 1; not expected)
[chislash err] 规则文件服务未能启动, 请检查端口是否被占用
2023-01-09 01:43:29,109 INFO exited: exporter (exit status 1; not expected)
^C2023-01-09 01:43:31,113 INFO spawned: 'exporter' with pid 1998
2023-01-09 01:43:31,117 INFO spawned: 'subconverter' with pid 1999
2023-01-09 01:43:31,120 INFO spawned: 'clash' with pid 2003
2023-01-09 01:43:31,121 WARN received SIGINT indicating exit request
2023-01-09 01:43:31,121 INFO waiting for exporter, subconverter, clash to die

已知的信息
1.有时候可以成功不过90%都是失败
2.确认过没有端口占用
3.按照顺序单独执行subconverter_service exporter_service clash_service是可以启动成功的
4.容器尝试过挂载/etc/supervisord.d修改subconverter和exporter对应配置的startsecs=1和startretries=0
5.在mac上和桌面windows可以正常部署启动成功,truenas上不行

环境信息
CPU:Intel(R) Xeon(R) Gold 6210U CPU @ 2.50GHz
Memory:128GiB
TrueNASVersion:TrueNAS-SCALE-22.12.0
DockerVersion:Docker version 20.10.18, build b40c2f6

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.