Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection stopped working since the last update #15

Closed
GoogleCodeExporter opened this issue Mar 19, 2015 · 41 comments
Closed

Connection stopped working since the last update #15

GoogleCodeExporter opened this issue Mar 19, 2015 · 41 comments
Labels

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 10 May 2012 at 7:25

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision 694f7c58a6bd.

Original comment by [email protected] on 10 May 2012 at 9:00

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 21 Sep 2012 at 6:22

@GoogleCodeExporter
Copy link
Author

can you give a log of the application?

Original comment by [email protected] on 21 Sep 2012 at 6:28

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 21 Sep 2012 at 7:38

@GoogleCodeExporter
Copy link
Author

Is there an archive for older apks which would allow me to download 0.5.0 and 
counter-check?

Original comment by [email protected] on 21 Sep 2012 at 7:40

@GoogleCodeExporter
Copy link
Author

there are older apk  (http:https://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 [email protected] on 21 Sep 2012 at 8:05

@GoogleCodeExporter
Copy link
Author

If you no working adb configuration. I can build a apk with more error 
reporting.

Original comment by [email protected] on 21 Sep 2012 at 8:06

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 22 Sep 2012 at 8:29

@GoogleCodeExporter
Copy link
Author

Any other way I can help to track down the bug?

Original comment by [email protected] on 30 Sep 2012 at 11:41

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 30 Sep 2012 at 12:01

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 30 Sep 2012 at 2:55

@GoogleCodeExporter
Copy link
Author

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:https://plai.de/android/icsopenvpn0523pre3.apk

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

Original comment by [email protected] on 30 Sep 2012 at 9:29

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 8 Oct 2012 at 9:30

@GoogleCodeExporter
Copy link
Author

Thanks. If the bug happens again feel to open a new bug.

Original comment by [email protected] on 8 Oct 2012 at 9:38

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 10 Oct 2012 at 1:46

@GoogleCodeExporter
Copy link
Author

It states: 

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

Original comment by [email protected] on 10 Oct 2012 at 2:07

@GoogleCodeExporter
Copy link
Author

I just tested their version of my app and it is indeed broken :(

Original comment by [email protected] on 10 Oct 2012 at 7:07

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 10 Oct 2012 at 7:36

@GoogleCodeExporter
Copy link
Author

Many thanks for the prompt reaction.

Original comment by [email protected] on 10 Oct 2012 at 8:02

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 10 Oct 2012 at 8:26

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 10 Oct 2012 at 9:11

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 11 Oct 2012 at 8:20

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 11 Oct 2012 at 10:35

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 11 Oct 2012 at 8:49

@GoogleCodeExporter
Copy link
Author

I'll disable it again :-(

Original comment by [email protected] on 12 Oct 2012 at 8:50

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 12 Oct 2012 at 9:36

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 12 Oct 2012 at 9:43

@GoogleCodeExporter
Copy link
Author

It seems to me to be an f-droid problem, or some probem with how f-droid 
handles the script

Original comment by [email protected] on 12 Oct 2012 at 10:15

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] on 26 Nov 2012 at 9:21

@GoogleCodeExporter
Copy link
Author

Do you a version from the google market or from f-droid or anther source?

Original comment by [email protected] on 26 Nov 2012 at 9:34

@GoogleCodeExporter
Copy link
Author

@[email protected] .. 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 [email protected] on 10 Dec 2012 at 7:04

@GoogleCodeExporter
Copy link
Author

The code is avaiable from the mercurial repository on this site.

Original comment by [email protected] on 10 Dec 2012 at 11:48

@GoogleCodeExporter
Copy link
Author

@[email protected] Not able to find mercurial repository.

Original comment by [email protected] on 10 Dec 2012 at 3:29

@GoogleCodeExporter
Copy link
Author

It is right under the Source tab.

Original comment by [email protected] on 10 Dec 2012 at 4:02

@GoogleCodeExporter
Copy link
Author

That code is giving me Error.. "Error writing minivpn binary"

Original comment by [email protected] on 10 Dec 2012 at 4:32

@GoogleCodeExporter
Copy link
Author

I suggest reading the readme.

Original comment by [email protected] on 11 Dec 2012 at 9:10

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 28 Mar 2013 at 2:49

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 28 Mar 2013 at 3:03

@GoogleCodeExporter
Copy link
Author

我已经解决了这个问题了,请导入以下几个文件就可以了:
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 [email protected] on 12 May 2013 at 3:31

@GoogleCodeExporter
Copy link
Author

接上面,文件请在附件里面下载
Discuss with each other:[email protected]

Original comment by [email protected] on 12 May 2013 at 3:34

Attachments:

@GoogleCodeExporter
Copy link
Author

sorry I don't understand chinese

Original comment by [email protected] on 12 May 2013 at 3:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant