Package: openvpn
Version: 2.3.4-5
Severity: important

Dear Maintainer,

I'm trying to start openvpn on a new install (with known good config
files) and the program is never started -- I'm not getting any log
entries from Openvpn so I asume systemd is never starting it.

My openvpn config-file is named "server.conf in /etc/openvpn.

The following actions were executed in order:

root@tux14:/etc/openvpn# systemctl start openvpn.service 
root@tux14:/etc/openvpn# ps auxwww | grep openvpn
root     11768  0.0  0.5  15156  2112 pts/0    S+   18:04   0:00 grep openvpn
root@tux14:/etc/openvpn# systemctl status openvpn.service 
● openvpn.service - OpenVPN service
   Loaded: loaded (/lib/systemd/system/openvpn.service; enabled)
   Active: active (exited) since Sun 2015-07-19 18:04:43 CEST; 20s ago
  Process: 11765 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 11765 (code=exited, status=0/SUCCESS)
root@tux14:/etc/openvpn# systemctl stop openvpn.service 
root@tux14:/etc/openvpn# systemctl status openvpn.service 
● openvpn.service - OpenVPN service
   Loaded: loaded (/lib/systemd/system/openvpn.service; enabled)
   Active: inactive (dead) since Sun 2015-07-19 18:05:12 CEST; 5s ago
  Process: 11765 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 11765 (code=exited, status=0/SUCCESS)

I'd expect that systemd starts openvpn or issues an error message.
Looks like the service was never started, no logs from openvpn in syslog.

The config-file is named "server.conf" in /etc/openvpn.

Same when I start via /etc/init.d script:
root@tux14:~# /etc/init.d/openvpn start
[ ok ] Starting openvpn (via systemctl): openvpn.service.
root@tux14:~# ps auxwww | grep openvpn
root     11893  0.0  0.5  15156  2044 pts/1    S+   18:18   0:00 grep openvpn
root@tux14:~# systemctl status openvpn.service
● openvpn.service - OpenVPN service
   Loaded: loaded (/lib/systemd/system/openvpn.service; enabled)
   Active: active (exited) since Sun 2015-07-19 18:17:56 CEST; 1min 17s ago
  Process: 11873 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 11873 (code=exited, status=0/SUCCESS)


And the old method of starting a *specific* OpenVPN instance via the
config-file name also doesn't work:

root@tux14:~# /etc/init.d/openvpn start server
[ ok ] Starting openvpn (via systemctl): openvpn.service.
root@tux14:~# systemctl status openvpn.service
● openvpn.service - OpenVPN service
   Loaded: loaded (/lib/systemd/system/openvpn.service; enabled)
   Active: active (exited) since Sun 2015-07-19 18:17:56 CEST; 2min 18s ago
  Process: 11873 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 11873 (code=exited, status=0/SUCCESS)
root@tux14:~# ps auxwww | grep openvpn
root     11924  0.0  0.5  15156  2048 pts/1    S+   18:20   0:00 grep openvpn


Finally: Skipping systemd and starting directly via the old method works fine:

root@tux14:~# _SYSTEMCTL_SKIP_REDIRECT=1 /etc/init.d/openvpn start
[ ok ] Starting virtual private network daemon: server.
root@tux14:~# ps auxwww | grep openvpn
nobody   11977  0.0  0.6  30660  2364 ?        Ss   18:22   0:00 
/usr/sbin/openvpn --writepid /run/openvpn/server.pid --daemon ovpn-server --cd 
/etc/openvpn --config /etc/openvpn/server.conf
root     11996  0.0  0.5  15156  2164 pts/1    S+   18:22   0:00 grep openvpn

systemd still displays the old status:
root@tux14:~# systemctl status openvpn.service
● openvpn.service - OpenVPN service
   Loaded: loaded (/lib/systemd/system/openvpn.service; enabled)
   Active: active (exited) since Sun 2015-07-19 18:17:56 CEST; 6min ago
  Process: 11873 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 11873 (code=exited, status=0/SUCCESS)

And systemd obviously doesn't know anything about openvpn:

root@tux14:~# systemctl stop openvpn
root@tux14:~# ps auxwww | grep openvpn
nobody   11977  0.0  0.6  30660  2364 ?        Ss   18:22   0:00 
/usr/sbin/openvpn --writepid /run/openvpn/server.pid --daemon ovpn-server --cd 
/etc/openvpn --config /etc/openvpn/server.conf
root     12002  0.0  0.5  15156  2144 pts/1    S+   18:25   0:00 grep openvpn



-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages openvpn depends on:
ii  debconf [debconf-2.0]  1.5.56
ii  init-system-helpers    1.22
ii  initscripts            2.88dsf-59
ii  iproute2               3.16.0-2
ii  libc6                  2.19-18
ii  liblzo2-2              2.08-1.2
ii  libpam0g               1.1.8-3.1
ii  libpkcs11-helper1      1.11-2
ii  libssl1.0.0            1.0.1k-3+deb8u1

Versions of packages openvpn recommends:
ii  easy-rsa  2.2.2-1

Versions of packages openvpn suggests:
ii  openssl     1.0.1k-3+deb8u1
pn  resolvconf  <none>

-- Configuration Files:
/etc/default/openvpn changed:
AUTOSTART="server"
OPTARGS=""
OMIT_SENDSIGS=0


-- debconf information:
  openvpn/create_tun: false


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to