hiboyhiboy / opt-script

opt-script
348 stars 173 forks source link

定时更新Clash订阅后,配置没有生效 #128

Open ninstein opened 3 years ago

ninstein commented 3 years ago

2021-5-2的最新版本固件,启用Clash,并配置了订阅源开启了自动定时更新,查看了系统日志,确实触发了自动更新调用(Sh10_clash.sh wget_yml)而且也更新到最新的配置文件( /etc/storage/app_20.sh 文件内容是最新配置),但是打开Clash网页后台,看到的配置都是更新之前的,此时科学上网也已经失效了。

ninstein commented 3 years ago

自动更新时刻详细日志内容如下:

Jun 6 00:02:01 【clash】: 服务器订阅:开始更新 Jun 6 00:02:07 【clash】: 下载 clash 配置完成! Jun 6 00:02:07 【clash】: 服务器订阅:更新完成 Jun 6 00:02:07 【clash】: 请按F5或刷新 web 页面刷新配置 Jun 6 00:02:12 【clash】: 保存web节点选择 Jun 6 00:02:15 【clash】: 保存web节点选择,完成! Jun 6 00:02:21 【clash】: 初始化 clash dns 配置 Jun 6 00:02:22 【clash】: 变更 clash dns 端口 listen 0.0.0.0:8053 跳过自动开启第三方 DNS 程序但是继续把DNS绑定到 8053 端口的程序 Jun 6 00:02:22 【clash】: 初始化 clash 配置 Jun 6 00:02:26 【clash】: 允许局域网的连接 Jun 6 00:02:30 【clash】: HTTP 代理端口:7890 Jun 6 00:02:38 【clash】: redir 代理端口:7892 Jun 6 00:02:38 【clash】: 删除 Clash 配置文件中原有的 DNS 配置 Jun 6 00:02:51 【clash】: 设置日志输出: info Jun 6 00:02:55 【clash】: 将 DNS 配置 /tmp/clash/dns.yml 以覆盖的方式与 /opt/app/clash/config/config.yaml 合并 Jun 6 00:02:55 【clash】: 初始化 clash 配置完成!实际运行配置:/opt/app/clash/config/config.yaml Jun 6 00:02:55 【clash】: api热重载配置 Jun 6 00:02:55 【clash】: api热重载配置,完成! Jun 6 00:02:55 【clash】: 恢复web节点选择 Jun 6 00:02:56 【clash】: 恢复web节点选择,完成! Jun 6 00:02:56 【clash】: 【自动】设置 ss_tproxy 配置文件,配置导入中... Jun 6 00:02:58 【clash】: 【自动】设置 ss_tproxy 配置文件,完成配置导入 Jun 6 00:02:59 【sh_ss_tproxy.sh】: resolve_svraddr Jun 6 00:02:59 dnsmasq[27234]: exiting on receipt of SIGTERM Jun 6 00:03:00 dnsmasq[28171]: started, version 2.80 cachesize 1024 Jun 6 00:03:00 dnsmasq[28171]: compile time options: IPv6 GNU-getopt no-RTC no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua no-TFTP no-conntrack ipset no-auth no-nettlehash no-DNSSEC no-loop-detect no-inotify no-dumpfile Jun 6 00:03:00 dnsmasq[28171]: warning: ignoring resolv-file flag because no-resolv is set Jun 6 00:03:00 dnsmasq-dhcp[28171]: DHCP, IP range *****, lease time 1d Jun 6 00:03:00 dnsmasq-dhcp[28171]: DHCP, sockets bound exclusively to interface br0 Jun 6 00:03:00 dnsmasq[28171]: using 6199 more nameservers Jun 6 00:03:00 dnsmasq[28171]: bad name at /etc/hosts line 14 Jun 6 00:03:00 dnsmasq[28171]: bad name at /etc/hosts line 16 Jun 6 00:03:00 dnsmasq[28171]: bad name at /etc/hosts line 18 Jun 6 00:03:00 dnsmasq[28171]: bad name at /etc/hosts line 19 Jun 6 00:03:00 dnsmasq[28171]: bad name at /etc/hosts line 20 Jun 6 00:03:00 dnsmasq[28171]: bad name at /etc/hosts line 21 Jun 6 00:03:00 dnsmasq[28171]: bad name at /etc/hosts line 22 Jun 6 00:03:00 dnsmasq[28171]: bad name at /etc/hosts line 23 Jun 6 00:03:00 dnsmasq[28171]: bad name at /etc/hosts line 24 Jun 6 00:03:00 dnsmasq[28171]: bad name at /etc/hosts line 25 Jun 6 00:03:00 dnsmasq[28171]: read /etc/hosts - 25 addresses Jun 6 00:03:00 dnsmasq[28171]: read /etc/storage/dnsmasq/hosts - 0 addresses Jun 6 00:03:00 dnsmasq-dhcp[28171]: read /etc/dnsmasq/dhcp/dhcp-hosts.rc Jun 6 00:03:00 dnsmasq[28171]: using 6200 more nameservers