Amirale47 / ics-openvpn

Automatically exported from code.google.com/p/ics-openvpn
0 stars 0 forks source link

Connection stopped working since the last update #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run version 0.5.0
2. Happily use your VPN connection
3. Upgrade to the latest version (0.5.1)

What is the expected output? What do you see instead?

OpenVPN fails to initialize a connection, with the following error
"Error writing minivpn binary"

What version of the product are you using? On what operating system?
0.5.1, ICS

Original issue reported on code.google.com by sergio.v...@gmail.com on 10 May 2012 at 7:25

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 694f7c58a6bd.

Original comment by arne@rfc2549.org on 10 May 2012 at 9:00

GoogleCodeExporter commented 9 years ago
Using either 0.5.22 or 0.5.21 I get the same error:

minivpn.armeabi-v7a
minivpn.armeabi
Error writing minivpn binary

Original comment by madc...@gmail.com on 21 Sep 2012 at 6:22

GoogleCodeExporter commented 9 years ago
can you give a log of the application?

Original comment by arne@rfc2549.org on 21 Sep 2012 at 6:28

GoogleCodeExporter commented 9 years ago
That was the log :)

I was wondering myself, because even setting the log level to 5 (DEBUG) 
displayed just that:

Warte auf OpenVPN Status Nachricht...
Modell GT-N7000 (smdk4210) samsung, Android API 15
minivpn.armeabi-v7a
minivpn.armeabi
Error writing minivpn binary

