inadyn-mt.conf 오류

inadyn-mt.conf 오류

내 파일에 문제가 있습니다 inadyn-mt.conf. 유닛 파일:

[Unit]
Description=Internet Dynamic DNS Client
Documentation=https://sourceforge.net/projects/inadyn-mt/
ConditionPathExists=/etc/inadyn-mt/inadyn-mt.conf
After=network-online.target
Requires=network-online.target

[Service]
Type=simple
Restart=always
ExecStart=/usr/local/bin/inadyn-mt --input_file /etc/inadyn-mt/inadyn-mt.conf

User=inadyn
PrivateTmp=yes

[Install]
WantedBy=multi-user.target

이나딘부터 시작하세요. 구성 파일:

$ ls /etc/inadyn-mt
640 -rw-r----- 1 inadyn inadyn 771 May  8 22:52 inadyn-mt.conf

좋다:

verbose                 
syslog
ip_server_name          icanhazip.com /

# update interval 10m
update_period_sec       600

# force update after 6h
forced_update_period    21600

# ipv6 priv pref = pub
addr_pref               pub


dyndns_system           [email protected]
username                <user>

alias                   <domain>,<token> ip4
alias                   <domain>,<token> ip6


dyndns_system           [email protected]
username                <token>

alias                   <domain>

장치를 시작하지 못했습니다:

May 08 23:00:56 raspberrypi systemd[1]: Started Internet Dynamic DNS Client.
May 08 23:00:56 raspberrypi inadyn-mt[11144]: Wed May  8 23:00:56 2019: W:LANG: Cannot open language file.  Will use english defaults, or default override (--lang_file <path/file_name>...)
May 08 23:00:56 raspberrypi inadyn-mt[11144]: Wed May  8 23:00:56 2019: S:INADYN: Could not open default servers_additional.cfg.  Will try svr_add_cfg option, if set...
May 08 23:00:56 raspberrypi systemd[1]: inadyn-mt.service: Service hold-off time over, scheduling restart.
May 08 23:00:56 raspberrypi systemd[1]: Stopped Internet Dynamic DNS Client.
May 08 23:00:56 raspberrypi systemd[1]: Started Internet Dynamic DNS Client.
May 08 23:00:56 raspberrypi inadyn-mt[11156]: Wed May  8 23:00:56 2019: W:LANG: Cannot open language file.  Will use english defaults, or default override (--lang_file <path/file_name>...)
May 08 23:00:56 raspberrypi systemd[1]: inadyn-mt.service: Service hold-off time over, scheduling restart.
May 08 23:00:56 raspberrypi systemd[1]: Stopped Internet Dynamic DNS Client.
May 08 23:00:56 raspberrypi systemd[1]: Started Internet Dynamic DNS Client.
May 08 23:00:56 raspberrypi inadyn-mt[11162]: Wed May  8 23:00:56 2019: W:LANG: Cannot open language file.  Will use english defaults, or default override (--lang_file <path/file_name>...)
May 08 23:00:56 raspberrypi inadyn-mt[11162]: Wed May  8 23:00:56 2019: S:INADYN: Could not open default servers_additional.cfg.  Will try svr_add_cfg option, if set...
May 08 23:00:57 raspberrypi systemd[1]: inadyn-mt.service: Service hold-off time over, scheduling restart.
May 08 23:00:57 raspberrypi systemd[1]: Stopped Internet Dynamic DNS Client.
May 08 23:00:57 raspberrypi systemd[1]: Started Internet Dynamic DNS Client.
May 08 23:00:57 raspberrypi inadyn-mt[11167]: Wed May  8 23:00:57 2019: W:LANG: Cannot open language file.  Will use english defaults, or default override (--lang_file <path/file_name>...)
May 08 23:00:57 raspberrypi systemd[1]: inadyn-mt.service: Service hold-off time over, scheduling restart.
May 08 23:00:57 raspberrypi systemd[1]: Stopped Internet Dynamic DNS Client.
May 08 23:00:57 raspberrypi systemd[1]: Started Internet Dynamic DNS Client.
May 08 23:00:57 raspberrypi inadyn-mt[11172]: Wed May  8 23:00:57 2019: W:LANG: Cannot open language file.  Will use english defaults, or default override (--lang_file <path/file_name>...)
May 08 23:00:57 raspberrypi inadyn-mt[11172]: Wed May  8 23:00:57 2019: S:INADYN: Could not open default servers_additional.cfg.  Will try svr_add_cfg option, if set...
May 08 23:00:57 raspberrypi systemd[1]: inadyn-mt.service: Service hold-off time over, scheduling restart.
May 08 23:00:57 raspberrypi systemd[1]: Stopped Internet Dynamic DNS Client.
May 08 23:00:57 raspberrypi systemd[1]: inadyn-mt.service: Start request repeated too quickly.
May 08 23:00:57 raspberrypi systemd[1]: Failed to start Internet Dynamic DNS Client.
May 08 23:00:57 raspberrypi systemd[1]: inadyn-mt.service: Unit entered failed state.
May 08 23:00:57 raspberrypi systemd[1]: inadyn-mt.service: Failed with result 'start-limit-hit'.

