Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 《更新广告规则、GeoIP & GeoSite 数据库》失败,提示检查网络连接! #818

Open
4 tasks done
erj855 opened this issue Jun 11, 2024 · 5 comments
Open
4 tasks done

Comments

@erj855
Copy link

erj855 commented Jun 11, 2024

在提交之前,请确认

  • 我已经尝试搜索过 Issue ,但没有找到相关问题。
  • 我正在使用最新的 mosdns 版本(或者最新的 commit),问题依旧存在。
  • 我仔细看过 wiki 后仍然无法自行解决该问题。
  • 我非常确定这是 mosdns 核心的问题。(如果是通过第三方衍生软件使用 mosdns 核心,不确定问题源头时,请先向衍生软件开发者提交问题。)

mosdns 版本

V5.3.1

操作系统

openwrt

Bug 描述和复现步骤

更新规则IP库失败

截屏2024-06-11 23 30 49
截屏2024-06-11 23 30 42
截屏2024-06-11 23 30 42
截屏2024-06-11 23 30 42

使用的配置文件

config mosdns 'config'
        option listen_port '5335'
        option geo_update_week_time '*'
        option geo_update_day_time '2'
        option redirect '1'
        option prefer_ipv4 '1'
        option configfile '/etc/mosdns/config.yaml'
        option log_level 'info'
        option logfile '/var/log/mosdns.log'
        option cache_size '8000'
        option cache_survival_time '86400'
        option idle_timeout '30'
        option minimal_ttl '0'
        option maximum_ttl '0'
        option insecure_skip_verify '0'
        option cloudflare '0'
        option listen_port_api '9091'
        option enabled '1'
        option custom_local_dns '1'
        option apple_optimization '1'
        option enable_ecs_remote '0'
        option concurrent '2'
        option dns_leak '1'
        option dump_file '1'
        option dump_interval '3600'
        option geo_auto_update '1'
        option enable_pipeline '1'
        option bootstrap_dns '223.5.5.5'
        option adblock '1'
        list ad_source 'geosite.dat'
        list local_dns '61.178.0.93'
        list local_dns 'https://doh.pub/dns-query'
        list remote_dns 'tls://9.9.9.9'
        list remote_dns 'tls://1.1.1.1'
        list remote_dns 'tls://208.67.220.220'
        list remote_dns 'tls://149.112.112.112'

mosdns 的 log 记录

