ChaiBangkok / 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

Connection status hangs at "Startup.." and connection will not start #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Updated OpenVPN settings (also attempted with clean install after rm-ing
all associated files from adb shell.)
2. Starting a vpn connection now hangs with the message "Startup.." below
the connection name, check box next to connection name will not change to
"checked".
3.

What is the expected output? What do you see instead?
Expected outcome: vpn connection is started.
Saw instead:  Connection status hangs at "Startup"

What version of the product are you using? On what operating system?
OpenVPN Settings 0.4.4 on DroidMod `1.0

Please provide any additional information below.
It appears the superuser permissions invocation has changed.  It appears
that the current call of "exec /system/bin/sh -x -x -i" (specifically the
'-i' flag) is causing sh to drop to an interactive shell, causing OpenVPN
Settings to hang.  After multiple attempts, multiple processes of
"/system/bin/sh -x -s -i" are shown by 'ps' in a terminal (adb shell or
ConnectBot local root shell), but killing them will not cause the
connection to start.

Original issue reported on code.google.com by YourK...@gmail.com on 20 Apr 2010 at 8:32

GoogleCodeExporter commented 9 years ago
I have this exact problem. settings worked perfectly under TunnelDroid. 
double-checked lsmod and 
modprobe/insmod settings, everything looks good.

Original comment by roger.bu...@gmail.com on 24 Apr 2010 at 1:58

GoogleCodeExporter commented 9 years ago
OpenVPN-Settings is indeed talking to an interactive shell when launching the 
openvpn
binary. What kind of shell is /system/bin/sh on DroidMod `1.0?

Original comment by friedrich.schaeuffelhut on 25 Apr 2010 at 2:54

GoogleCodeExporter commented 9 years ago
I believe DroidMod 1.0 installs a more feature-filled version of sh to
/system/bin/sh, although I am not sure of exactly what version of sh. it is 
about
1.3MB, much larger then the sh from stock android.

Original comment by YourK...@gmail.com on 26 Apr 2010 at 9:17

GoogleCodeExporter commented 9 years ago
from my phone running DM1.0:

[user@droid] / $ /system/bin/sh --version
GNU bash, version 4.1.0(4)-release (arm-none-linux-gnueabi)

Original comment by roger.bu...@gmail.com on 28 Apr 2010 at 7:28

GoogleCodeExporter commented 9 years ago
Could you please 'adb  pull /system/bin/sh' from your phone and post it here.

Original comment by friedrich.schaeuffelhut on 28 Apr 2010 at 9:01

GoogleCodeExporter commented 9 years ago
See file.

shouldnt `bash` be backwards compatible with `sh` though?

Original comment by roger.bu...@gmail.com on 29 Apr 2010 at 9:50

Attachments:

GoogleCodeExporter commented 9 years ago
I switched to Cyanogenmod. once I finally got that working (protip: you need to 
wipe to update from 2.0.1 to 
2.1), OpenVPN Settings worked perfectly.

I cant get the Cyanogen /system/bin/sh to spit any info out about itself 
though. all the - and -- args I try are 
invalid.

Original comment by roger.bu...@gmail.com on 30 Apr 2010 at 12:15

GoogleCodeExporter commented 9 years ago
I'm also having these issues (if it makes a difference)
It *was* working before, I don't know what changed.
for the record I had things working just fine with openvpn-settings until I 
wiped
droidmod and reinstalled

Original comment by abovill@gmail.com on 5 May 2010 at 1:39

GoogleCodeExporter commented 9 years ago
Hi, just wanted to report that I'm experiencing these same issues. I'm running 
a 
heavily modded Bugless Beast 1.0, but my shell is Bash, compiled through 
Busybox. The 
stock /system/bin/sh is symlinked to /system/xbin/bash. Here's the version 
information:

DROID: / # /system/bin/sh --version
/system/bin/sh --version
GNU bash, version 4.1.0(2)-release (arm-unknown-eabi)

