IncentivesPro Forum Index IncentivesPro
Leading USB solutions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

adb push resulting in CPU deadlock

 
Post new topic   Reply to topic    IncentivesPro Forum Index -> USB Redirector for Linux
View previous topic :: View next topic  
Author Message
govindar



Joined: 17 Aug 2021
Posts: 6

PostPosted: Tue Aug 17, 2021 7:06 am    Post subject: adb push resulting in CPU deadlock Reply with quote

Using USB Redirector for Linux v3.9.5

We have a Linux USB server (Ubuntu Linux 18.04) and Linux USB client (Ubuntu Linux 16.04) VM.

Able to do the following:
Detect the remote USB device on the OS, device visible on lsusb
Detect the device using ADB (Android debug bridge)
Detect the device using Fastboot.
Flash the remote device in fastboot mode.
Get into the ADB Shell

Issue:
When trying to do an ADB Push of a file from the local machine to the remote USB device, the client hangs with CPU deadlock.

kernel:[396699.192687] NMI watchdog: Watchdog detected hard LOCKUP on cpu 5

After this none of the following linux commands work until the client is hard rebooted to kill the usbsrvd process. Looking for some help to resolve this.
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 649

PostPosted: Tue Aug 17, 2021 8:35 am    Post subject: Reply with quote

Hi govindar,

Please update to the latest version and let me know if the problem remains.
Thanks
Back to top
View user's profile Send private message
govindar



Joined: 17 Aug 2021
Posts: 6

PostPosted: Tue Aug 17, 2021 10:42 am    Post subject: adb push resulting in CPU deadlock Reply with quote

Thanks for the response Peter.

When i try to install the latest version on an Ubuntu18.04 machine, the daemon is unable to start post installation. Perhaps something changed with how the daemon/service is configured with this version on ubuntu18.04? The same installation goes through fine on an ubuntu16.04.

Actuall error:
systemd[1]: /lib/systemd/system/usbsrvd.service:9: Executable path is not absolute: insmod /usr/local/usb-redirector/bin/tusbd.ko
*** Starting daemon...
Failed to start usbsrvd.service: Unit usbsrvd.service is not loaded properly: Exec format error.

Complete Installation Verbose:
*** Installing USB Redirector for Linux v3.9.8
*** Destination dir: /usr/local/usb-redirector
*** Checking installation...
*** Detecting system...
*** distribution: ubuntu
*** init: systemd
*** kernel: 5.4.0-60-generic
*** Compiling kernel module...
*** Kernel module successfully compiled
*** Creating directories...
*** Preparing scripts...
*** Copying files...
*** Installing daemon...
systemd[1]: /lib/systemd/system/usbsrvd.service:9: Executable path is not absolute: insmod /usr/local/usb-redirector/bin/tusbd.ko
*** Starting daemon...
Failed to start usbsrvd.service: Unit usbsrvd.service is not loaded properly: Exec format error.
See system logs and 'systemctl status usbsrvd.service' for details.
*** Please allow incoming connections on 32032 port for the USB server to be able to accept connections from remote clients.
*** INSTALLATION SUCCESSFUL! To uninstall, run /usr/local/usb-redirector/uninstall.sh
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 649

PostPosted: Tue Aug 17, 2021 12:06 pm    Post subject: Reply with quote

Please download the fixed version and re-install. It should resolve the problem.
Thanks.
Back to top
View user's profile Send private message
govindar



Joined: 17 Aug 2021
Posts: 6

PostPosted: Tue Aug 17, 2021 5:32 pm    Post subject: adb push resulting in CPU deadlock Reply with quote

Thanks Peter.

I tried to download the latest version released today from the link provided, and still get the same error when installing on ubuntu 18.04. I am using the x86_64 architecture from the following link -

https://www.incentivespro.com/usb-redirector-linux-x86_64.tar.gz

Error:
*** Installing USB Redirector for Linux v3.9.8
*** Destination dir: /usr/local/usb-redirector
*** Checking installation...
*** Detecting system...
*** distribution: ubuntu
*** init: systemd
*** kernel: 5.4.0-60-generic
*** Compiling kernel module...
*** Kernel module successfully compiled
*** Creating directories...
*** Preparing scripts...
*** Copying files...
*** Installing daemon...
systemd[1]: /lib/systemd/system/usbsrvd.service:9: Executable path is not absolute: insmod /usr/local/usb-redirector/bin/tusbd.ko
*** Starting daemon...
Failed to start usbsrvd.service: Unit usbsrvd.service is not loaded properly: Exec format error.
See system logs and 'systemctl status usbsrvd.service' for details.
*** Please allow incoming connections on 32032 port for the USB server to be able to accept connections from remote clients.
*** INSTALLATION SUCCESSFUL! To uninstall, run /usr/local/usb-redirector/uninstall.sh
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 649

PostPosted: Tue Aug 17, 2021 5:53 pm    Post subject: Reply with quote

Hmm...try downloading from here:
https://www.incentivespro.com/usb-redirector-linux-x86_64-new.tar.gz
Back to top
View user's profile Send private message
govindar



Joined: 17 Aug 2021
Posts: 6

PostPosted: Tue Aug 17, 2021 6:21 pm    Post subject: adb push resulting in CPU deadlock Reply with quote

Thanks Peter,

The latest one worked and the installation went through fine. I was able to connect from the client to the server successfully as well and detect the device with ADB. I was also able to start the service even before this by manually modifying /lib/systemd/system/usbsrvd.service to use absolute paths for insmod and rmmod.

However with this version (3.9.Cool, adb push completely hung the system, did not even get CPU lock errors this time. Please note that before doing an adb push, adb root was done to ensure there are no permission issues.

Any other suggestions on how to get over this?

by the way, adb pull works fine. Am able to get files from remote USB device in the VM using ADB Pull. ADB Push alone causes the machine to hang.
Back to top
View user's profile Send private message
govindar



Joined: 17 Aug 2021
Posts: 6

PostPosted: Tue Aug 24, 2021 7:43 am    Post subject: adb push resulting in CPU deadlock Reply with quote

Hello Guys,

Any suggestions on the ADB push issue that am seeing? Have we seen similar issues prior to this?
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 649

PostPosted: Tue Sep 21, 2021 4:21 pm    Post subject: Reply with quote

UPDATE:
This issue (adb push) has been fixed in 3.9.9
Back to top
View user's profile Send private message
govindar



Joined: 17 Aug 2021
Posts: 6

PostPosted: Wed Sep 22, 2021 6:44 am    Post subject: adb push resulting in CPU deadlock Reply with quote

Thanks a lot for fixing this.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IncentivesPro Forum Index -> USB Redirector for Linux All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group