Coder Social home page Coder Social logo

clash-for-autodl's Introduction

clash-for-autodl's People

Contributors

vocabvictor 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

clash-for-autodl's Issues

.env.example missing

It seems there is no file named .env.example in the repo? which is needed in the command cp .env.example .env

ping不通

image image

但还是ping不通,想从github上下载 失败

clash secret这个值要修改嘛

我在自己的梯子网站看到了连接密码、UUID、自定义加密等属性,是否要填写进去呢,还说空着就好。

关于如何使用clash dashboard

你好!谢谢你的这个仓库,我成功在autodl服务器上开启了我的clash代理

不过clash dashboard我不是很清楚应该怎么使用,在我执行了sudo bash start.sh后,我的输出结果是:

CPU architecture: amd64

正在检测订阅地址...
Clash订阅地址可访问!                                      [  OK  ]

正在下载Clash配置文件...
配置文件config.yaml下载成功!                              [  OK  ]

判断订阅内容是否符合clash配置文件标准:
解码后的内容不符合clash标准,尝试将其转换为标准格式
配置文件已成功转换成clash标准格式

正在启动Clash服务...
服务启动成功!                                             [  OK  ]

Clash Dashboard 访问地址: http://<ip>:9090/ui
Secret: <这里我隐去了>

请执行以下命令加载环境变量: source /etc/profile.d/clash.sh

请执行以下命令开启系统代理: proxy_on

若要临时关闭系统代理,请执行: proxy_off

上面的clash dashboard访问地址中显示的并不是一个具体的ip地址,显示的就是**<ip>**,请问我应该如何去访问clash dashboard?

另外,之前有咨询过autodl的客服,在容器中使用代理有下次无法ssh连接的风险,这个是真的吗?(为了避免这种事情发生,我会将clash完全关掉再关机,不过不清楚不关的话会发生什么

谢谢!

source ./start.sh 失败

正在检测订阅地址...
curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104
Clash订阅地址不可访问! [FAILED]
成功创建logs目录: /root/autodl-tmp/clash-for-AutoDL/logs
root@autodl-container-d4e347a000-1fc95dae:~/autodl-tmp/clash-for-AutoDL#
1

ping不通

image 运行成功,但`lsof -i -P -n | grep LISTEN | grep -E ':6006|:789[0-9]'`没反应,ping 也不通呢

urllib.error.HTTPError: HTTP Error 502: Bad Gateway

代理挂上去了,也成功开启了
但是下数据集的时候返回了urllib.error.HTTPError: HTTP Error 502: Bad Gateway
是谷歌的数据集FaceForensics,是不是访问网址的时候还是被墙住了啊

clash 进程已存在,代理已开启,但是无法访问huggingface和github

当前错误信息

2.清理系统盘请参考:https://www.autodl.com/docs/qa/
[√] clash 进程已存在,代理已开启
(base) root@autodl-container-a899408bbc-d018641c:/autodl-tmp# git clone https://huggingface.co/moka-ai/m3e-base
Cloning into 'm3e-base'...
fatal: unable to access 'https://huggingface.co/moka-ai/m3e-base/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
(base) root@autodl-container-a899408bbc-d018641c:
/autodl-tmp# git clone https://github.com/casper-hansen/AutoAWQ.git
Cloning into 'AutoAWQ'...
fatal: unable to access 'https://github.com/casper-hansen/AutoAWQ.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
(base) root@autodl-container-a899408bbc-d018641c:~/autodl-tmp#

前期操作

第一次运行报错

(base) root@autodl-container-a899408bbc-d018641c:~/autodl-tmp/clash-for-AutoDL# source ./start.sh

正在检测订阅地址...
Clash订阅地址可访问! [ OK ]

正在下载Clash配置文件...
配置文件config.yaml下载成功! [ OK ]
日志文件 logs/clash.log 已创建。

正在启动Clash服务...
服务启动成功! [ OK ]

Clash Dashboard 访问地址: http://:6006/ui
Secret: e9af2a3cd6f6d8d14ef169cb1c35808a9078c3d67cc290cdcf48fd1abfd6c43b

已添加代理函数到 .bashrc,并设置为自动执行。\n
请执行以下命令启动系统代理: proxy_on

若要临时关闭系统代理,请执行: proxy_off

若需要彻底删除,请调用: shutdown_system

2.清理系统盘请参考:https://www.autodl.com/docs/qa/
服务关闭成功! [ OK ]
服务启动成功! [ OK ]
[×] 尝试重启后,clash 进程未能启动。代理启动失败

解决办法

我在clash.log里看到:time="2024-07-03T16:24:11+08:00" level=fatal msg="Parse config error: yaml: unmarshal errors:\n line 1097: cannot unmarshal !!map into string"
我将第1097行从:

  • MATCH,Othersexternal-ui: /root/autodl-tmp/clash-for-AutoDL/dashboard/public
    改成:
    external-ui: /root/autodl-tmp/clash-for-AutoDL/dashboard/public

情况

关掉clash后再运行:[√] clash 进程已存在,代理已开启
当下的clash.log:time="2024-07-03T16:26:32+08:00" level=info msg="Start initial compatible provider Proxy"
time="2024-07-03T16:26:32+08:00" level=info msg="Start initial compatible provider Domestic"
time="2024-07-03T16:26:32+08:00" level=info msg="Start initial compatible provider Others"
time="2024-07-03T16:26:32+08:00" level=info msg="Start initial compatible provider GlobalTV"
time="2024-07-03T16:26:32+08:00" level=info msg="Start initial compatible provider AsianTV"
time="2024-07-03T16:26:32+08:00" level=info msg="RESTful API listening at: 127.0.0.1:6006"
访问外网情况:
(base) root@autodl-container-a899408bbc-d018641c:/autodl-tmp# export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
(base) root@autodl-container-a899408bbc-d018641c:
/autodl-tmp# git clone https://github.com/casper-hansen/AutoAWQ.git
Cloning into 'AutoAWQ'...
fatal: unable to access 'https://github.com/casper-hansen/AutoAWQ.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
(base) root@autodl-container-a899408bbc-d018641c:~/autodl-tmp# git clone https://huggingface.co/moka-ai/m3e-base
Cloning into 'm3e-base'...
fatal: unable to access 'https://huggingface.co/moka-ai/m3e-base/': gnutls_handshake() failed: Error in the pull function.

订阅失败

你好,能看下这是啥问题吗,订阅失败了,提示链接不可访问,logs文件夹是空的,但是我用clash for windows 是可以订阅的
image

bash: proxy_on: command not found

奇怪的提示:
(base) root@autodl-container-9403468337-b429962d:~/clash-for-AutoDL# proxy_on
bash: proxy_on: command not found

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.