nagyistoce / mobitest-agent

Automatically exported from code.google.com/p/mobitest-agent
0 stars 0 forks source link

Problem when running the Android agent on a device: BZZipUtil - Failed to create zip #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run Android BZAgent on phone and begin polling a local instance of 
WebPagetest.
2. Once a result has been picked up, notice how the URL is navigated to in the 
browser succesfully.
3. Program seems to halt and throw an exception due to a zip file issue.

What is the expected output? What do you see instead?
I expect there to be a zip greater than the size of 0 bytes in the folder 
'/sdcard/blaze', I also expect these results to be sent to WebPagetest 
successfully and have them displayed in the browser.

What version of the product are you using? On what operating system?
Using Mac OS X, running the agent from Eclipse. Running a private instance of 
WebPagetest 2.6. Tried the agent on an emulator and Nexus S with the same 
problem. Devices use Android 4.0.

Please provide any additional information below.
Note, originally no data at all was being sent back, I then renamed the 'lib' 
folder to 'libs' and noticed a screenshot was sent back.
If I run adb shell, I can see a file which is 0 bytes named: 
"120419_VY_2_1_0.pcap.zip" (I also see a results.har file)

Error Messages in LogCat:
E/BZZipUtil(15010): java.util.zip.ZipException: No entries
E/BZZipUtil(15010):     at 
java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:231)

Original issue reported on code.google.com by umarumarumarumar on 19 Apr 2012 at 2:51

GoogleCodeExporter commented 9 years ago
I am seeing this error as well. Looks like a permission issue . I noticed that 
the tcp capture thread is not creating the pcap fila at all. I saw a similar 
behavior for jobpoll.txt file as well. To get around that problem I updated the 
code to store the jobs in memory rather than a file.

Original comment by vikasshe...@gmail.com on 25 Apr 2012 at 11:01

GoogleCodeExporter commented 9 years ago
Similar issue. I have attached error log. I don't know whether it is a problem 
with the source code or rooting the phone. I haven't been able to install 
tcpdump into its right location /system/xbin though I have been able to install 
it at /data/local. Source code issue was with import cachemanager.java class. I 
created a cachemanager class file from copying code from the internet.

Original comment by grahamga...@gmail.com on 30 Jul 2013 at 5:46

Attachments:

GoogleCodeExporter commented 9 years ago
I got pcap file to work by copying topdump to /system/bin. I also downloaded ok 
zip. But I am not getting a results.har file or data back. Remember to chimed 
777 tcpump first.

Original comment by grahamga...@gmail.com on 30 Jul 2013 at 9:24

GoogleCodeExporter commented 9 years ago
ensure your device is rooted correctly and that you set permissions. 
adb shell chmod 06755 /system
adb shell chmod 06755 /system/xbin/su 
adb shell chmod 06755 /system/xbin/tcpdump

this fixed the zip issue for me.

Original comment by Server.D...@gmail.com on 18 Nov 2013 at 12:29