justxuewei / cloudreve-docker

Source code of Docker image for Cloudreve V3
https://hub.docker.com/r/xavierniu/cloudreve
MIT License
220 stars 51 forks source link

关于Docker Run CAC方式Caddy容器报错 #31

Closed sheldon-xc closed 3 years ago

sheldon-xc commented 3 years ago

使用Docker Run CAC方式创建Caddy容器后,容器日志报错:

2021-01-19T08:10:45.758431248Z 2021/01/19 08:10:45 [WARNING] Sending telemetry (attempt 1): Post https://telemetry.caddyserver.com/v1/update/33db58e4-3b19-46bd-8191-a632df305dbd: dial tcp: lookup telemetry.caddyserver.com on 127.0.0.11:53: no such host - backing off and retrying
2021-01-19T08:10:53.846494974Z 2021/01/19 08:10:53 [WARNING] Sending telemetry (attempt 2): Post https://telemetry.caddyserver.com/v1/update/33db58e4-3b19-46bd-8191-a632df305dbd: dial tcp: lookup telemetry.caddyserver.com on 127.0.0.11:53: no such host - backing off and retrying
2021-01-19T08:11:20.948379820Z 2021/01/19 08:11:20 [WARNING] Sending telemetry (attempt 3): Post https://telemetry.caddyserver.com/v1/update/33db58e4-3b19-46bd-8191-a632df305dbd: dial tcp: lookup telemetry.caddyserver.com on 127.0.0.11:53: no such host - backing off and retrying
2021-01-19T08:12:25.049219669Z 2021/01/19 08:12:25 [ERROR] Sending telemetry: Post https://telemetry.caddyserver.com/v1/update/33db58e4-3b19-46bd-8191-a632df305dbd: dial tcp: lookup telemetry.caddyserver.com on 127.0.0.11:53: no such host
justxuewei commented 3 years ago

你是否使用的是内网地址?

sheldon-xc commented 3 years ago

创建步骤与文档一致,Caddyfile文件如下:

my.domain.ink {
  tls /etc/caddycerts/domain/xxxx.pem /etc/caddycerts/domain/xxxx.pem
  log /etc/caddy/logs/xxx.log "{remote} {when} {method} {uri} {proto} {status} {size} {>User-Agent} {latency}"
  errors /etc/caddy/logs/xxx.error.log
  proxy / cloudreve:5212 {
    transparent
  }
}
justxuewei commented 3 years ago

你的my.domain.ink是否最终指向的内网地址?由于caddy使用的是Let's Encrypt,无法为私有IP签发HTTPS证书。

ref: https://community.letsencrypt.org/t/certificates-for-hosts-on-private-networks/174

sheldon-xc commented 3 years ago

没有指向内网地址,现在没有改解析,用nginx反代是正常的。

justxuewei commented 3 years ago

lookup telemetry.caddyserver.com on 127.0.0.11:53: no such host 你试一下这个网址可以被正确解析吗?

justxuewei commented 3 years ago

似乎caddy v1已经不受支持了,telemetry.caddyserver.com已经被关闭。请使用caddy2,我有时间的时候会更新文档。

sheldon-xc commented 3 years ago

好的,非常感谢

justxuewei commented 3 years ago

已经将服务器软件更换为Nginx,更多信息请参阅Dev分支。