[Vega Android Development] scanno:
Problems connecting to OpenVPN server... Cannot connect... NO tun driver...

Hi all,

I am trying to get the standard OpenVPN working that is included in CM7. I have imported the required certificates (following everything on the CM Wiki). The OpenVPN server is working because i can get a connection from my Ubuntu laptop from the same location.

The settings are the same on my Ubuntu laptop and my POV/Vega.

Here is the logcat when trying to connect to the OpenVPN server:

I/keystore( 902): uid: 1000 action: t -> 1 state: 1 -> 1 retry: 4
D/VpnManager( 9060): succeeded to connect to VPN service
D/com.android.settings.vpn.AuthenticationActor( 9060): ~~~~~~ connect() succeeded!
D/VpnSettings( 9060): received connectivity: eTRAYz: connected? CONNECTING err=0
I/SProxy_mtpd(10159): Stop VPN daemon: mtpd
D/SProxy_mtpd(10159): mtpd is stopped after 0 msec
D/SProxy_mtpd(10159): stopping mtpd, success? true
I/SProxy_racoon(10159): Stop VPN daemon: racoon
D/SProxy_racoon(10159): racoon is stopped after 0 msec
D/SProxy_racoon(10159): stopping racoon, success? true
D/VpnService(10159): Local IP: 192.168.2.80, if: wlan0
D/VpnService(10159): VPN UP: down
I/SProxy_mtpd(10159): Start VPN daemon: mtpd
D/SProxy_mtpd(10159): mtpd is running after 0 msec
D/SProxy_mtpd(10159): service not yet listen()ing; try again
D/mtpd (10594): Waiting for control socket
D/mtpd (10594): Received 32 arguments
I/mtpd (10594): Using protocol openvpn
I/mtpd (10594): Starting openvpn (pppox = -1)
I/mtpd (10594): openvpn started (pid = 10595)
I/SProxy_mtpd(10159): got data from control socket: 32
I/mtpd (10594): Received signal 17
I/mtpd (10594): Pppd is terminated (status = 1)
I/mtpd (10594): Mtpd is terminated (status = 33)
D/dalvikvm( 1780): GC_CONCURRENT freed 561K, 55% free 2999K/6535K, external 1505K/1985K, paused 4ms+6ms
E/VpnService(10159): onError()
E/VpnService(10159): java.io.IOException: No such file or directory
E/VpnService(10159):	at android.net.LocalSocketImpl.connectLocal(Native Method)
E/VpnService(10159):	at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
E/VpnService(10159):	at android.net.LocalSocket.connect(LocalSocket.java:98)
E/VpnService(10159):	at com.android.server.vpn.OpenvpnService$OpenvpnThread.openSocket(OpenvpnService.java:247)
E/VpnService(10159):	at com.android.server.vpn.OpenvpnService$OpenvpnThread.<init>(OpenvpnService.java:194)
E/VpnService(10159):	at com.android.server.vpn.OpenvpnService.waitUntilConnectedOrTimedout(OpenvpnService.java:149)
E/VpnService(10159):	at com.android.server.vpn.VpnService.onConnect(VpnService.java:148)
E/VpnService(10159):	at com.android.server.vpn.VpnServiceBinder$2.run(VpnServiceBinder.java:118)
E/VpnService(10159):	at java.lang.Thread.run(Thread.java:1019)
I/VpnService(10159): disconnecting VPN...
D/VpnSettings( 9060): received connectivity: eTRAYz: connected? DISCONNECTING err=0
V/NotificationService( 1018): Active profile: Default
I/PROFILE ( 1018): Group: Gmail containing : com.android.server.vpn : false
I/PROFILE ( 1018): Group: Phone containing : com.android.server.vpn : false
I/PROFILE ( 1018): Group: Calendar containing : com.android.server.vpn : false
I/PROFILE ( 1018): Group: Email containing : com.android.server.vpn : false
I/PROFILE ( 1018): Group: SMS containing : com.android.server.vpn : false
V/ProfileManager( 1018): No active group, returning default: Other
V/NotificationService( 1018): Pkg: com.android.server.vpn group: Other
D/VpnService(10159): onFinalCleanUp()
I/VpnService(10159): restore original suffices --> null
D/VpnSettings( 9060): received connectivity: eTRAYz: connected? IDLE err=101
D/dalvikvm( 1780): GC_CONCURRENT freed 508K, 54% free 3045K/6535K, external 1505K/1985K, paused 5ms+5ms

Anybody have an idea what is going on here ??

EDIT2:

I guess that the tun module is not available. I hope anybody can confirm this. Is it possible to include then tun module in CM7.

EDIT:

At the OpenVPN end there is no connection attempt when i try to connect with the POV/Vega. When i try to connect with my laptop is see the connection in the openvpn server logfile.

Settings are the same (port number and servername).