Opened 21 months ago

Last modified 6 months ago

#1127 new Bug / Defect

openvpn-status.log is empty

Reported by: abotterell Owned by: jamesyonan
Priority: major Milestone:
Component: Management Version:
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:


I've been using Openvpn 2.4.4 on an Ubuntu instance on AWS for about a year... currently 18.04.. Recently (a month or two back, I think) I started noticing that the openvpn-status.log file was empty, size 0. Aside from the incongruity this is obviously inconvenient from a network management point of view.

The VPN seems to work normally except for the empty -status.log. Anyone have any thoughts about what might be causing this?


port 1194
proto udp
dev tun
ca ca.crt
cert warn.crt
key warn.key
dh dh2048.pem
tls-auth ta.key 0
key-direction 0
cipher AES-256-CBC
ifconfig-pool-persist ipp.txt
auth SHA256
user nobody
group nogroup
status /etc/openvpn/openvpn-status.log
log-append /var/log/openvpn.log

Change History (2)

comment:1 Changed 8 months ago by tincantech

--status file [n]

Write operational status to file every n seconds.

n=0 probably means never write to status file ..

comment:2 Changed 6 months ago by tincantech

Infact, [n] defaults to 60 seconds, so my comment above was incorrect.

However, using

user nobody
group nogroup 


status /etc/openvpn/openvpn-status.log 

is probably not going to work because the openvpn process will probably lose it's privilege to write the file.

Maybe a warning in the log file about failing to write status file is appropriate ?

Note: See TracTickets for help on using tickets.