Jrohy / multi-v2ray

v2ray/xray多用户管理部署程序
GNU General Public License v3.0
7.01k stars 2.44k forks source link

开启TLS并输入域名后执行出错 #559

Open Nicecsh opened 2 years ago

Nicecsh commented 2 years ago

感谢大佬 Jrohy的一键脚本,安装很方便! 今天刚安装的,成功科学上网了,之后想改为Vmess+WebSocket+TLS模式,首先把传输方式改为WebSocket并输入域名(昨天买的并做了域名解析)后提示成功,然后输入v2ray tls,输入1 1,输入域名。最后出错,错误提示如下( 第1行、第4行、最后一行为红色显示): Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 60 ret='60' _hcode='60' Can not init api for: https://acme-v02.api.letsencrypt.org/directory. Sleep 10 and retry. Can not init api, for https://acme-v02.api.letsencrypt.org/directory restarting v2ray... v2ray restart fail !

请问大佬是什么原因导致错误?

Jrohy commented 2 years ago

没申请到证书吧,看看详细的申请证书的日志

Nicecsh commented 2 years ago

没申请到证书吧,看看详细的申请证书的日志

日志目录是这里吗? /var/log/v2ray/error.log

Jrohy commented 2 years ago

不是,没有日志文件的,只在终端显示

Nicecsh commented 2 years ago

不是,没有日志文件的,只在终端显示

好哒,操作看一下

Nicecsh commented 2 years ago

不是,没有日志文件的,只在终端显示

屏幕输出如下,不知什么原因导致了get失败。

正在获取SSL证书,请稍等.. stoping v2ray... v2ray stop success ! Changed default CA to: https://acme-v02.api.letsencrypt.org/directory Lets find script dir. SCRIPT='/root/.acme.sh/acme.sh' _script='/root/.acme.sh/acme.sh' _script_home='/root/.acme.sh' Using config home:/root/.acme.sh https://github.com/acmesh-official/acme.sh v3.0.2 Running cmd: issue _main_domain='fq.fantastic-kitten.top' _alt_domains='no' Using config home:/root/.acme.sh default_acme_server='https://acme-v02.api.letsencrypt.org/directory' ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory' DOMAIN_PATH='/root/.acme.sh/fq.fantastic-kitten.top_ecc' Using ACME_DIRECTORY: https://acme-v02.api.letsencrypt.org/directory _init api for server: https://acme-v02.api.letsencrypt.org/directory Retrying GET GET url='https://acme-v02.api.letsencrypt.org/directory' timeout= displayError='1' _CURL='curl --silent --dump-header /root/.acme.sh/http.header -L -g ' ret='60' _hcode='60' Retrying GET GET . . . . Retrying GET GET url='https://acme-v02.api.letsencrypt.org/directory' timeout= displayError='1' _CURL='curl --silent --dump-header /root/.acme.sh/http.header -L -g ' ret='60' _hcode='60' ^Crestarting v2ray... v2ray restart fail !

Jrohy commented 2 years ago

可以试试手动申请证书看看: https://github.com/acmesh-official/acme.sh/wiki/%E8%AF%B4%E6%98%8E

Nicecsh commented 2 years ago

可以试试手动申请证书看看: https://github.com/acmesh-official/acme.sh/wiki/%E8%AF%B4%E6%98%8E

好哒 谢谢了!