Page MenuHomeVyOS Platform

ddclient: FileNotFoundError in op-mode
Closed, ResolvedPublicBUG

Description

Reported via Slack

image.png (146×1 px, 7 KB)

Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/dynamic_dns.py", line 102, in <module>
    show_status()
  File "/usr/libexec/vyos/op_mode/dynamic_dns.py", line 43, in show_status
    with open(cache_file, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/run/ddclient/ddclient.cache'

To reproduce use:

vyos@vyos# set service dns dynamic interface eth1 use-web url http://foo.bar
vyos@vyos# commit
vyos@vyos:~$ show dns dynamic status
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/dynamic_dns.py", line 102, in <module>
    show_status()
  File "/usr/libexec/vyos/op_mode/dynamic_dns.py", line 43, in show_status
    with open(cache_file, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/run/ddclient/ddclient.cache'

Details

Difficulty level
Easy (less than an hour)
Version
1.4-rolling-202103230217
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

c-po changed the task status from Open to In progress.
c-po claimed this task.
c-po renamed this task from ddclinet: FileNotFoundError in op-mode to ddclient: FileNotFoundError in op-mode.May 17 2021, 7:20 PM
c-po triaged this task as Low priority.
c-po moved this task from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.8) board.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.
c-po moved this task from Open to Finished on the VyOS 1.4 Sagitta board.