(It's rooted btw.)

Original comment by madc...@gmail.com on 21 Sep 2012 at 7:38

GoogleCodeExporter commented 9 years ago
Is there an archive for older apks which would allow me to download 0.5.0 and 
counter-check?

Original comment by madc...@gmail.com on 21 Sep 2012 at 7:40

GoogleCodeExporter commented 9 years ago
there are older apk  (http://plai.de/android/) but the code in question has not 
changed for the last 20 version or so.  

The android code tries to write /data/data/de.blinkt.cache/minivpn.armeabi-v7a. 
I am not sure why this can fail.

If you have working adb can you can the following?

adb shell

su

ls -l /data/data/de.blinkt.openvpn
ls -l /data/data/de.blinkt.openvpn/cache

Original comment by arne@rfc2549.org on 21 Sep 2012 at 8:05

GoogleCodeExporter commented 9 years ago
If you no working adb configuration. I can build a apk with more error 
reporting.

Original comment by arne@rfc2549.org on 21 Sep 2012 at 8:06

GoogleCodeExporter commented 9 years ago
The listings you requested:

# ls -l /
#...
drwxrwx--x system   system            2012-09-21 19:22 data
#...

# ls -l /data/data/de.blinkt.openvpn
drwxrwx--x app_20   app_20            2012-09-21 20:09 cache
drwxrwx--x app_20   app_20            2012-09-21 20:18 files
drwxr-xr-x system   system            2012-09-21 20:08 lib
drwxrwx--x app_20   app_20            2012-09-21 20:47 shared_prefs

# ls -l /data/data/de.blinkt.openvpn/cache
(empty)

Original comment by madc...@gmail.com on 22 Sep 2012 at 8:29

GoogleCodeExporter commented 9 years ago
Any other way I can help to track down the bug?

Original comment by madc...@gmail.com on 30 Sep 2012 at 11:41

GoogleCodeExporter commented 9 years ago
sorrythat I have forgotten you. I am quite at a loss explaining what happens 
there. Have tried uninstalling and reinstalling the app?

Original comment by arne@rfc2549.org on 30 Sep 2012 at 12:01

GoogleCodeExporter commented 9 years ago
Yes. In addition I tried several different variants of configs (all-inline, 
split, ...)

Maybe reopening the issue would be a good idea :)

Original comment by madc...@gmail.com on 30 Sep 2012 at 2:55

GoogleCodeExporter commented 9 years ago
I need to know if the failure is when openvpn tries to open the asset or when 
writing to the file system.

Can you try this version? http://plai.de/android/icsopenvpn0523pre3.apk

It should give  clearer error message if reading from assets fail (which should 
never happen)

Original comment by arne@rfc2549.org on 30 Sep 2012 at 9:29

GoogleCodeExporter commented 9 years ago
Haven't seen a response on the 0.5.23pre3 apk, so thought I would report that 
it is working for me.

I didn't have a previously working version of OpenVPN installed on my phone, 
but I was experiencing the same "Error writing minivpn binary" error with 
0.5.22 (and 0.5.21) on an AT&T Galaxy S3 running ICS (currently un-rooted). But 
tried the 0.5.23pre3 version above and the error is gone.

Original comment by joel.s.e...@gmail.com on 8 Oct 2012 at 9:30

GoogleCodeExporter commented 9 years ago
Thanks. If the bug happens again feel to open a new bug.

Original comment by arne@rfc2549.org on 8 Oct 2012 at 9:38

GoogleCodeExporter commented 9 years ago
Today I tried the 0.5.23pre3 too - successfully!

To ensure the app itself - as opposed to any other state of the phone - was at 
fault, I uninstalled it and went back to 0.5.22. This allowed me to reproduce 
the "Error writing minivpn binary"-error.

Note that the 0.5.22 I used was the one from fdroid-"market". (Just in case 
this one is different in any way.)

Thanks a lot for your support on the topic!

Original comment by madc...@gmail.com on 10 Oct 2012 at 1:46

GoogleCodeExporter commented 9 years ago
It states: 

This version is built and signed by F-Droid, and guaranteed to correspond to 
the source tarball below.

Original comment by arne@rfc2549.org on 10 Oct 2012 at 2:07

GoogleCodeExporter commented 9 years ago
I just tested their version of my app and it is indeed broken :(

Original comment by arne@rfc2549.org on 10 Oct 2012 at 7:07

GoogleCodeExporter commented 9 years ago
Sorry about the bother. I wrote up the build metadata, which I got from the 
readme. Unfortunately I didn't bother to test the build. I will change the 
build to run build-native.sh instead of ndk-build.

Original comment by david8bl...@gmail.com on 10 Oct 2012 at 7:36

GoogleCodeExporter commented 9 years ago
Many thanks for the prompt reaction.

Original comment by arne@rfc2549.org on 10 Oct 2012 at 8:02

GoogleCodeExporter commented 9 years ago
I get an error: aapt] aapt: warning: string 'vpn_types' has no default 
translation in /home/gerry/dalb8s-fdroiddata/build/de.blinkt.openvpn/res; 
found: he
     [aapt] /home/gerry/dalb8s-fdroiddata/build/de.blinkt.openvpn/res/values-ko/arrays.xml:21: error: Error parsing XML: not well-formed (invalid token)

If fetchtranslations.sh needs to be run could you provide an alternative to 
fetch as I don't think it's in any distros.?

Original comment by david8bl...@gmail.com on 10 Oct 2012 at 8:26

GoogleCodeExporter commented 9 years ago
Fortunately v0.5.24 builds (I was getting worried that I would have to figure 
out what fetch was). I'm still trying to figure out how to use it, but there 
are four small files in assets/ now, so I guess it should work. The metadata is 
here 
https://gitorious.org/f-droid/fdroiddata/commit/8ef49589bf804a7e5be2a85dfa4e3db7
e61d96ac

Original comment by david8bl...@gmail.com on 10 Oct 2012 at 9:11

GoogleCodeExporter commented 9 years ago
Thanks for fixing the version in f-droid.

fetch is the FreeBSD variant of wget. fetchtranslations.sh is a script mainly 
useful for me to get translations from crowdin.net.

Original comment by arne@rfc2549.org on 11 Oct 2012 at 8:20

GoogleCodeExporter commented 9 years ago
Have you tested that it works? I did the build last night with -j 2 on my 
netbook and it finished rather quickly, but I can't use a vpn to test it out. 

Original comment by david8bl...@gmail.com on 11 Oct 2012 at 10:35

GoogleCodeExporter commented 9 years ago
Hm something has gone very wrong in your last build. Inspecting the last apk 
download by fdroid seem to be the libs and assets only lib/libcrypto is there.

I can give a test OpenVPN account if you like to test the apk yourself. I can 
also I find time on the weekend look into how fdroid is building the apk and 
look what is wrong.

Original comment by arne@rfc2549.org on 11 Oct 2012 at 8:49

GoogleCodeExporter commented 9 years ago
I'll disable it again :-(

Original comment by david8bl...@gmail.com on 12 Oct 2012 at 8:50

GoogleCodeExporter commented 9 years ago
I just tried building it with fdroid build on my Mac OS X. I had to change to 
sed command to 

sed -i -e 's/ndk-build APP_API=all -j 8/ndk-build APP_API=all -j 2/g' 
build-native.sh && ./build-native.sh 

but propably this is due to GNU sed being a bit different than BSD sed. The 
produced apk looks fine:

bsdtar tvf unsigned/de.blinkt.openvpn_51.apk |egrep '(lib|asset)' 
-rwxrwxrwx  0 0      0        5144 12 Okt 23:20 assets/minivpn.armeabi
-rwxrwxrwx  0 0      0        5148 12 Okt 23:20 assets/minivpn.armeabi-v7a
-rwxrwxrwx  0 0      0        5372 12 Okt 23:20 assets/minivpn.mips
-rwxrwxrwx  0 0      0        4976 12 Okt 23:20 assets/minivpn.x86
-rwxrwxrwx  0 0      0      371152 12 Okt 23:19 lib/armeabi/libopenvpn.so
-rwxrwxrwx  0 0      0        5112 12 Okt 23:19 lib/armeabi/libopvpnutil.so
-rwxrwxrwx  0 0      0      362948 12 Okt 23:19 lib/armeabi-v7a/libopenvpn.so
-rwxrwxrwx  0 0      0        5064 12 Okt 23:19 lib/armeabi-v7a/libopvpnutil.so
-rwxrwxrwx  0 0      0      656944 12 Okt 23:19 lib/mips/libopenvpn.so
-rwxrwxrwx  0 0      0        5564 12 Okt 23:19 lib/mips/libopvpnutil.so
-rwxrwxrwx  0 0      0      559464 12 Okt 23:19 lib/x86/libopenvpn.so
-rwxrwxrwx  0 0      0        5044 12 Okt 23:19 lib/x86/libopvpnutil.so

Original comment by arne@rfc2549.org on 12 Oct 2012 at 9:36

GoogleCodeExporter commented 9 years ago
I need to delete the obj/ prior to building , otherwise it copies what's there. 
If I delete obj it works: not sure why. Also it should be ABI, not API

Original comment by david8bl...@gmail.com on 12 Oct 2012 at 9:43

GoogleCodeExporter commented 9 years ago
It seems to me to be an f-droid problem, or some probem with how f-droid 
handles the script

Original comment by david8bl...@gmail.com on 12 Oct 2012 at 10:15

GoogleCodeExporter commented 9 years ago
Hi, I am experiencing the same problem 0.5.25 both on ICS and JB (this one is 
rooted)

Original comment by Mario.Ce...@gmail.com on 26 Nov 2012 at 9:21

GoogleCodeExporter commented 9 years ago
Do you a version from the google market or from f-droid or anther source?

Original comment by arne@rfc2549.org on 26 Nov 2012 at 9:34

GoogleCodeExporter commented 9 years ago
@arne@rfc2549.org .. 0.5.23pre3 apk is working fine for me. Can you tell me 
what changes you have done in code to make it working. Or if you mail me the 
code, It will be a great help..

Original comment by god2abhi...@gmail.com on 10 Dec 2012 at 7:04

GoogleCodeExporter commented 9 years ago
The code is avaiable from the mercurial repository on this site.

Original comment by arne@rfc2549.org on 10 Dec 2012 at 11:48

GoogleCodeExporter commented 9 years ago
@arne@rfc2549.org Not able to find mercurial repository.

Original comment by god2abhi...@gmail.com on 10 Dec 2012 at 3:29

GoogleCodeExporter commented 9 years ago
It is right under the Source tab.

Original comment by arne@rfc2549.org on 10 Dec 2012 at 4:02

GoogleCodeExporter commented 9 years ago
That code is giving me Error.. "Error writing minivpn binary"

Original comment by god2abhi...@gmail.com on 10 Dec 2012 at 4:32

GoogleCodeExporter commented 9 years ago
I suggest reading the readme.

Original comment by arne@rfc2549.org on 11 Dec 2012 at 9:10

GoogleCodeExporter commented 9 years ago
Hi, i've got the same issue. I think it's a build-related issue, since I've 
never built a code with ndk. I've read the read-me, but i got some problems 
when running build-native.sh.

Which steps I have to follow to properly build and deploy the app?

Original comment by Vincenzo...@gmail.com on 28 Mar 2013 at 2:49

GoogleCodeExporter commented 9 years ago
Please do no comment on already closed bugs. If you get errors when using 
build-native.sh you have to fix these errors. And without telling me which 
errors you are getting I cannot help you at all.

Original comment by arne@rfc2549.org on 28 Mar 2013 at 3:03

GoogleCodeExporter commented 9 years ago
我已经解决了这个问题了,请导入以下几个文件就可以了:
libs/armeabi-v7a/libopenvpn.so
libs/armeabi-v7a/libopvpnutil.so
assets/minivpn.armeabi-v7a
assets/minivpn.armeabi
assets/minivpn.mips
assets/minivpn.x86

Original comment by wanjun8...@gmail.com on 12 May 2013 at 3:31

GoogleCodeExporter commented 9 years ago
接上面,文件请在附件里面下载
Discuss with each other:wanjun8888@gmail.com

Original comment by wanjun8...@gmail.com on 12 May 2013 at 3:34

Attachments:

GoogleCodeExporter commented 9 years ago
sorry I don't understand chinese

Original comment by arne@rfc2549.org on 12 May 2013 at 3:54