HenryQW / Awesome-TTRSS

🐋 Awesome TTRSS, a powerful Dockerised all-in-one RSS solution.
http://ttrss.henry.wang
MIT License
2.43k stars 495 forks source link

[BUG] 添加少数派的feed提示错误,无法指定网址下载 #526

Closed qpzm7903 closed 1 month ago

qpzm7903 commented 1 month ago

Bug 描述 添加少数派的feed提示错误: https://sspai.com/feed image

你谷歌/百度了吗? 已使用

部署方法

部署环境

复现步骤 复现该 bug 的详细步骤

  1. 打开 Tiny RSS
  2. 通过快捷键添加feed,输入 https://sspai.com/feed, 点击订阅
  3. 发现错误 image

预期结果 应该能正确添加,像添加其他feed一样

其他feed添加结果如下 image

截屏 如果可以提供截屏将有助于 bug 修复。

错误日志 当错误发生时,通过终端执行 docker logs ttrss --tail 100 获取日志,并将相关错误日志粘贴于此处。 docker logs ttrss --tail 100 [14:41:09/37] 0 active tasks, next spawn at 0 sec. [14:41:10/37] Spawned child process with PID 1247 for task 0. [14:41:10/37] Spawned child process with PID 1249 for task 1. [14:41:10/1248] Using task id 0 [14:41:10/1248] Lock: update_daemon-1247.lock [14:41:10/1250] Using task id 1 [14:41:10/1250] Lock: update_daemon-1249.lock [14:41:10/1248] Waiting before update (0)... [14:41:10/1250] Waiting before update (5)... [14:41:10/1248] Scheduled 3 feeds to update... [14:41:10/1248] Base feed: https://diygod.me/atom.xml [14:41:10/1248] => Hi, DIYgod (ID: 5, U: admin [1]), last updated: 2024-09-21 14:10:58 [14:41:10/1253] Lock: update_daemon-feed-5.lock [14:41:13/1248] <= 2.5695 (sec) exit code: 0 [14:41:13/1248] Base feed: http://coolshell.cn/feed [14:41:13/1248] => 酷 壳 – CoolShell (ID: 3, U: admin [1]), last updated: 2024-09-21 14:10:59 [14:41:13/1255] Lock: update_daemon-feed-3.lock [14:41:14/1248] <= 1.2363 (sec) exit code: 0 [14:41:14/1248] Base feed: https://feeds2.feedburner.com/programthink [14:41:14/1248] => 编程随想的博客 (ID: 4, U: admin [1]), last updated: 2024-09-21 14:11:00 [14:41:14/1257] Lock: update_daemon-feed-4.lock [14:41:15/1250] Scheduled 0 feeds to update... [14:41:15/1250] Sending digests, batch of max 15 users, headline limit = 1000 [14:41:15/1250] All done. [14:41:16/37] Child process with PID 1249 reaped. [14:41:16/37] Received SIGCHLD, 1 active tasks left. [14:41:16/1248] <= 2.4890 (sec) exit code: 0 [14:41:16/1248] Processed 3 feeds in 6.2983 (sec), 2.0994 (sec/feed avg) [14:41:16/1248] Running housekeeping tasks for user 1... [14:41:16/1248] Sending digests, batch of max 15 users, headline limit = 1000 [14:41:16/1248] All done. [14:41:16/1248] Expired cache/export: removed 0 files. [14:41:16/1248] Expired cache/feeds: removed 0 files. [14:41:16/1248] Expired cache/images: removed 0 files. [14:41:16/1248] Expired cache/upload: removed 0 files. [14:41:16/1248] Removed 0 old lock files. [14:41:16/1248] Removing old error log entries... [14:41:16/1248] Purged 0 orphaned posts. [14:41:17/37] Child process with PID 1247 reaped. [14:41:17/37] Received SIGCHLD, 0 active tasks left. [14:42:10/37] 0 active tasks, next spawn at 60 sec. [14:43:10/37] 0 active tasks, next spawn at 0 sec. [14:43:11/37] Spawned child process with PID 1266 for task 0. [14:43:11/37] Spawned child process with PID 1268 for task 1. [14:43:12/1267] Using task id 0 [14:43:12/1267] Lock: update_daemon-1266.lock [14:43:12/1269] Using task id 1 [14:43:12/1269] Lock: update_daemon-1268.lock [14:43:12/1267] Waiting before update (0)... [14:43:12/1269] Waiting before update (5)... [14:43:12/1267] Scheduled 1 feeds to update... [14:43:12/1267] Base feed: https://v2ex.com/index.xml [14:43:12/1267] => V2EX (ID: 2, U: admin [1]), last updated: 2024-09-21 14:12:58 [14:43:12/1272] Lock: update_daemon-feed-2.lock [14:43:13/1267] <= 1.4504 (sec) exit code: 0 [14:43:13/1267] Processed 1 feeds in 1.4514 (sec), 1.4514 (sec/feed avg) [14:43:13/1267] Running housekeeping tasks for user 1... [14:43:13/1267] Sending digests, batch of max 15 users, headline limit = 1000 [14:43:13/1267] All done. [14:43:13/1267] Expired cache/export: removed 0 files. [14:43:13/1267] Expired cache/feeds: removed 0 files. [14:43:13/1267] Expired cache/images: removed 0 files. [14:43:13/1267] Expired cache/upload: removed 0 files. [14:43:13/1267] Removed 0 old lock files. [14:43:13/1267] Removing old error log entries... [14:43:13/1267] Purged 0 orphaned posts. [14:43:14/37] Child process with PID 1266 reaped. [14:43:14/37] Received SIGCHLD, 1 active tasks left. [14:43:17/1269] Scheduled 0 feeds to update... [14:43:17/1269] Sending digests, batch of max 15 users, headline limit = 1000 [14:43:17/1269] All done. [14:43:18/37] Child process with PID 1268 reaped. [14:43:18/37] Received SIGCHLD, 0 active tasks left. [14:44:11/37] 0 active tasks, next spawn at 60 sec. [14:45:11/37] 0 active tasks, next spawn at 0 sec. [14:45:12/37] Spawned child process with PID 1279 for task 0. [14:45:12/37] Spawned child process with PID 1281 for task 1. [14:45:12/1282] Using task id 1 [14:45:12/1282] Lock: update_daemon-1281.lock [14:45:12/1280] Using task id 0 [14:45:12/1280] Lock: update_daemon-1279.lock [14:45:12/1282] Waiting before update (5)... [14:45:12/1280] Waiting before update (0)... [14:45:12/1280] Scheduled 0 feeds to update... [14:45:12/1280] Sending digests, batch of max 15 users, headline limit = 1000 [14:45:12/1280] All done. [14:45:12/1280] Expired cache/export: removed 0 files. [14:45:12/1280] Expired cache/feeds: removed 0 files. [14:45:12/1280] Expired cache/images: removed 0 files. [14:45:12/1280] Expired cache/upload: removed 0 files. [14:45:12/1280] Removed 0 old lock files. [14:45:12/1280] Removing old error log entries... [14:45:12/1280] Purged 0 orphaned posts. [14:45:13/37] Child process with PID 1279 reaped. [14:45:13/37] Received SIGCHLD, 1 active tasks left. [14:45:17/1282] Scheduled 0 feeds to update... [14:45:17/1282] Sending digests, batch of max 15 users, headline limit = 1000 [14:45:17/1282] All done. [14:45:18/37] Child process with PID 1281 reaped. [14:45:18/37] Received SIGCHLD, 0 active tasks left. 其他 任何有助于 bug 修复的信息。 在容器里直接curl指定的地址提示如下 /var/www # curl -kv https://sspai.com/feed

