Hi
TD;LR
These messages are appearing in my /var/log/openvpn.log and openvpn is not writing anymore entries.
[olog]Tue Nov 26 09:55:30 2019 us=884904 event_wait : Interrupted system call (code=4)
Tue Nov 26 09:55:30 2019 us=885288 TCP/UDP: Closing socket
Tue Nov 26 09:55:30 2019 us=885329 /sbin/ip route del 10.8.0.0/24
RTNETLINK answers: Operation not permitted
Tue Nov 26 09:55:30 2019 us=886273 ERROR: Linux route delete command failed: external program exited with error status: 2
Tue Nov 26 09:55:30 2019 us=886300 Closing TUN/TAP interface
Tue Nov 26 09:55:30 2019 us=886317 /sbin/ip addr del dev tun0 local 10.8.0.1 peer 10.8.0.2
RTNETLINK answers: Operation not permitted
Tue Nov 26 09:55:30 2019 us=887177 Linux ip addr del failed: external program exited with error status: 2
Tue Nov 26 09:55:30 2019 us=894284 SIGHUP[hard,] received, process restarting
Options error: --key fails with 'server.key': Permission denied
Options error: --tls-auth fails with 'ta.key': Permission denied
Options error: --writepid fails with '/run/openvpn/server.pid': Permission denied
Options error: --status fails with 'openvpn-status.log': Permission denied
Options error: Please correct these errors.
Use --help for more information.[/olog]
END TD:LR
I noticed that my /var/log/openvpn.log was a whopping 20gbs after some neglect. I downloaded a copy of the logs and then proceeded to clear it using cat /dev/null on the file. Did some server updates and performed a server restart and now the log file is not updating. Any ideas?
There is no issue with the service everyone can connect without an issue. I would just like the logs to be written too again. I haven't touched the any of the config files.
I have tried restarting the openvpn service using these commands:
sudo systemctl stop openvpn@server
sudo systemctl enable
openvpn@server.service
sudo systemctl start openvpn@server
Matt