Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218974 - net-misc/vpnc-0.5.1-r1: Process dies suddently after fully working for about 5 min
Summary: net-misc/vpnc-0.5.1-r1: Process dies suddently after fully working for about ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Christian Faulhammer (RETIRED)
URL: http://lists.unix-ag.uni-kl.de/piperm...
Whiteboard:
Keywords:
: 220795 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-23 01:12 UTC by christophe
Modified: 2009-05-04 16:32 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output of: vpnc --debug 3 (vpnc_debug_3.log,89.39 KB, text/plain)
2008-04-25 05:12 UTC, christophe
Details
output of: vpnc --debug 2 --no-detach (vpnc_debug_2.log2,2.63 KB, text/plain)
2008-05-09 04:04 UTC, christophe
Details
output of: vpnc --debug 2 --no-detach (vpnc-0.5.2_pre20080509) (vpnc_debug_2.log3,3.13 KB, text/plain)
2008-05-11 08:50 UTC, christophe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description christophe 2008-04-23 01:12:14 UTC
everything seems to work for about 5 min and then vpnc dies suddently, no more tun0 and PID.
/var/log/messages tells me this:

vpnc[27670]: connection terminated by dead peer detection

If that's any help, my company's firewall is a cisco PIX 501.
my config file /etc/vpnc.conf is default (besides pwd/usr, etc..)

