On 2015/02/23 15:55, Alexander Haensch wrote:
> >Synopsis: OpenVPN process crashes from time to time
> >Category: OpenVPN
> >Environment:
>       System      : OpenBSD 5.7
>       Details     : OpenBSD 5.7-beta (GENERIC.MP) #828: Thu Jan 29 14:28:19 
> MST 2015
>                        
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
>       Architecture: OpenBSD.amd64
>       Machine     : amd64
> >Description:
>       The OpenVPN Server process configured with a tap device is crashing 
> during Handshake after some days of operation.
>       The exact reason is not yet clear to me, but i can maybe gather some 
> log files as this happens pretty much every 10 days.
>       I think that something is accumulating and finally ending the process.
>       
> >How-To-Repeat:
>       Let the server run and wait until the process crashes.
> >Fix:
>       I use monit to automatically start OpenVPN again. I think this is a bad 
> idea.

Log entries from around the time of the crash (both from openvpn and
OS messages from /var/log/messages) would be helpful.

Is there a core dump anywhere? If not, you might be able to get one in
/var/crash by setting sysctl kern.nosuidcoredump=2, but it would be
helpful to run a build of openvpn from ports done with 'make clean=all;
make DEBUG="-O0 -g" repackage && sudo make reinstall' as this will
increase the amount of information available if there is a coredump.
(If you can get one, use gdb to obtain a backtrace and send that,
rather than sending the file itself).

> dmesg:
> OpenBSD 5.7-beta (GENERIC.MP) #828: Thu Jan 29 14:28:19 MST 2015
>     dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

(real/avail mem lines snipped to protect the innocent ;)

Reply via email to