Page MenuHomeVyOS Platform

openvpn directory is not auto-created
Closed, ResolvedPublicBUG

Description

i tried today to upgrade from 1.3-rolling-202010241529 to 1.3-rolling-202011030217... After the reload i found out that the openVPN configuration was missing. when i tried to reconfigure it i got the message below:
Traceback (most recent call last):

File "/usr/libexec/vyos/conf_mode/interfaces-openvpn.py", line 532, in <module>
  generate(c)
File "/usr/libexec/vyos/conf_mode/interfaces-openvpn.py", line 481, in generate
  trim_blocks=True, user=user, group=group)
File "/usr/lib/python3/dist-packages/vyos/template.py", line 109, in render
  makedir(folder, user, group)
File "/usr/lib/python3/dist-packages/vyos/util.py", line 290, in makedir
  os.mkdir(path)

FileNotFoundError: [Errno 2] No such file or directory: '/run/openvpn/ccd/vtun0'

adm@edge01:~$ ls -la /run/openvpn/
total 0
drwxr-xr-x 2 root root 40 Nov 3 23:00 .
drwxr-xr-x 34 root root 1040 Nov 3 23:06 ..
adm@edge01:~$ ls -la /run/openvpn/ccd
ls: cannot access '/run/openvpn/ccd': No such file or directory

Details

Difficulty level
Easy (less than an hour)
Version
1.3-rolling-202011030217
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

tuxnet created this task.
c-po changed the task status from Open to Needs testing.Nov 4 2020, 6:44 PM
c-po triaged this task as High priority.
c-po changed Difficulty level from Normal (likely a few hours) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.

Please try again with the next rolling release.

Thanks for reporting.

now it works.
there seems to be another problem, the communication only works point to point, no routed traffic arrives on the opposite side.

Can you please check if this used to work in older VyOS versions, e.g. https://downloads.vyos.io/rolling/current/amd64/vyos-1.3-rolling-202010151549-amd64.iso or share your config and a network diagram.

Until version 1.3-rolling-202010280217 it still worked.
I have not changed the configuration...

Perfect! Then please share your full OpenVPN config so the issue can be recreated and fixed properly.

This comment was removed by tuxnet.

See T3051 "OpenVPN: multiple client routes do not work in server mode" for follow up

erkin set Issue type to Bug (incorrect behavior).Aug 29 2021, 12:20 PM
erkin removed a subscriber: Active contributors.