Reproducible: Always




Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r9 i686)
=================================================================
System uname: 2.6.23-gentoo-r9 i686 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
Timestamp of tree: Sun, 20 Apr 2008 10:34:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="X aac acl alsa avahi berkdb cairo cdr cli cracklib crypt cups dbus dri dvd dvdr firefox fortran gdbm gif gnome gpm gtk hal iconv ipv6 isdnlog jpeg kerberos ldap lm_sensors midi mp3 mpeg mudflap ncurses nls nptl nptlonly opengl openmp pam pcre pdf perl png pppd python readline reflection samba server session spl srt ssl tcpd tiff unicode vim-syntax win32codecs wma x264 x86 xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2008-04-24 13:50:23 UTC
Do you start by the init script or by hand?  If the latter enable a higher debug level and attach the output or contact the original authors with it.
Comment 2 christophe 2008-04-25 05:12:15 UTC
Created attachment 150904 [details]
output of: vpnc --debug 3
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2008-04-25 09:20:44 UTC
I cannot find the output for the termination, so I am not quite sure your log is complete.
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2008-05-08 13:41:50 UTC
Do you want to test a SVN snapshot if the problem still exists?
Comment 5 christophe 2008-05-09 04:03:20 UTC
(In reply to comment #4)
> Do you want to test a SVN snapshot if the problem still exists?
> 

Sorry about my silence, I was busy.
I attached the full output: vpnc_debug_2.log2
It seems to be the same problem as bug #220795.

I used to run an older vpnc version successfully in the past (same cisco PIX 501) but i forgot which version.

We can try svn snapshots.

C.
Comment 6 christophe 2008-05-09 04:04:15 UTC
Created attachment 152569 [details]
output of: vpnc --debug 2 --no-detach
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2008-05-09 17:49:10 UTC
*** Bug 220795 has been marked as a duplicate of this bug. ***
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2008-05-09 17:50:00 UTC
Ok, I added a snapshot (currently in testing so edit package.keywords file) to Portage.  Please test it and report back.
Comment 9 christophe 2008-05-10 04:00:38 UTC
I have a noob question:
I have this in package.keywords: net-misc/vpnc ~x86
and after an emerge --sync I get this:

 # emerge -vp =net-misc/vpnc-0.5.2_pre20080509

These are the packages that would be merged, in order:

Calculating dependencies /!!! A file is not listed in the Manifest: '/usr/portage/net-misc/vpnc/vpnc-0.5.2_pre20080509.ebuild'

!!! All ebuilds that could satisfy "=net-misc/vpnc-0.5.2_pre20080509" have been masked.
!!! One of the following masked packages is required to complete your request:
- net-misc/vpnc-0.5.2_pre20080509 (masked by: corruption)

I there something I'm doing wrong ?
Comment 10 Christian Faulhammer (RETIRED) gentoo-dev 2008-05-10 07:46:28 UTC
(In reply to comment #9)
> I have a noob question:
> I have this in package.keywords: net-misc/vpnc ~x86
> and after an emerge --sync I get this:
> I there something I'm doing wrong ?

 No.  My fault.  I regenerated the Manifest now, so in about an hour you can go an resync.
Comment 11 christophe 2008-05-11 08:48:09 UTC
(In reply to comment #8)
> Ok, I added a snapshot (currently in testing so edit package.keywords file) to
> Portage.  Please test it and report back.

...Bad news...
I installed the svn snapshot:
# emerge -vp vpnc
[ebuild   R   ] net-misc/vpnc-0.5.2_pre20080509  USE="-bindist -hybrid-auth -resolvconf" 0 kB

Still the exact same issue,
see new attachement (vpnc_debug_2.log3) for debug output.
Comment 12 christophe 2008-05-11 08:50:39 UTC
Created attachment 152825 [details]
output of: vpnc --debug 2 --no-detach  (vpnc-0.5.2_pre20080509)
Comment 13 Albert Zeyer 2008-05-13 15:15:30 UTC
I just checked vpnc 0.4.0 and I have similar problems there.
Comment 14 Christian Faulhammer (RETIRED) gentoo-dev 2008-05-14 15:24:23 UTC
(In reply to comment #13)
> I just checked vpnc 0.4.0 and I have similar problems there.

 Sorry guys, but I don't understand the code enough to investigate your issues.
Comment 15 christophe 2008-05-17 02:01:43 UTC
Well, it seems adding the following line to the vpnc.conf 
for the svn snapshot does the trick:

DPD idle timeout (our side) 0

Comment 16 Christian Faulhammer (RETIRED) gentoo-dev 2008-05-18 07:51:31 UTC
(In reply to comment #15)
> Well, it seems adding the following line to the vpnc.conf 
> for the svn snapshot does the trick:
> 
> DPD idle timeout (our side) 0

 Can the rest confirm this solution?

Comment 17 Albert Zeyer 2008-05-18 10:32:07 UTC
It seems only that this disables the dead peer detection completly. That has the effect, that the connection is dead but vpnc does not recognise this anymore.

Without the option, at least after a minute or so (perhaps a minute is the default value for this setting?) vpnc detects it and quits.

For me, always when vpnc detects a dead peer, then the connection was already broken.

Restart of vpnc helps as usual then.
Comment 18 Albert Zeyer 2008-05-18 11:52:17 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > Well, it seems adding the following line to the vpnc.conf 
> > for the svn snapshot does the trick:
> > 
> > DPD idle timeout (our side) 0
> 
>  Can the rest confirm this solution?
> 

This would explain why an older version of vpnc worked well for christophe, because the dead peer detection was added recently in 0.5.0.
Comment 19 Albert Zeyer 2008-05-18 11:56:16 UTC
I just took a look into /var/log/messages and I see this:

acbook ~ # tail -n 100 /var/log/messages
May 18 13:50:51 macbook vpnc[30839]: sendto: Message too long
May 18 13:50:51 macbook vpnc[30839]: sendto: Message too long
May 18 13:50:52 macbook vpnc[30839]: sendto: Message too long
May 18 13:50:52 macbook vpnc[30839]: sendto: Message too long
May 18 13:50:52 macbook vpnc[30839]: sendto: Message too long
May 18 13:50:52 macbook vpnc[30839]: sendto: Message too long
May 18 13:50:53 macbook vpnc[30839]: sendto: Message too long
...

macbook ~ # cat /var/log/messages  | grep "Message too long" | wc -l
39745

(Really incredible! Sometimes this message was pushed 8 times per second. It always happens when the connection is died (or perhaps that is the reason why the connection is dieing?).)

Funny that I don't have seen this before (or don't recognised). I am running vpnc with --no-detach, therefore I thought I get all messages in the terminal but don't seem so.
Comment 20 Albert Zeyer 2008-05-18 17:15:16 UTC
Sometimes, the connection breaks also without the message 'Message too long'. Whereby this is very seldom.
Comment 21 Christian Faulhammer (RETIRED) gentoo-dev 2008-06-11 06:07:32 UTC
Ok boys, I prepared a new vpnc snapshot which hopefully fixes this as Joerg Mayer committed some patches to the trunk.  Please test again.  I'd like some feedback so I can tell Joerg about it.
Comment 22 Christian Faulhammer (RETIRED) gentoo-dev 2008-06-20 12:08:45 UTC
(In reply to comment #21)
> Ok boys, I prepared a new vpnc snapshot which hopefully fixes this as Joerg
> Mayer committed some patches to the trunk.  Please test again.  I'd like some
> feedback so I can tell Joerg about it.

 Hello guys, you still around to test it?
Comment 23 Albert Zeyer 2008-06-20 13:26:39 UTC
When you made the last snapshot, I was already using the SVN from the same time.

I am also reading the mailinglist and it seems they are working more hard on it the last time. I have also looked into most of the code changes but none (of them I have looked at) is related to our problem.

At least there is an interesting TODO of reconnecting and reusing the interface and also some other interesting TODOs.

Atm, I do not depend on vpnc+wifi anymore as I finally have wired Internet here (thanks god...). Therefore I am not anymore an everyday user of vpnc.

I think most of the problems were also related of the unstable wifi connection (a lot of packages gets lost always).

But I will report back when there are any new information.
Comment 24 Christian Faulhammer (RETIRED) gentoo-dev 2008-06-21 08:47:08 UTC
(In reply to comment #23)
> But I will report back when there are any new information.

 I also do read upstream's mailing list and I was sure I read a commit that was relevant to your problems...anyway I cannot find it anymore.
Comment 25 Christian Faulhammer (RETIRED) gentoo-dev 2008-06-24 18:09:34 UTC
In the URL field I referenced a post to the vpnc mailing list.  Please try the patch there.
Comment 26 Christian Faulhammer (RETIRED) gentoo-dev 2008-06-25 07:37:02 UTC
_p332 contains a possible fix.  Upstream writes:

"This patch has not been tested by anyone who experienced/reported
the problem so far - it just looks like a possible fix."

So please try and report back.
Comment 27 Mike Nerone 2008-07-01 15:46:12 UTC
I not positive this is related, but my vpnc wasn't functioning and was producing the same "Message too long" error. The thing that was slightly different is that it was preventing me from being able to connect at all.

A post I found on the Ubuntu forums led to my solution: I had exactly the same MTU problem described at http://ubuntuforums.org/showthread.php?t=432699 . Even though my symptoms were slightly different, it seems reasonable to hypothesize that the "Message too long" error in this bug might *also* be related to MTU problems.
Comment 28 Christian Faulhammer (RETIRED) gentoo-dev 2008-11-30 09:57:45 UTC
vpnc 0.5.3 is in the tree now...I would like you to test it again if your failures still happen.  Thanks in advance.  Please also think about comment #27 as a possible solution.
Comment 29 Christian Faulhammer (RETIRED) gentoo-dev 2008-12-31 11:28:52 UTC
I assume this as fixed.
Comment 30 Kvicadlo 2009-05-04 16:32:40 UTC
i had a similar problem running vpnc-0.5.3
my connection was being terminated every +-20 seconds.

i worked around it by disabling dead peer detection via --dpd-idle 0.