I'm also seeing OpenVPNSettings open interactive shells and stall. 
DROID: / # ps | grep sh
 1669 0         1268 S    /system/bin/sh -
 1702 0         1264 S    /system/bin/sh -s -x -i
 1740 0          668 S    grep sh

Adb logcat dump is attached. Let me know if I can help!

Original comment by thedrexs...@gmail.com on 10 May 2010 at 7:34

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry, forgot to include Busybox version in my post.

DROID: / # busybox
BusyBox v1.15.2 (2010-01-24 18:40:52 UTC) multi-call binary

Original comment by thedrexs...@gmail.com on 10 May 2010 at 7:35

GoogleCodeExporter commented 9 years ago
I'm experiencing the same troubles running OpenVPN-Setting 0.4.4 on my Motorola 
Milestone running Android 2.1-update 1 (SHOLS_U2_02.34.0 / rooted).

How to reproduce it:

1. start OpenVPN Settings
2. press/click on "OpenVPN" (Turn on OpenVPN) 
3. press/click on "client.conf" (Select to turn on OpenVPN tunnel)
   => that's my OpenVPN configuration)
4. the system prompts with "The following application has requested
   Superuser access to the phone: 
   User ID: 10104 de.schaeuffelhut.android.openvpn) 
   Would you like to grant it permission to run privileged commands?".
5. press "Yes" leads to a hanging "OpenVPN Settings hang" with message 
"Startup..."

Work-Around

When I press "client.conf" a 2nd time shortly after 5. , OpenVPN setting 
connects/establishes the tunnel and everything works fine.

Cheers, Peter

Original comment by peterdi...@googlemail.com on 24 May 2010 at 9:13

GoogleCodeExporter commented 9 years ago
I just noticed in the logcat that was posted:
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/TarantellaHome.ovpn]-daemon-stderr( 
1452):
SHELL-PROMPT-READY
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/TarantellaHome.ovpn]-daemon( 1452): exec
/system/bin/su -c 'exec /system/bin/sh-s -x -i'

Shouldn't there be a space between the /system/bin/sh and the -s -x -i? Might 
that
cause the problem?

Original comment by abovill@gmail.com on 26 May 2010 at 6:22

GoogleCodeExporter commented 9 years ago

Original comment by friedrich.schaeuffelhut on 27 May 2010 at 12:54

GoogleCodeExporter commented 9 years ago
This issue has started to occur in nightly builds of cyanogenmod 5.0.8 starting 
with 
May 27th.

Original comment by mempf....@gmail.com on 1 Jun 2010 at 7:58

GoogleCodeExporter commented 9 years ago
roger could you please do a adb pull /system/bin/sh with cyanogen

Original comment by hragsark...@gmail.com on 7 Jun 2010 at 11:06

GoogleCodeExporter commented 9 years ago
I havs met the same  troubles running OpenVPN-Setting 0.4.4 on my Motorola 
Milestone running Android 2.1

The Openvpn hangs up at "startup ..."

Original comment by atfa.k...@gmail.com on 7 Jun 2010 at 3:05

GoogleCodeExporter commented 9 years ago
I'm still running Cyanogen 5.0.6.2-Droid but here you go!

Original comment by roger.bu...@gmail.com on 7 Jun 2010 at 7:52

Attachments:

GoogleCodeExporter commented 9 years ago
I finally could reproduce the issue on my G1 running cm-5.0.8test4.
Please test the attached apk.

Original comment by friedrich.schaeuffelhut on 11 Jun 2010 at 2:42

Attachments:

GoogleCodeExporter commented 9 years ago
I'm updating to Cyanogen 5.0.7.1-Droid and will report back later.

Original comment by roger.bu...@gmail.com on 11 Jun 2010 at 8:32

GoogleCodeExporter commented 9 years ago
Appears to be working on Cyanogen 5.0.7.1-Droid. huzzah!

Original comment by roger.bu...@gmail.com on 11 Jun 2010 at 8:59

GoogleCodeExporter commented 9 years ago

Original comment by friedrich.schaeuffelhut on 16 Sep 2010 at 1:58