Downloading Android Debug logs

ST
Shawn T
Supply Chain Services LLC

Hello,

Has anyone had any luck downloading the Android Debug logs from the log tab on a given device? When ever I send the command I receive no response for 1 minute, then the zip file is created and downloaded but is always only 86 bytes and invalid. The logs show the following:

  • Action sent (Get Device Android debug Logs)
  • Action sent (Device Android debug logs download request failed: Error retrieving agent log. Server reported error: The operation has timed out.)
  • Error receiving file (Error receiving file "%logpath%\bugreport.log.zip", Timed out waiting for response)

We manage a number of servers on varying versions of mobicontrol with the same result. The instance in question is the following:

Mobicontrol Version: 15.2.0.4819

Agent Versions: 14.4.2.1039

Enrollment Type: Android Enterprise / Fully Managed

Device Types: MC9300 (Android 8) , TC52 (Android 10), CK65 (Android 9)

Hoping someone has experienced this and has a solution or insight as to what the issue may be. 

Thanks,

Shawn

4 years ago
Android
ANSWERS
J
JCMOD@SOTI
4 years ago (edited 4 years ago)

Hi Shawn,

Thank you for posting in SOTI Central.

As pointed out by the logs, the action is timing out. This might be related to the log buffer. If you click on "Configurations -> Scroll down to Advanced Configuration section -> Choose Connection Settings" change the Maximum Size to 8000 for example under Log File Management. Then re-attempt the action and see if it now works.

If that is fruitless, send request_bug_report as a script action to the device then re-request Android Debug from the device.

Let us know how it goes? If the above resolves the issue, please mark this post as the solution.

Regards,

MD
Matt Dermody Diamond Contributor
4 years ago

The key is the request_bug_report script from what I've seen. 

N
ND
4 years ago

Hi All 

This is the accurate method if you want to fetch the debug logs. 

  1. send below script to the device.

                 request_bug_report

2. Remote into device and pull down (notification bar) from top --> you will receive a prompt asking to share debug.  --> click Share


3. Click on it and then after 10-15 seconds , click on download logs --> Android debug  on web console