I have 49 servers using this statement in the config file and they are all happy with it.
### Logging
# OpenVPN log goes to C:\Program Files\OpenVPN\log\* whatever this ovpn file is named
# 0 is silent, except for fatal errors
# 3 default?
# 4 is reasonable for general usage
# 5 and 6 can help to debug connection problems
# 9 is extremely verbose
verb 3
# read this to see what clients are connected
status "C:\\Program Files\\OpenVPN\\log\\openvpn-status.log"
On this server #50 on first launch when the log files don't exist everything works fine. The status log will be created and filled with data. But If I restart the service it will hang with this error in the system log file;
Options error: --status fails with 'C:\Program Files\OpenVPN\log\openvpn-status.log'
Options error: Please correct these errors.
Use --help for more information.
If I then delete the openvpn-status.log file and restart it again we are good, until the next restart.
OpenVPN-2.5.4-I603-amd64
Server 2019 v1809
As this was the first server I tried that version on I tried downgrading to OpenVPN-2.5.3-I601-amd64.msi but it is doing the same thing.
File permissions on the status log look the same to me across servers, both system and administrators have full control of that log file. Everything else is read only. The service is running under the default local system.
Any ideas on why this is different on this one server?
I need this status file, I have some zabbix alerts based off of it.