그러나 놀랍게도 inadyn을 수동으로 시작하면 작동합니다.

$ sudo inadyn-mt --input_file /etc/inadyn-mt/inadyn-mt.conf
Wed May  8 23:04:55 2019: S:INADYN: Started 'inadyn-mt version 02.28.10_audible' - dynamic DNS updater.
Wed May  8 23:04:55 2019: E:CACHE_LIST Failed opening cache file in ip_cache_list_read...
Wed May  8 23:04:55 2019: W:WAVE_UTIL: Error loading shared library, libao.so...
Wed May  8 23:04:55 2019: W:WAVE: Error loading shared library, libao...Install libao for audible network status alerts...
Wed May  8 23:04:58 2019: W:INADYN: IP address for alias '<domain>:ip4' needs update to '<ipv4>'...
Wed May  8 23:04:58 2019: W:INADYN: IP address for alias '<domain>:ip6' needs update to '<ipv6>'...
Wed May  8 23:04:59 2019: W:INADYN: Alias '<domain>' to IP '<ipv4>' updated successfully.
Wed May  8 23:04:59 2019: W:INADYN: DYNDNS Server response:
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 08 May 2019 21:04:59 GMT
Content-Type: text/plain; charset=utf-8
Connection: close
Vary: Accept-Encoding
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Expires: Mon, 26 Jul 1997 05:00:00 GMT
X-Cache: EXPIRED

Updated <domain> to <ipv4> in 0.017 seconds

Wed May  8 23:05:01 2019: W:INADYN: Alias '<domain>' to IP '<ipv6>' updated successfully.
Wed May  8 23:05:01 2019: W:INADYN: DYNDNS Server response:
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 08 May 2019 21:05:01 GMT
Content-Type: text/plain; charset=utf-8
Connection: close
Vary: Accept-Encoding
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Expires: Mon, 26 Jul 1997 05:00:00 GMT
X-Cache: MISS

Updated <domain> to <ipv6> in 0.017 seconds

Wed May  8 23:05:01 2019: W:INADYN: IP address for alias '<duck_domain>:auto' needs update to '<ipv4>'...
Wed May  8 23:05:02 2019: W:INADYN: Alias '<duck_domain>' to IP '<ipv4>' updated successfully.
Wed May  8 23:05:02 2019: W:INADYN: DYNDNS Server response:
HTTP/1.1 200 OK
Date: Wed, 08 May 2019 21:05:02 GMT
Connection: close
Set-Cookie: <coockie>; Expires=Wed, 15 May 2019 21:05:02 GMT; Path=/
Server: nginx/1.4.6 (Ubuntu)
X-Clacks-Overhead: GNU Terry Pratchett
X-Frame-Options: DENY

OK

하지만 duckdns 부분을 제거하면:

verbose                 
syslog
ip_server_name          icanhazip.com /

# update interval 10m
update_period_sec       600

# force update after 6h
forced_update_period    21600

# ipv6 priv pref = pub
addr_pref               pub


dyndns_system           [email protected]
username                <user>

alias                   <domain>,<token> ip4
alias                   <domain>,<token> ip6

장치는 다음과 같이 시작됩니다.