2024-06-11 23:05:06	INFO	unpacking entry	{"tag": "cn", "length": 10676, "file": "/var/mosdns/geoip_cn.txt"}
2024-06-11 23:05:06	INFO	unpacking entry	{"tag": "cn", "length": 65214, "file": "/var/mosdns/geosite_cn.txt"}
2024-06-11 23:05:06	INFO	unpacking entry	{"tag": "apple", "length": 1737, "file": "/var/mosdns/geosite_apple.txt"}
2024-06-11 23:05:06	INFO	unpacking entry	{"tag": "geolocation-!cn", "length": 19374, "file": "/var/mosdns/geosite_geolocation-!cn.txt"}
2024-06-11 23:05:06	INFO	unpacking entry	{"tag": "category-ads-all", "length": 70952, "file": "/var/mosdns/geosite_category-ads-all.txt"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "geosite_cn", "type": "domain_set"}
2024-06-11 23:05:06	INFO	starting api http server	{"addr": "0.0.0.0:9091"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "geoip_cn", "type": "ip_set"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "geosite_apple", "type": "domain_set"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "geosite_no_cn", "type": "domain_set"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "whitelist", "type": "domain_set"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "blocklist", "type": "domain_set"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "greylist", "type": "domain_set"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "ddnslist", "type": "domain_set"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "hosts", "type": "hosts"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "redirect", "type": "redirect"}
2024-06-11 23:05:06	INFO	redirect	redirect rules loaded	{"length": 0}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "adlist", "type": "domain_set"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "local_ptr", "type": "domain_set"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "cloudflare_cidr", "type": "ip_set"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "lazy_cache", "type": "cache"}
2024-06-11 23:05:06	INFO	lazy_cache	cache dump loaded	{"entries": 5104}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "forward_xinfeng_udp", "type": "forward"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "forward_local", "type": "forward"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "forward_remote", "type": "forward"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "forward_remote_upstream", "type": "sequence"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "modify_ttl", "type": "sequence"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "modify_ddns_ttl", "type": "sequence"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "has_resp_sequence", "type": "sequence"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "query_is_non_local_ip", "type": "sequence"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "fallback", "type": "fallback"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "apple_domain_fallback", "type": "fallback"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "query_is_apple_domain", "type": "sequence"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "query_is_ddns_domain", "type": "sequence"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "query_is_local_domain", "type": "sequence"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "query_is_no_local_domain", "type": "sequence"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "query_is_whitelist_domain", "type": "sequence"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "query_is_greylist_domain", "type": "sequence"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "query_is_reject_domain", "type": "sequence"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "main_sequence", "type": "sequence"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "udp_server", "type": "udp_server"}
2024-06-11 23:05:06	INFO	udp_server	udp server started	{"addr": "[::]:5335"}
2024-06-11 23:05:06	INFO	loading plugin	{"tag": "tcp_server", "type": "tcp_server"}
2024-06-11 23:05:06	INFO	tcp_server	tcp server started	{"addr": "[::]:5335", "tls": false}
2024-06-11 23:05:06	INFO	all plugins are loaded
2024-06-11 23:05:15	WARN	forward_remote	upstream error	{"uqid": 1, "qname": "github.com.", "qclass": 1, "qtype": 1, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:05:15	WARN	forward_remote	failed to dial dns conn	{"error": "dial tcp 208.67.220.220:853: i/o timeout"}
2024-06-11 23:05:24	WARN	forward_remote	upstream error	{"uqid": 6, "qname": "api.insight.synology.com.", "qclass": 1, "qtype": 1, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:05:24	WARN	forward_remote	upstream error	{"uqid": 6, "qname": "api.insight.synology.com.", "qclass": 1, "qtype": 1, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:05:24	WARN	forward_remote	upstream error	{"uqid": 6, "qname": "api.insight.synology.com.", "qclass": 1, "qtype": 1, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:05:24	WARN	forward_remote	upstream error	{"uqid": 6, "qname": "api.insight.synology.com.", "qclass": 1, "qtype": 28, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:05:24	WARN	forward_remote_upstream.r0	reference query routine err	{"query": {"uqid": 6, "client": "::ffff:127.0.0.1", "qname": "api.insight.synology.com.", "qtype": 1, "qclass": 1, "elapsed": "5.001641579s"}, "error": "context deadline exceeded"}
2024-06-11 23:05:24	WARN	forward_remote	failed to dial dns conn	{"error": "context deadline exceeded"}
2024-06-11 23:05:32	WARN	forward_remote	upstream error	{"uqid": 14, "qname": "sns.synology.com.", "qclass": 1, "qtype": 28, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:05:32	WARN	forward_remote	upstream error	{"uqid": 13, "qname": "sns.synology.com.", "qclass": 1, "qtype": 1, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:05:32	WARN	forward_remote	upstream error	{"uqid": 14, "qname": "sns.synology.com.", "qclass": 1, "qtype": 1, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:05:32	WARN	forward_remote	upstream error	{"uqid": 14, "qname": "sns.synology.com.", "qclass": 1, "qtype": 28, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:05:32	WARN	forward_remote	upstream error	{"uqid": 14, "qname": "sns.synology.com.", "qclass": 1, "qtype": 1, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:05:32	WARN	forward_remote	upstream error	{"uqid": 14, "qname": "sns.synology.com.", "qclass": 1, "qtype": 28, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:05:32	WARN	forward_remote	failed to dial dns conn	{"error": "dial tcp 208.67.220.220:853: i/o timeout"}
2024-06-11 23:05:35	WARN	forward_local	upstream error	{"uqid": 22, "qname": "lb._dns-sd._udp.erj001.cn.", "qclass": 1, "qtype": 12, "upstream": "https://doh.pub/dns-query", "error": "context deadline exceeded"}
2024-06-11 23:05:35	WARN	forward_local	upstream error	{"uqid": 22, "qname": "lb._dns-sd._udp.erj001.cn.", "qclass": 1, "qtype": 12, "upstream": "https://doh.pub/dns-query", "error": "context deadline exceeded"}
2024-06-11 23:05:35	WARN	forward_remote	upstream error	{"uqid": 21, "qname": "lb._dns-sd._udp.6.0.0.192.in-addr.arpa.", "qclass": 1, "qtype": 12, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:05:35	WARN	lazy_cache	failed to update lazy cache	{"query": {"uqid": 22, "client": "::ffff:127.0.0.1", "qname": "lb._dns-sd._udp.erj001.cn.", "qtype": 12, "qclass": 1, "elapsed": "5.000789166s"}, "error": "context deadline exceeded"}
2024-06-11 23:05:35	WARN	forward_local	upstream error	{"uqid": 26, "qname": "nas.erj001.cn.", "qclass": 1, "qtype": 12, "upstream": "https://doh.pub/dns-query", "error": "context deadline exceeded"}
2024-06-11 23:05:35	WARN	forward_local	upstream error	{"uqid": 26, "qname": "nas.erj001.cn.", "qclass": 1, "qtype": 12, "upstream": "https://doh.pub/dns-query", "error": "context deadline exceeded"}
2024-06-11 23:05:35	WARN	udp_server	entry err	{"query": {"uqid": 26, "client": "::ffff:127.0.0.1", "qname": "nas.erj001.cn.", "qtype": 12, "qclass": 1, "elapsed": "5.000457694s"}, "error": "context deadline exceeded"}
2024-06-11 23:05:35	WARN	forward_remote	upstream error	{"uqid": 28, "qname": "clients.l.google.com.", "qclass": 1, "qtype": 28, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:05:36	WARN	forward_local	exchange failed	{"error": "http request failed: context deadline exceeded"}
2024-06-11 23:05:36	WARN	forward_local	exchange failed	{"error": "http request failed: context deadline exceeded"}
2024-06-11 23:05:36	WARN	forward_local	exchange failed	{"error": "http request failed: context deadline exceeded"}
2024-06-11 23:05:36	WARN	forward_local	exchange failed	{"error": "http request failed: context deadline exceeded"}
2024-06-11 23:05:36	WARN	forward_local	upstream error	{"uqid": 31, "qname": "nas.erj001.cn.", "qclass": 1, "qtype": 12, "upstream": "61.178.0.93", "error": "context deadline exceeded"}
2024-06-11 23:05:36	WARN	forward_local	upstream error	{"uqid": 31, "qname": "nas.erj001.cn.", "qclass": 1, "qtype": 12, "upstream": "https://doh.pub/dns-query", "error": "context deadline exceeded"}
2024-06-11 23:05:36	WARN	udp_server	entry err	{"query": {"uqid": 31, "client": "::ffff:127.0.0.1", "qname": "nas.erj001.cn.", "qtype": 12, "qclass": 1, "elapsed": "5.000962667s"}, "error": "context deadline exceeded"}
2024-06-11 23:05:37	WARN	forward_local	exchange failed	{"error": "http request failed: context deadline exceeded"}
2024-06-11 23:05:37	WARN	forward_remote	failed to dial dns conn	{"error": "dial tcp 208.67.220.220:853: i/o timeout"}
2024-06-11 23:05:38	WARN	forward_local	upstream error	{"uqid": 32, "qname": "nas.erj001.cn.", "qclass": 1, "qtype": 12, "upstream": "https://doh.pub/dns-query", "error": "context deadline exceeded"}
2024-06-11 23:05:38	WARN	udp_server	entry err	{"query": {"uqid": 32, "client": "::ffff:127.0.0.1", "qname": "nas.erj001.cn.", "qtype": 12, "qclass": 1, "elapsed": "5.000581666s"}, "error": "context deadline exceeded"}
2024-06-11 23:05:38	WARN	forward_local	upstream error	{"uqid": 32, "qname": "nas.erj001.cn.", "qclass": 1, "qtype": 12, "upstream": "https://doh.pub/dns-query", "error": "context deadline exceeded"}
2024-06-11 23:05:39	WARN	forward_local	exchange failed	{"error": "http request failed: context deadline exceeded"}
2024-06-11 23:05:39	WARN	forward_local	exchange failed	{"error": "http request failed: context deadline exceeded"}
2024-06-11 23:05:39	WARN	forward_local	upstream error	{"uqid": 40, "qname": "nas.erj001.cn.", "qclass": 1, "qtype": 12, "upstream": "https://doh.pub/dns-query", "error": "context deadline exceeded"}
2024-06-11 23:05:39	WARN	udp_server	entry err	{"query": {"uqid": 40, "client": "::ffff:127.0.0.1", "qname": "nas.erj001.cn.", "qtype": 12, "qclass": 1, "elapsed": "5.000560247s"}, "error": "context deadline exceeded"}
2024-06-11 23:05:39	WARN	forward_local	upstream error	{"uqid": 40, "qname": "nas.erj001.cn.", "qclass": 1, "qtype": 12, "upstream": "https://doh.pub/dns-query", "error": "context deadline exceeded"}
2024-06-11 23:05:40	WARN	forward_local	exchange failed	{"error": "http request failed: context deadline exceeded"}
2024-06-11 23:05:40	WARN	forward_local	exchange failed	{"error": "http request failed: context deadline exceeded"}
2024-06-11 23:06:25	WARN	forward_remote	upstream error	{"uqid": 90, "qname": "translate.googleapis.com.", "qclass": 1, "qtype": 1, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:06:25	WARN	forward_remote	failed to dial dns conn	{"error": "dial tcp 208.67.220.220:853: i/o timeout"}
2024-06-11 23:06:26	WARN	forward_remote	upstream error	{"uqid": 92, "qname": "translate-pa.googleapis.com.", "qclass": 1, "qtype": 1, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:10:20	WARN	forward_remote	upstream error	{"uqid": 491, "qname": "checkonline.home-assistant.io.", "qclass": 1, "qtype": 1, "upstream": "tls://9.9.9.9", "error": "context deadline exceeded"}
2024-06-11 23:11:42	WARN	forward_remote	upstream error	{"uqid": 577, "qname": "api.wetab.link.", "qclass": 1, "qtype": 1, "upstream": "tls://9.9.9.9", "error": "read err, EOF"}
2024-06-11 23:13:24	WARN	forward_remote	upstream error	{"uqid": 719, "qname": "checkip.synology.com.", "qclass": 1, "qtype": 1, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:13:24	WARN	forward_remote	upstream error	{"uqid": 719, "qname": "checkip.synology.com.", "qclass": 1, "qtype": 28, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:14:54	WARN	forward_remote	upstream error	{"uqid": 813, "qname": "convertio.co.", "qclass": 1, "qtype": 1, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:14:54	WARN	forward_remote	upstream error	{"uqid": 813, "qname": "convertio.co.", "qclass": 1, "qtype": 1, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:14:54	WARN	forward_remote	upstream error	{"uqid": 813, "qname": "convertio.co.", "qclass": 1, "qtype": 1, "upstream": "tls://208.67.220.220", "error": "context deadline exceeded"}
2024-06-11 23:14:54	WARN	fallback	primary error	{"query": {"uqid": 813, "client": "::ffff:127.0.0.1", "qname": "convertio.co.", "qtype": 1, "qclass": 1, "elapsed": "5.001134198s"}, "error": "context deadline exceeded"}
2024-06-11 23:18:05	WARN	forward_remote	upstream error	{"uqid": 1060, "qname": "www.xunjietongda.com.", "qclass": 1, "qtype": 1, "upstream": "tls://9.9.9.9", "error": "read err, EOF"}
2024-06-11 23:18:14	WARN	forward_remote	upstream error	{"uqid": 1071, "qname": "mail.xunjietongda.com.", "qclass": 1, "qtype": 28, "upstream": "tls://149.112.112.112", "error": "context deadline exceeded"}
2024-06-11 23:18:14	WARN	forward_remote	upstream error	{"uqid": 1073, "qname": "hass.xunjietongda.com.", "qclass": 1, "qtype": 1, "upstream": "tls://149.112.112.112", "error": "context deadline exceeded"}
2024-06-11 23:18:14	WARN	forward_remote	upstream error	{"uqid": 1072, "qname": "hass.xunjietongda.com.", "qclass": 1, "qtype": 28, "upstream": "tls://149.112.112.112", "error": "context deadline exceeded"}
2024-06-11 23:26:09	WARN	forward_remote	upstream error	{"uqid": 1477, "qname": "google.com.hk.", "qclass": 1, "qtype": 1, "upstream": "tls://9.9.9.9", "error": "read err, EOF"}
2024-06-11 23:26:12	WARN	forward_remote	upstream error	{"uqid": 1481, "qname": "github-cloud.s3.amazonaws.com.", "qclass": 1, "qtype": 1, "upstream": "tls://149.112.112.112", "error": "context deadline exceeded"}
2024-06-11 23:26:12	WARN	lazy_cache	failed to update lazy cache	{"query": {"uqid": 1481, "client": "::ffff:127.0.0.1", "qname": "github-cloud.s3.amazonaws.com.", "qtype": 1, "qclass": 1, "elapsed": "5.001031816s"}, "error": "context deadline exceeded"}
2024-06-11 23:26:12	WARN	forward_remote	upstream error	{"uqid": 1481, "qname": "github-cloud.s3.amazonaws.com.", "qclass": 1, "qtype": 1, "upstream": "tls://149.112.112.112", "error": "context deadline exceeded"}
@w22gb8
Copy link

w22gb8 commented Jun 13, 2024

我非常确定这是 mosdns 核心的问题。(如果是通过第三方衍生软件使用 mosdns 核心,不确定问题源头时,请先向衍生软件开发者提交问题。)

@Laputa0
Copy link

Laputa0 commented Jun 15, 2024

我非常确定这是 mosdns 核心的问题。(如果是通过第三方衍生软件使用 mosdns 核心,不确定问题源头时,请先向衍生软件开发者提交问题。)

更新规则也不是mosdns提供的能力啊

@Zerorigin
Copy link

Zerorigin commented Jul 5, 2024

首先,你发的这个是 wrt 路由器相关的 luci app
而这个仓库是 MosDNS Core 核心仓库
因此不对 luci 开发者扩展的任何功能提供技术支持
讯问 luci 扩展出来的功能的相关问题,请到对应 luci 仓库去咨询
如果是衍生版本扩展出来的功能,请到相关仓库咨询

@Yumega
Copy link

Yumega commented Jul 5, 2024

@erj855 TTYD 输入 /usr/share/mosdns/mosdns.sh geodata
查看错误

@13311031900
Copy link

解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants