izancool / android-openvpn-settings

Automatically exported from code.google.com/p/android-openvpn-settings
GNU General Public License v3.0
0 stars 0 forks source link

OpenVPN fails to strat Droid1 FRG22D #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Turn on OpenVPN in OpenVPN Settings
2.
3.

What is the expected output? What do you see instead?
VPN does not come up

What version of the product are you using?
OpenVPN settings 0.4.6 (from market)
OpenVPN installer ?? (from market)
tun.ko 

Which Android phone are you using? Droid 1 Froyo FRG22D Rooted

Which firmware version are you using?

Please provide any additional information below.
09-27 16:09:21.831: DEBUG/OpenVPN-Settings(3383): onCreate()

09-27 16:09:21.902: DEBUG/OpenVPN-Settings(3383): onResume()

09-27 16:09:22.105: INFO/ActivityManager(1092): Displayed activity 

de.schaeuffelhut.android.openvpn/.OpenVpnSettings: 432 ms (total 432 ms)

09-27 16:09:27.324: DEBUG/dalvikvm(1180): GC_EXPLICIT freed 2144 objects / 
128400 bytes in 112ms

09-27 16:09:27.355: DEBUG/dalvikvm(1178): GC_FOR_MALLOC freed 11979 objects / 
549864 bytes in 68ms

09-27 16:09:27.370: DEBUG/AlarmManagerService(1092): Kernel timezone updated to 
240 minutes west of GMT

09-27 16:09:32.449: DEBUG/AlarmManagerService(1092): Kernel timezone updated to 
240 minutes west of GMT

09-27 16:09:32.542: DEBUG/dalvikvm(2041): GC_EXPLICIT freed 33 objects / 1744 
bytes in 149ms

09-27 16:09:39.667: INFO/OpenVPN-ControlShell(3383): starting

09-27 16:09:39.675: DEBUG/OpenVPN-ControlShell(3383): mConfigDir=/sdcard/openvpn

09-27 16:09:39.675: DEBUG/OpenVPN-ControlShell(3383): 

mComDir=/data/data/de.schaeuffelhut.android.openvpn/files/com.d

09-27 16:09:39.675: DEBUG/OpenVPN-ControlShell(3383): trying to attach to 
already running daemons

09-27 16:09:39.699: VERBOSE/OpenVPN-ControlShell(3383): /sdcard/openvpn/001 us 
- Wash DC Metro MAIN.ovpn: trying to attach

09-27 16:09:39.714: DEBUG/OpenVPN-DaemonMonitor[/sdcard/openvpn/001 us - Wash 
DC Metro MAIN.ovpn]-mgmt(3383): attach(): using management port at 48056

09-27 16:09:40.120: ERROR/OpenVPN-DaemonMonitor[/sdcard/openvpn/001 us - Wash 
DC Metro MAIN.ovpn]-mgmt(3383): attaching to OpenVPN daemon: 
localhost/::1:48056 - Connection refused

09-27 16:09:40.120: VERBOSE/OpenVPN-ControlShell(3383): /sdcard/openvpn/001 us 
- Wash DC Metro MAIN.ovpn: not attached

09-27 16:09:40.120: VERBOSE/OpenVPN-ControlShell(3383): /sdcard/openvpn/001 us 
- Wash DC Metro MAIN.ovpn: daemon is enabled in settings, starting

09-27 16:09:40.175: WARN/OpenVPN-DaemonMonitor[/sdcard/openvpn/001 us - Wash DC 
Metro MAIN.ovpn](3383): start(): choosing random port for management interface: 
59905

09-27 16:09:40.238: DEBUG/OpenVPN-DaemonMonitor[/sdcard/openvpn/001 us - Wash 
DC Metro MAIN.ovpn]-daemon(3383): invoking external process: /system/bin/su

09-27 16:09:40.433: DEBUG/su(3391): 10107 de.schaeuffelhut.android.openvpn 
executing 0 /system/bin/sh using shell /system/bin/sh : sh

09-27 16:09:40.566: INFO/OpenVPN-DaemonMonitor[/sdcard/openvpn/001 us - Wash DC 
Metro MAIN.ovpn]-daemon-stdout (3383): terminated

09-27 16:09:40.566: INFO/OpenVPN-DaemonMonitor[/sdcard/openvpn/001 us - Wash DC 
Metro MAIN.ovpn]-daemon-stderr (3383): terminated

09-27 16:09:40.597: DEBUG/OpenVPN-DaemonMonitor[/sdcard/openvpn/001 us - Wash 
DC Metro MAIN.ovpn]-daemon(3383): invoking external process: /system/bin/su

09-27 16:09:40.730: DEBUG/OpenVPNDaemonEnabler(3383): Received OpenVPN daemon 
state changed from Unknown to Startup

