Hi all,
I have this issue for a certain time so it’s time to handle it.
The config:
A Raspberry Pi 2 w/ osmc installed.
Openvpn activated.
Sickrage running with transmission and sabnzbd.
The symptom:
After a certain amount of time (maybe days) network connection are failing.
If I reboot it’s fine again.
I have the impression that it’s due to a folder or file being filles up to much but purge on reboot
The log:
https://paste.osmc.tv/tahoquhuku
Any idea?
Hi,
I suspect this may be down to the openvpn setup, please post the contents of:
openvpn.service
openvpn@vpn.service
Thanks Tom.
Ok. Sorry I don’t know where to find those
How did you install OpenVPN on your system?
Hi,
Sorry just to clarify have you setup openvpn using and addon or have you installed it via apt-get?
If its the latter:
You will need to access to the command line:
Then please post the output of these 2 commands:
cat /lib/systemd/system/openvpn.service
and
cat /lib/systemd/system/openvpn@.service
Thanks Tom.
In general I use apt-get
Here are the files:
[Unit]
Description=OpenVPN service
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/true
ExecReload=/bin/true
WorkingDirectory=/etc/openvpn
[Install]
WantedBy=multi-user.target
–
[Unit]
Description=OpenVPN connection to %i
PartOf=openvpn.service
ReloadPropagatedFrom=openvpn.service
[Service]
Type=forking
ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --config /etc/openvpn/%i.conf
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/etc/openvpn
[Install]
WantedBy=multi-user.target
Hi,
try adding adding:
Restart=always
RestartSec=5
to the service section of openvpn@.service
Thanks Tom.