TonyRL commented 1 month ago

Could you try again with docker image wangqiru/ttrss:nightly?

qpzm7903 commented 1 month ago

Could you try again with docker image wangqiru/ttrss:nightly?

Thank you, but after updating to wangqiru/ttrss:nightly, the problem still exists. The result is

root@iStoreOS:~# docker ps | grep ttrss
7ac49a11a501   wangqiru/ttrss:nightly                          "sh /docker-entrypoi…"   6 minutes ago   Up 3 minutes          0.0.0.0:181->80/tcp, :::181->80/tcp                                                                ttrss
root@iStoreOS:~# docker exec -it 7ac49a11a501 bash
OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown
root@iStoreOS:~# docker exec -it 7ac49a11a501 sh
/var/www # curl -kv  https://sspai.com/feed
* Host sspai.com:443 was resolved.
* IPv6: (none)
* IPv4: 119.23.141.248
*   Trying 119.23.141.248:443...
* connect to 119.23.141.248 port 443 from 172.21.0.2 port 46658 failed: Connection refused
* Failed to connect to sspai.com port 443 after 1 ms: Could not connect to server
* closing connection #0
curl: (7) Failed to connect to sspai.com port 443 after 1 ms: Could not connect to server
TonyRL commented 1 month ago

Can the docker host visit https://sspai.com/feed? I have a feeling that the site blocks the docker host.

qpzm7903 commented 1 month ago

Can the docker host visit https://sspai.com/feed? I have a feeling that the site blocks the docker host.

yes , the host can visit https://sspai.com/feed, and another container can visit https://sspai.com/feed too.

root@iStoreOS:~# docker run --rm alpine/curl curl -o null https://sspai.com/feed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5950    0  5950    0     0   139k      0 --:--:-- --:--:-- --:--:--  141k
root@iStoreOS:~# curl -o null https://sspai.com/feed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5950    0  5950    0     0   121k      0 --:--:-- --:--:-- --:--:--  123k
root@iStoreOS:~# docker ps | grep ttrss
7ac49a11a501   wangqiru/ttrss:nightly                          "sh /docker-entrypoi…"   4 hours ago    Up 4 hours             0.0.0.0:181->80/tcp, :::181->80/tcp                                                                ttrss
root@iStoreOS:~# docker exec  7ac49a11a501 curl -o null https://sspai.com/feed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to sspai.com port 443 after 1 ms: Could not connect to server
root@iStoreOS:~# docker exec  7ac49a11a501 curl -o null https://www.ruanyifeng.com/blog/atom.xml
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 61303    0 61303    0     0   141k      0 --:--:-- --:--:-- --:--:--  141k
qpzm7903 commented 1 month ago

怀疑和宿主机的防火墙、iptables有关系,以及docker的自定义网络和默认的桥接网络存在差异,我就换了一台机器重新装了一次,结果就好了