09-27 16:09:40.753: DEBUG/OpenVPNDaemonEnabler(3383): Received OpenVPN daemon 
state changed from Unknown to Disabled

09-27 16:09:40.761: DEBUG/OpenVPN-Settings(3383): Connected to OpenVpnService

09-27 16:09:40.761: INFO/OpenVPN-ControlShell(3383): /sdcard/openvpn/001 us - 
Wash DC Metro MAIN.ovpn is not running

09-27 16:09:41.050: DEBUG/su(3399): 10107 de.schaeuffelhut.android.openvpn 
executing 0 /system/bin/sh using shell /system/bin/sh : sh

09-27 16:09:41.074: DEBUG/OpenVPN-DaemonMonitor[/sdcard/openvpn/001 us - Wash 
DC Metro MAIN.ovpn]-daemon-stderr

(3383): /system/xbin: permission denied

09-27 16:09:41.074: INFO/OpenVPN-DaemonMonitor[/sdcard/openvpn/001 us - Wash DC 
Metro MAIN.ovpn]-daemon-stdout (3383): terminated

09-27 16:09:41.074: INFO/OpenVPN-DaemonMonitor[/sdcard/openvpn/001 us - Wash DC 
Metro MAIN.ovpn]-daemon-stderr (3383): terminated

Original issue reported on code.google.com by greged...@gmail.com on 27 Sep 2010 at 9:30

GoogleCodeExporter commented 9 years ago
Could you please check the configuration option:

OpenVPN Settings -> Menu -> Advanced -> Path to openvpn binary

Is the option set? What is the value?

Original comment by friedrich.schaeuffelhut on 28 Sep 2010 at 5:58

GoogleCodeExporter commented 9 years ago
Path to openvpn binary is set to /system/xbin

# cd /system/xbin
cd /system/xbin
# ls -l openvpn
ls -l openvpn
-rwxr-xr-x root     root       907764 2010-09-26 17:24 openvpn

Note: openvpn also installed in /system/bin 
pwd
/system/bin
# ls -l openvpn
ls -l openvpn
-rwxr-xr-x root     root       907764 2010-09-26 01:03 openvpn

Also, possibly relevant info: referencing ifconfig from /system/bin does not 
work:

pwd
/system/bin
# ifconfig
ifconfig
# ls -l ifconfig
ls -l ifconfig
lrwxr-xr-x root     shell             2009-10-21 00:03 ifconfig -> toolbox
# cd ../xbin
cd ../xbin
# ifconfig
ifconfig
# ls -l ifconfig
ls -l ifconfig
--wxrw--wt root     root      1083568 2008-08-01 08:00 ifconfig
# ./ifconfig
./ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:798 errors:0 dropped:0 overruns:0 frame:0
          TX packets:798 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:41840 (40.8 KiB)  TX bytes:41840 (40.8 KiB)

tiwlan0   Link encap:Ethernet  HWaddr 00:26:BA:56:D7:DE
          inet addr:192.168.22.101  Bcast:192.168.22.255  Mask:255.255.255.0
          inet6 addr: 2002:c0a8:140:1234:226:baff:fe56:d7de/64 Scope:Global
          inet6 addr: fe80::226:baff:fe56:d7de/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17545 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11329 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:8391929 (8.0 MiB)  TX bytes:1356865 (1.2 MiB)

# busybox ifconfig
busybox ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:798 errors:0 dropped:0 overruns:0 frame:0
          TX packets:798 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:41840 (40.8 KiB)  TX bytes:41840 (40.8 KiB)

tiwlan0   Link encap:Ethernet  HWaddr 00:26:BA:56:D7:DE
          inet addr:192.168.22.101  Bcast:192.168.22.255  Mask:255.255.255.0
          inet6 addr: 2002:c0a8:140:1234:226:baff:fe56:d7de/64 Scope:Global
          inet6 addr: fe80::226:baff:fe56:d7de/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17561 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11329 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:8393183 (8.0 MiB)  TX bytes:1356865 (1.2 MiB)

Original comment by greged...@gmail.com on 28 Sep 2010 at 1:15

GoogleCodeExporter commented 9 years ago
A lot has changed since then.  OpenVPN on original Droid now running fine with:
- Peter Alfonso's GPA19 rom with tun/tap included in the kernel
- OpenVPN from Installer by Sascha Volkenandt
- OpenVPN-settings

Connecting to: Witopia servers
Set DNS to Witopia DNS servers

Had to edit Witopia config files to remove "show-net-up" option

One question: What order does openvpn-setting display the config files in?  I 
would like to order them in a particular way but can't seem to accomplish that.

Thanks!

Original comment by greged...@gmail.com on 20 Dec 2011 at 5:46

GoogleCodeExporter commented 9 years ago
The display order should be the one of File.listFiles().
What kind of order would you prefer?

Original comment by friedrich.schaeuffelhut on 28 Dec 2011 at 11:21