qlwpub / ics-openvpn

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

Nexus 4 crashes #277

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Take a Nexus 4. Update with latest firmware (4.4.4)
2. Latest openvpn version (0.6.17)
3. Smartphone has been set to be encrypted
4. In use with touchdown (8.4.00086) (for secure e-mail container)
5. Advanced setting openvpn Pestistent tun is enabled.
6. Setup vpn connection

When you leave the smartphone for about an hour the smartphone does not respond 
anymore. It only responds, shutdown, when holding the power button longer that 
5 seconds. And powers up when pushing the button.

Workaround is to disable the persistent tun.

Original issue reported on code.google.com by crypp...@gmail.com on 27 Aug 2014 at 3:04

GoogleCodeExporter commented 9 years ago
That is very strange bug. I am not really sure what to make out that. My  
Android 4.4.4 device and 4.4.3 (Nexus 7) devices don't have this behaviour. Can 
you check if OpenVPN for Android starts to behave strangly before that hour 
passes? (memory usage, cpu usage, log messages)

Original comment by arne@rfc2549.org on 28 Aug 2014 at 12:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Will try to look in the log.. But I wonder if I can access the log after the 
crash. I have to restart the smartphone. Is the log still there?
Are there tools/apps that log CPU/memory stats for troubleshooting after device 
crash?

Original comment by crypp...@gmail.com on 29 Aug 2014 at 7:41

GoogleCodeExporter commented 9 years ago
Device crashed.. finally has been taking long this time. But I have to reboot 
the device. And when I start openvpn it creates a new log. Can the log file be 
found somewhere on the device so i can check what happens just before the crash?

Original comment by crypp...@gmail.com on 11 Sep 2014 at 9:07

GoogleCodeExporter commented 9 years ago
The openvpn log log is only kept in memory. You can try add to add something 
like log /sdcard/openvpn.log to the the custom options.

Original comment by arne@rfc2549.org on 19 Sep 2014 at 7:38

GoogleCodeExporter commented 9 years ago
I get a permission denied (error=13)

Is there an openvpn debug version available that has the option to log to 
storage instead of memory?

Original comment by crypp...@gmail.com on 23 Sep 2014 at 2:15

GoogleCodeExporter commented 9 years ago
It seems that I can do a write to /data/data/de.blinkt.openvpn/cache/openvpn.log

The question now is. How can I access it. No file explorer can get to that 
folder.

Original comment by crypp...@gmail.com on 23 Sep 2014 at 2:28

GoogleCodeExporter commented 9 years ago
Mayby an idea to add this function to a new version of openvpn. So new problems 
can make use of file-based log. And can e-mail it ;)

Original comment by crypp...@gmail.com on 1 Oct 2014 at 7:21

GoogleCodeExporter commented 9 years ago
you should also be able to write to /data/local/tmp/. I will add that to my 
list of features I should implement in the future

Original comment by arne@rfc2549.org on 1 Oct 2014 at 11:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Finally I did it!!
What needs to be done:
- Install android adt bundle. Then create openvp.log and push it to 
/data/local/tmp/
- Edit custom setting "log /data/local/tmp/openvpn.log"
- Restart phone
- Maken connection.
- pull openvpn log with adb again.
It works.. No I have to wait for the crash and then I will get the log!

Original comment by crypp...@gmail.com on 2 Oct 2014 at 8:46

GoogleCodeExporter commented 9 years ago
Where can I mail it to?
Do not like to attach it here so everyone can read it.

Original comment by crypp...@gmail.com on 2 Oct 2014 at 1:17

GoogleCodeExporter commented 9 years ago
just my email arne-openvpn@rfc2549.org

Original comment by arne@rfc2549.org on 2 Oct 2014 at 7:41

GoogleCodeExporter commented 9 years ago
Have been testing with the adb catlog for some time now.
Even write a batch that enables and deisables the wifi during the day.
Problem does not occur. Only occurs when phone is not being logged. So I can 
not get any logging to you.

Hope new feature to log it to device form openvpn itself will be available in 
the future.

Original comment by vos1...@gmail.com on 11 Nov 2014 at 8:17

GoogleCodeExporter commented 9 years ago
Closing the bug since it is completely unclear what the cause of the crash is 
and how it can be fixed.

Original comment by arne@rfc2549.org on 9 Feb 2015 at 9:22