USB dongle is not used, service doesn't restart

Hi,

I have the issue that my dongle is not used. It has been working, but then stopped for some reasons. Restarting, stopping service takes quit long. 

Also system hangs after sudo reboot. Don't know if virtualhere causing this issue too.

I would be grateful for any hints!

journalctl output

Apr 26 20:32:47 raspberrypi avahi-daemon[682]: Loading service file /services/vhusbd.service.
Apr 26 20:32:47 raspberrypi avahi-daemon[682]: Files changed, reloading.
Apr 26 20:32:47 raspberrypi vhusbdarm64[2566]: Listening on all network interfaces at TCP port 7575
Apr 26 20:32:47 raspberrypi vhusbdarm64[2566]: Using large URB's
Apr 26 20:32:47 raspberrypi vhusbdarm64[2566]: Server licensed to=unlicensed max_devices=1
Apr 26 20:32:47 raspberrypi sudo[2502]: pam_unix(sudo:session): session closed for user root
Apr 26 20:32:47 raspberrypi systemd[1]: Started virtualhere.service - VirtualHere Server.
Apr 26 20:32:47 raspberrypi vhusbdarm64[2565]: Using configuration /usr/local/etc/virtualhere/config.ini
Apr 26 20:32:47 raspberrypi vhusbdarm64[2565]: >>> Starting VirtualHere USB Server v4.6.4 (Built: Apr  5 2024, 10:14:46)<<<
Apr 26 20:32:47 raspberrypi systemd[1]: Starting virtualhere.service - VirtualHere Server...
Apr 26 20:32:47 raspberrypi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Apr 26 20:32:47 raspberrypi systemd[1]: virtualhere.service: Found left-over process 875 (vhusbdarm64) in control group while starting unit. Ignoring.
Apr 26 20:32:47 raspberrypi systemd[1]: Stopped virtualhere.service - VirtualHere Server.
Apr 26 20:32:47 raspberrypi systemd[1]: virtualhere.service: Unit process 875 (vhusbdarm64) remains running after unit stopped.
Apr 26 20:32:47 raspberrypi systemd[1]: virtualhere.service: Failed with result 'timeout'.
Apr 26 20:32:47 raspberrypi systemd[1]: virtualhere.service: Processes still around after final SIGKILL. Entering failed mode.

output form systemclt status virtualhere

pi@raspberrypi:~ $ sudo systemctl status virtualhere
● virtualhere.service - VirtualHere Server
    Loaded: loaded (/etc/systemd/system/virtualhere.service; enabled; preset: enabled)
    Active: active (running) since Fri 2024-04-26 20:32:47 CEST; 10min ago
   Process: 2565 ExecStart=/usr/local/sbin/vhusbdarm64 -b -c /usr/local/etc/virtualhere/config.ini (code=exited, status=0/SUCCESS)
     Tasks: 13 (limit: 4444)
       CPU: 134ms
    CGroup: /system.slice/virtualhere.service
            ├─ 875 "[vhusbdarm64]"
            └─2566 /usr/local/sbin/vhusbdarm64 -b -c /usr/local/etc/virtualhere/config.ini

Apr 26 20:32:47 raspberrypi systemd[1]: Starting virtualhere.service - VirtualHere Server...
Apr 26 20:32:47 raspberrypi vhusbdarm64[2565]: >>> Starting VirtualHere USB Server v4.6.4 (Built: Apr  5 2024, 10:14:46)<<<
Apr 26 20:32:47 raspberrypi vhusbdarm64[2565]: Using configuration /usr/local/etc/virtualhere/config.ini
Apr 26 20:32:47 raspberrypi systemd[1]: Started virtualhere.service - VirtualHere Server.
Apr 26 20:32:47 raspberrypi vhusbdarm64[2566]: Server licensed to=unlicensed max_devices=1
Apr 26 20:32:47 raspberrypi vhusbdarm64[2566]: Using large URB's
Apr 26 20:32:47 raspberrypi vhusbdarm64[2566]: Listening on all network interfaces at TCP port 7575
Apr 26 20:33:08 raspberrypi vhusbdarm64[2566]: 192.168.0.165 connected as connection 1 (Standard TCP)
after trying to stop and start and kill PID manually

pi@raspberrypi:~ $ sudo systemctl status virtualhere
● virtualhere.service - VirtualHere Server
    Loaded: loaded (/etc/systemd/system/virtualhere.service; enabled; preset: enabled)
    Active: deactivating (final-sigterm) (Result: timeout) since Fri 2024-04-26 20:52:04 CEST; 4min 15s ago
   Process: 2781 ExecStart=/usr/local/sbin/vhusbdarm64 -b -c /usr/local/etc/virtualhere/config.ini (code=exited, status=0/SUCCESS)
     Tasks: 3 (limit: 4444)
       CPU: 52ms
    CGroup: /system.slice/virtualhere.service
            ├─ 875 "[vhusbdarm64]"
            └─2566 /usr/local/sbin/vhusbdarm64 -b -c /usr/local/etc/virtualhere/config.ini

Apr 26 20:50:14 raspberrypi vhusbdarm64[2782]: Server licensed to=unlicensed max_devices=1
Apr 26 20:50:14 raspberrypi vhusbdarm64[2782]: Using large URB's
Apr 26 20:50:14 raspberrypi vhusbdarm64[2782]: Error starting server
Apr 26 20:50:15 raspberrypi vhusbdarm64[2782]: >>> Shutdown <<<
Apr 26 20:52:04 raspberrypi systemd[1]: Stopping virtualhere.service - VirtualHere Server...
Apr 26 20:53:34 raspberrypi systemd[1]: virtualhere.service: State 'stop-sigterm' timed out. Killing.
Apr 26 20:53:34 raspberrypi systemd[1]: virtualhere.service: Killing process 2566 (vhusbdarm64) with signal SIGKILL.
Apr 26 20:53:34 raspberrypi systemd[1]: virtualhere.service: Killing process 875 (vhusbdarm64) with signal SIGKILL.
Apr 26 20:53:34 raspberrypi systemd[1]: virtualhere.service: Killing process 880 (vhusbdarm64) with signal SIGKILL.
Apr 26 20:55:04 raspberrypi systemd[1]: virtualhere.service: Processes still around after SIGKILL. Ignoring.

 

#2

I think you should format the sd card and reinstall raspberry OS and it does look like its running strangely and there might be some sd card corruption