Subject: kvpnc hangs on select(), openvpn hangs on read()
Package: kvpnc
Version: 0.8.8-1
Severity: normal

*** Please type your report below this line ***
Attempting to get kvpnc to work with openvpn-2.0.9 on debian sid.

kvpn importated my ovpn .conf fairly well, I'll report the issue in another
post.

Trying kvpnc, I get all I get is the following:

debug: [openvpn] Fri Mar 16 16:59:04 2007 us=368357 MANAGEMENT: TCP Socket 
listening on 127.0.0.1:2222
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port 
(2222)...
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port 
(2222)... host found
debug: OpenvpnManagementHandler: Connected to the OpenVPN manage port (2222).

Using the same .conf the cli, things work fine:

# openvpn --config testing.conf
Enter Private Key Password:
<snip>
Fri Mar 16 17:06:30 2007 us=688488 Initialization Sequence Completed

When using kvpnc, a strace -p on the openvpn process shows it's waiting in a
read().

# strace -p 16199
Process 16199 attached - interrupt to quit
read(0,                                                                     

While kvpnc is doing a select:

# strace  -p 16163
Process 16163 attached - interrupt to quit
select(21, [3 4 5 7 9 11 13 14 15 16 20], [], [], {6, 888000}) = 1 (in [3], 
left
{5, 724000})
gettimeofday({1174082904, 719669}, NULL) = 0
ioctl(3, FIONREAD, [64])                = 0
read(3, "\34\0\262\3465\1\0\0B\1\0\0\215b\313\\\0\1\0\0\0\0\0\0"..., 64) = 64
ioctl(3, FIONREAD, [0])                 = 0
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1174082904, 720950}, NULL) = 0
select(21, [3 4 5 7 9 11 13 14 15 16 20], [], [], {5, 716807}) = 0 (Timeout)
gettimeofday({1174082910, 442622}, NULL) = 0
gettimeofday({1174082910, 442779}, NULL) = 0
gettimeofday({1174082910, 442828}, NULL) = 0
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1174082910, 442943}, NULL) = 0
select(21, [3 4 5 7 9 11 13 14 15 16 20], [], [], {9, 999836}) = 0 (Timeout)
gettimeofday({1174082920, 442319}, NULL) = 0
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1174082920, 442446}, NULL) = 0
select(21, [3 4 5 7 9 11 13 14 15 16 20], [], [], {0, 333}) = 0 (Timeout)
gettimeofday({1174082920, 446479}, NULL) = 0
gettimeofday({1174082920, 446815}, NULL) = 0
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1174082920, 447302}, NULL) = 0
select(21, [3 4 5 7 9 11 13 14 15 16 20], [], [], {9, 995477}) = 1 (in [3], 
left
{9, 460000})
gettimeofday({1174082920, 984088}, NULL) = 0
ioctl(3, FIONREAD, [64])                = 0
read(3, "\34\0\262\3465\1\0\0B\1\0\0\25\242\313\\\0\1\0\0\0\0\0"..., 64) = 64
ioctl(3, FIONREAD, [0])                 = 0
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1174082920, 985325}, NULL) = 0

Nothing in syslog.

On the vpn server, I do not see any connection attempt. My only guess is some
sort of issue on the management interface (127.0.0.1 2222)


# netstat -nlap | grep 2222
tcp        0      0 127.0.0.1:2222          0.0.0.0:*      LISTEN 16297/openvpn
tcp        0      0 127.0.0.1:47469         127.0.0.1:2222 
ESTABLISHED16163/kvpnc
tcp        0      0 127.0.0.1:2222          127.0.0.1:47469 ESTABLISHED-

Anything else I can do to troubleshoot this issue?


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), 
(1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-amd64-k8-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages kvpnc depends on:
ii  kdebase-bin            4:3.5.5a.dfsg.1-6 core binaries for the KDE base 
mod
ii  kdelibs4c2a            4:3.5.5a.dfsg.1-6 core libraries and binaries for 
al
ii  libc6                  2.3.6.ds1-13      GNU C Library: Shared libraries
ii  libgcc1                1:4.1.1-21        GCC support library
ii  libgcrypt11            1.2.3-2           LGPL Crypto library - runtime 
libr
ii  libice6                1:1.0.1-2         X11 Inter-Client Exchange library
ii  libpng12-0             1.2.15~beta5-1    PNG library - runtime
ii  libqt3-mt              3:3.3.7-3         Qt GUI Library (Threaded runtime 
v
ii  libsm6                 1:1.0.1-3         X11 Session Management library
ii  libstdc++6             4.1.1-21          The GNU Standard C++ Library v3
ii  libx11-6               2:1.0.3-6         X11 client-side library
ii  libxext6               1:1.0.1-2         X11 miscellaneous extension 
librar
ii  menu                   2.1.33            generates programs menu for all 
me
ii  module-init-tools      3.3-pre4-2        tools for managing Linux kernel 
mo
ii  modutils               2.4.27.0-6        Linux module utilities
ii  net-tools              1.60-17           The NET-3 networking toolkit
ii  psmisc                 22.3-1            Utilities that use the proc 
filesy
ii  zlib1g                 1:1.2.3-13        compression library - runtime

kvpnc recommends no packages.

-- no debconf information

-- 
Bob Tanner <[EMAIL PROTECTED]>          | Phone : (952)943-8700
http://www.real-time.com, Minnesota, Linux | Fax   : (952)943-8500
Key fingerprint = AB15 0BDF BCDE 4369 5B42  1973 7CF1 A709 2CC1 B288

Attachment: pgpP7hxb5e2i7.pgp
Description: PGP signature

_______________________________________________
Kvpnc-user mailing list
[email protected]
https://mail.gna.org/listinfo/kvpnc-user

Reply via email to