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

Can't start a connection #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install, have a working config
2. try to start a connection

What is the expected output? What do you see instead?
Should make a connection :)

What version of the product are you using?
OpenVPN-Settings-0.4.7.apk 

Which Android phone are you using?
Samsung Galaxy Spica

Which firmware version are you using?
SpicagenMod-froyo 

This project is based on great work that did criminal releasing 
CM6.1.1-Spica-alphas 
https://github.com/SM-froyo/sm_android/wiki

Please provide any additional information below.

I think it's related with sh

logcat:

I/OpenVPN-ControlShell( 2907): starting
D/OpenVPN-ControlShell( 2907): mConfigDir=/sdcard/openvpn
D/OpenVPN-ControlShell( 2907): 
mComDir=/data/data/de.schaeuffelhut.android.openvpn/files/com.d
D/OpenVPN-ControlShell( 2907): trying to attach to already running daemons
V/OpenVPN-ControlShell( 2907): /sdcard/openvpn/oregpreshaz_tap.conf: trying to 
attach
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/oregpreshaz_tap.conf]-mgmt( 2907): 
attach(): using management port at -1
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/oregpreshaz_tap.conf]-mgmt( 2907): 
attach(): unspecified management port, not attaching
V/OpenVPN-ControlShell( 2907): /sdcard/openvpn/oregpreshaz_tap.conf: not 
attached
V/OpenVPN-ControlShell( 2907): /sdcard/openvpn/oregpreshaz_tap.conf: daemon is 
disabled in settings, not starting
V/OpenVPN-ControlShell( 2907): /sdcard/openvpn/integrity.conf: trying to attach
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/integrity.conf]-mgmt( 2907): attach(): 
using management port at -1
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/integrity.conf]-mgmt( 2907): attach(): 
unspecified management port, not attaching
V/OpenVPN-ControlShell( 2907): /sdcard/openvpn/integrity.conf: not attached
V/OpenVPN-ControlShell( 2907): /sdcard/openvpn/integrity.conf: daemon is 
disabled in settings, not starting
D/OpenVPN-Settings( 2907): Connected to OpenVpnService
I/OpenVPN-ControlShell( 2907): /sdcard/openvpn/oregpreshaz_tap.conf is not 
running
I/OpenVPN-ControlShell( 2907): /sdcard/openvpn/integrity.conf is not running
D/dalvikvm( 2584): GC_EXPLICIT freed 8078 objects / 495448 bytes in 185ms
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/oregpreshaz_tap.conf]-mgmt( 2907): 
attach(): using management port at -1
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/oregpreshaz_tap.conf]-mgmt( 2907): 
attach(): unspecified management port, not attaching
W/OpenVPN-DaemonMonitor[/sdcard/openvpn/oregpreshaz_tap.conf]( 2907): start(): 
choosing random port for management interface: 19947
D/dalvikvm( 2907): GC_FOR_MALLOC freed 5829 objects / 482992 bytes in 86ms
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/oregpreshaz_tap.conf]-daemon( 2907): 
invoking external process: /system/xbin/su
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/oregpreshaz_tap.conf]-daemon( 2907): 
invoking command line: /system/xbin/openvpn --cd '/sdcard/openvpn' --config 
'oregpreshaz_tap.conf' --writepid 
'/data/data/de.schaeuffelhut.android.openvpn/files/com.d/sdcard_openvpn_oregpres
haz_tap.conf-pid' --script-security 1 --management 127.0.0.1 19947 
--management-query-passwords
D/OpenVPNDaemonEnabler( 2907): Received OpenVPN daemon state changed from 
Unknown to Startup
D/OpenVPNDaemonEnabler( 2907): Received OpenVPN daemon state changed from 
Unknown to Disabled
E/su ( 2922): Couldn't open database
W/su ( 2922): request rejected (10053->0 /system/bin/sh)
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/oregpreshaz_tap.conf]-daemon-stderr( 
2907): Permission denied
I/OpenVPN-DaemonMonitor[/sdcard/openvpn/oregpreshaz_tap.conf]-daemon-stdout( 
2907): terminated
I/OpenVPN-DaemonMonitor[/sdcard/openvpn/oregpreshaz_tap.conf]-daemon-stderr( 
2907): terminated

Original issue reported on code.google.com by szims...@gmail.com on 14 Mar 2011 at 8:24

GoogleCodeExporter commented 9 years ago
This looks like you don't have a valid configuration for your su command:
"E/su ( 2922): Couldn't open database"

Do you have other apps successfully running with root permissions? Remember 
that openvpn-settings requires a rooted device to work properly.

However, the app should hand over the su error to the user if it fails.

Original comment by EXTAl...@gmail.com on 19 Mar 2011 at 1:54

GoogleCodeExporter commented 9 years ago
I have a little research after the spicagenmod-froyo-beta1 
(http://forum.samdroid.net/f53/spicagenmod-froyo-beta1-4563/) was released and 
someone confirmed the openvpn settings is working.

I had the some problem with it as before. But I figured out that the su program 
had a wrong permission:

-rwxrwsr-x

should be:

-rwsrwsr-x

with user sticky bit on.

After I change it to a right one everything is ok. However something revert the 
permission back to the wrong state I can't figure out which one :(

The funny thing is that es fileexplorer, terminal and other apps have no 
problem to gain root access with su with wrong permission...

Anyway this bug is invalid now for me. Thanks great app! Must have... :)

tickets related in samdroid.net: 
http://issues.samdroid.net/jira/browse/SGMUSERS-24
http://issues.samdroid.net/jira/browse/SGMUSERS-29

Original comment by szims...@gmail.com on 19 Mar 2011 at 7:06

GoogleCodeExporter commented 9 years ago

Original comment by friedrich.schaeuffelhut on 29 Dec 2011 at 12:12