May 08 23:09:41 raspberrypi systemd[1]: Started Internet Dynamic DNS Client.
May 08 23:09:41 raspberrypi inadyn-mt[11715]: Wed May  8 23:09:41 2019: W:LANG: Cannot open language file.  Will use english defaults, or default override (--lang_file <path/file_name>...)
May 08 23:09:41 raspberrypi inadyn-mt[11715]: Wed May  8 23:09:41 2019: S:INADYN: Could not open default servers_additional.cfg.  Will try svr_add_cfg option, if set...
May 08 23:09:41 raspberrypi inadyn-mt[11715]: Wed May  8 23:09:41 2019: W:INADYN: Could not open default wave file, extra/wav/alarm.wav.  Using default, ./alarm.wav...
May 08 23:09:41 raspberrypi inadyn-mt[11715]: Wed May  8 23:09:41 2019: S:INADYN: Started 'inadyn-mt version 02.28.10_audible' - dynamic DNS updater.
May 08 23:09:41 raspberrypi inadyn-mt[11715]: Wed May  8 23:09:41 2019: E:CACHE_LIST Failed opening cache file in ip_cache_list_read...
May 08 23:09:41 raspberrypi inadyn-mt[11715]: Wed May  8 23:09:41 2019: W:WAVE_UTIL: Error loading shared library, libao.so...
May 08 23:09:41 raspberrypi inadyn-mt[11715]: Wed May  8 23:09:41 2019: W:WAVE: Error loading shared library, libao...Install libao for audible network status alerts...
May 08 23:09:41 raspberrypi INADYN[11715]: Wed May  8 23:09:41 2019: E:CACHE_LIST Failed opening cache file in ip_cache_list_read...
May 08 23:09:41 raspberrypi INADYN[11715]: Wed May  8 23:09:41 2019: W:WAVE_UTIL: Error loading shared library, libao.so...
May 08 23:09:41 raspberrypi INADYN[11715]: Wed May  8 23:09:41 2019: W:WAVE: Error loading shared library, libao...Install libao for audible network status alerts...
May 08 23:09:43 raspberrypi INADYN[11715]: Wed May  8 23:09:43 2019: W:INADYN: IP address for alias '<domain>:ip4' needs update to '<ipv4>'...
May 08 23:09:43 raspberrypi inadyn-mt[11715]: Wed May  8 23:09:43 2019: W:INADYN: IP address for alias '<domain>:ip4' needs update to '<ipv4>'...
May 08 23:09:43 raspberrypi inadyn-mt[11715]: Wed May  8 23:09:43 2019: W:INADYN: IP address for alias '<domain>:ip6' needs update to '<ipv6>'...
May 08 23:09:43 raspberrypi INADYN[11715]: Wed May  8 23:09:43 2019: W:INADYN: IP address for alias '<domain>:ip6' needs update to '<ipv6>'...
May 08 23:09:44 raspberrypi INADYN[11715]: Wed May  8 23:09:44 2019: W:INADYN: Alias '<domain>' to IP '<ipv4>' updated successfully.
May 08 23:09:44 raspberrypi inadyn-mt[11715]: Wed May  8 23:09:44 2019: W:INADYN: Alias '<domain>' to IP '<ipv4>' updated successfully.
May 08 23:09:44 raspberrypi inadyn-mt[11715]: Wed May  8 23:09:44 2019: W:INADYN: DYNDNS Server response:
May 08 23:09:44 raspberrypi inadyn-mt[11715]: HTTP/1.1 200 OK
May 08 23:09:44 raspberrypi inadyn-mt[11715]: Server: nginx
May 08 23:09:44 raspberrypi inadyn-mt[11715]: Date: Wed, 08 May 2019 21:09:44 GMT
May 08 23:09:44 raspberrypi inadyn-mt[11715]: Content-Type: text/plain; charset=utf-8
May 08 23:09:44 raspberrypi inadyn-mt[11715]: Connection: close
May 08 23:09:44 raspberrypi inadyn-mt[11715]: Vary: Accept-Encoding
May 08 23:09:44 raspberrypi inadyn-mt[11715]: Cache-Control: no-store, no-cache, must-revalidate
May 08 23:09:44 raspberrypi inadyn-mt[11715]: Cache-Control: post-check=0, pre-check=0
May 08 23:09:44 raspberrypi inadyn-mt[11715]: Pragma: no-cache
May 08 23:09:44 raspberrypi inadyn-mt[11715]: Expires: Mon, 26 Jul 1997 05:00:00 GMT
May 08 23:09:44 raspberrypi inadyn-mt[11715]: X-Cache: EXPIRED
May 08 23:09:44 raspberrypi inadyn-mt[11715]: [1B blob data]
May 08 23:09:44 raspberrypi inadyn-mt[11715]: ERROR: Address <ipv4> has not changed.
May 08 23:09:44 raspberrypi INADYN[11715]: [429B blob data]
May 08 23:09:46 raspberrypi INADYN[11715]: Wed May  8 23:09:46 2019: W:INADYN: Alias '<domain>' to IP '<ipv6>' updated successfully.
May 08 23:09:46 raspberrypi inadyn-mt[11715]: Wed May  8 23:09:46 2019: W:INADYN: Alias '<domain>' to IP '<ipv6>' updated successfully.
May 08 23:09:46 raspberrypi inadyn-mt[11715]: Wed May  8 23:09:46 2019: W:INADYN: DYNDNS Server response:
May 08 23:09:46 raspberrypi inadyn-mt[11715]: HTTP/1.1 200 OK
May 08 23:09:46 raspberrypi inadyn-mt[11715]: Server: nginx
May 08 23:09:46 raspberrypi inadyn-mt[11715]: Date: Wed, 08 May 2019 21:09:46 GMT
May 08 23:09:46 raspberrypi inadyn-mt[11715]: Content-Type: text/plain; charset=utf-8
May 08 23:09:46 raspberrypi inadyn-mt[11715]: Connection: close
May 08 23:09:46 raspberrypi inadyn-mt[11715]: Vary: Accept-Encoding
May 08 23:09:46 raspberrypi inadyn-mt[11715]: Cache-Control: no-store, no-cache, must-revalidate
May 08 23:09:46 raspberrypi inadyn-mt[11715]: Cache-Control: post-check=0, pre-check=0
May 08 23:09:46 raspberrypi inadyn-mt[11715]: Pragma: no-cache
May 08 23:09:46 raspberrypi inadyn-mt[11715]: Expires: Mon, 26 Jul 1997 05:00:00 GMT
May 08 23:09:46 raspberrypi inadyn-mt[11715]: X-Cache: EXPIRED
May 08 23:09:46 raspberrypi inadyn-mt[11715]: [1B blob data]
May 08 23:09:46 raspberrypi inadyn-mt[11715]: Updated <domain> to <ipv6> in 0.187 seconds
May 08 23:09:46 raspberrypi INADYN[11715]: [470B blob data]

내 구성에 문제가 있는 것 같습니다.

관련 정보