Reproduction procedure followed for all verification: 1) initial problem: apt install --no-install-recommends -y openvpn
touch /etc/openvpn/lp1868127.conf chmod 0600 /etc/openvpn/lp1868127.conf cat << EOF > /etc/openvpn/lp1868127.conf ... EOF systemctl start openvpn@lp1868127 systemctl reload openvpn@lp1868127 # observe reload failing 2) update: # deploy -proposed update echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-proposed main" >> /etc/apt/sources.list apt update && apt install openvpn 3) confirm fix: systemctl reload openvpn@lp1868127 This last step must print: > Failed to reload [email protected]: Job type reload is not applicable for unit [email protected]. Focal: 1) initial problem: root@focal-openvpn-lp1868127:~# systemctl reload openvpn@lp1868127 Job for [email protected] failed. See "systemctl status [email protected]" and "journalctl -xe" for details. 2) update: root@focal-openvpn-lp1868127:~# apt update && apt install openvpn Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB] Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB] Get:4 http://archive.ubuntu.com/ubuntu focal-proposed InRelease [265 kB] Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [310 kB] Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [116 kB] Get:7 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [28.9 kB] Get:8 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [7,664 B] Get:9 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [142 kB] Get:10 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [71.7 kB] Get:11 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [11.6 kB] Get:12 http://archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en [3,892 B] Get:13 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages [37.3 kB] Get:14 http://archive.ubuntu.com/ubuntu focal-proposed/main Translation-en [17.6 kB] Get:15 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [147 kB] Get:16 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [51.1 kB] Get:17 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [28.9 kB] Get:18 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [7,664 B] Get:19 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [42.8 kB] Get:20 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [22.6 kB] Fetched 1,530 kB in 1s (1,311 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 23 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: resolvconf openvpn-systemd-resolved easy-rsa The following packages will be upgraded: openvpn 1 upgraded, 0 newly installed, 0 to remove and 22 not upgraded. Need to get 477 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 openvpn amd64 2.4.7-1ubuntu2.20.04.1 [477 kB] Fetched 477 kB in 1s (658 kB/s) Preconfiguring packages ... (Reading database ... 14726 files and directories currently installed.) Preparing to unpack .../openvpn_2.4.7-1ubuntu2.20.04.1_amd64.deb ... Unpacking openvpn (2.4.7-1ubuntu2.20.04.1) over (2.4.7-1ubuntu2) ... Setting up openvpn (2.4.7-1ubuntu2.20.04.1) ... * Restarting virtual private network daemon. [ OK ] Processing triggers for systemd (245.4-4ubuntu3.1) ... 3) confirm fix: root@focal-openvpn-lp1868127:~# systemctl reload openvpn@lp1868127 Failed to reload [email protected]: Job type reload is not applicable for unit [email protected]. Eoan: 1) initial problem: root@eoan-openvpn-lp1868127:~# systemctl reload openvpn@lp1868127 Job for [email protected] failed. See "systemctl status [email protected]" and "journalctl -xe" for details. 2) update: root@eoan-openvpn-lp1868127:~# apt update && apt install openvpn Hit:1 http://archive.ubuntu.com/ubuntu eoan InRelease Get:2 http://security.ubuntu.com/ubuntu eoan-security InRelease [97.5 kB] Get:3 http://archive.ubuntu.com/ubuntu eoan-updates InRelease [97.5 kB] Get:4 http://archive.ubuntu.com/ubuntu eoan-proposed InRelease [107 kB] Get:5 http://archive.ubuntu.com/ubuntu eoan-updates/main amd64 Packages [327 kB] Get:6 http://archive.ubuntu.com/ubuntu eoan-updates/universe amd64 Packages [222 kB] Get:7 http://archive.ubuntu.com/ubuntu eoan-updates/universe Translation-en [88.0 kB] Get:8 http://archive.ubuntu.com/ubuntu eoan-proposed/main amd64 Packages [34.0 kB] Get:9 http://archive.ubuntu.com/ubuntu eoan-proposed/main Translation-en [14.2 kB] Fetched 987 kB in 1s (767 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 3 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: resolvconf openvpn-systemd-resolved easy-rsa The following packages will be upgraded: openvpn 1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. Need to get 477 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu eoan-proposed/main amd64 openvpn amd64 2.4.7-1ubuntu2.19.10.1 [477 kB] Fetched 477 kB in 1s (641 kB/s) Preconfiguring packages ... (Reading database ... 14225 files and directories currently installed.) Preparing to unpack .../openvpn_2.4.7-1ubuntu2.19.10.1_amd64.deb ... Unpacking openvpn (2.4.7-1ubuntu2.19.10.1) over (2.4.7-1ubuntu2) ... Setting up openvpn (2.4.7-1ubuntu2.19.10.1) ... * Restarting virtual private network daemon. [ OK ] Processing triggers for systemd (242-7ubuntu3.11) ... 3) confirm fix: root@eoan-openvpn-lp1868127:~# systemctl reload openvpn@lp1868127 Failed to reload [email protected]: Job type reload is not applicable for unit [email protected]. Bionic: 1) initial problem: # on Bionic, the LimitNPROC is too low: mkdir /etc/systemd/system/[email protected]/ cat << EOF > /etc/systemd/system/[email protected]/override.conf [Service] LimitNPROC=100 EOF systemctl daemon-reload systemctl restart openvpn@lp1868127 root@bionic-openvpn-lp1868127:~# systemctl reload openvpn@lp1868127 Job for [email protected] failed because the control process exited with error code. See "systemctl status [email protected]" and "journalctl -xe" for details. 2) update: root@bionic-openvpn-lp1868127:~# apt update && apt install openvpn Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:4 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB] Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1,023 kB] Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [344 kB] Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [82.8 kB] Get:8 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [798 kB] Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [18.3 kB] Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,094 kB] Get:11 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages [91.5 kB] Get:12 http://archive.ubuntu.com/ubuntu bionic-proposed/main Translation-en [34.3 kB] Get:13 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [250 kB] Get:14 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [73.9 kB] Get:15 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [16.2 kB] Get:16 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [680 kB] Fetched 4,925 kB in 2s (2,301 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 6 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: easy-rsa resolvconf The following packages will be upgraded: openvpn 1 upgraded, 0 newly installed, 0 to remove and 5 not upgraded. Need to get 470 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 openvpn amd64 2.4.4-2ubuntu1.4 [470 kB] Fetched 470 kB in 0s (1,429 kB/s) Preconfiguring packages ... (Reading database ... 14065 files and directories currently installed.) Preparing to unpack .../openvpn_2.4.4-2ubuntu1.4_amd64.deb ... Unpacking openvpn (2.4.4-2ubuntu1.4) over (2.4.4-2ubuntu1.3) ... Setting up openvpn (2.4.4-2ubuntu1.4) ... * Restarting virtual private network daemon. [ OK ] Processing triggers for systemd (237-3ubuntu10.41) ... 3) confirm fix: root@bionic-openvpn-lp1868127:~# systemctl reload openvpn@lp1868127 Failed to reload [email protected]: Job type reload is not applicable for unit [email protected]. See system logs and 'systemctl status [email protected]' for details. ** Tags removed: verification-needed verification-needed-bionic verification-needed-eoan verification-needed-focal ** Tags added: verification-done verification-done-bionic verification-done-eoan verification-done-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868127 Title: [SRU] OpenVPN will not reload due to misconfigured .service file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1868127/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
