NewFuture / DDNS

:triangular_flag_on_post: 自动更新域名解析到本机IP(支持dnspod,阿里DNS,CloudFlare,华为云,DNSCOM...)
https://ddns.newfuture.cc/
MIT License
4.31k stars 657 forks source link

[debug]在centos8环境下使用crontab定时运行此程序输出无法从文件加载配置: /ddns/config.json #199

Closed GoZ1A0 closed 4 years ago

GoZ1A0 commented 4 years ago

在centos8环境下使用crontab定时运行此程序输出无法从文件加载配置: /ddns/config.json

To Reproduce [复现]

version info [基本信息]

config file [配置文件]

{ 
"$schema": "https://ddns.newfuture.cc/schema/v2.8.json",
  "debug": false,
  "dns": "dnspod",
  "id": "MyDomainID",
  "index4": "url:https://api-ipv4.ip.sb/ip",
  "index6": "false",
  "ipv4": [
     "my.domain",
     "my.domain",
     "my.domain"
     "my.domain"
  ],
  "ipv6": [

  ],
  "proxy": null,
  "token": "mytoken",
  "ttl": null
}

debug output [调试输出]

粘贴输出日志
paste out put here

Additional context

GoZ1A0 commented 4 years ago

yysy我是第一次提交issues,有写的不太妥当的地方谅解一下()

NewFuture commented 4 years ago

配置文件路径对么?

NewFuture commented 4 years ago

配置文件存在但是加载不了,可能是文件格式问题。

PS:二进制版的在centos下不能保证完全正常运行

GoZ1A0 commented 4 years ago

是正确的,我有手动运行也会显示此错误,必须将配置文件删除后重新运行才能使用

GoZ1A0 commented 4 years ago

请问有办法解决吗

NewFuture commented 4 years ago

你贴的这个配置文件的JSON格式是有问题的