I get this error.
Job for usbip.service failed because the control process exited with error code. See "systemctl status usbip.service" and "journalctl -xe" for details.
Last login: Sun Mar 24 00:17:19 2019 from 10.0.24.7
flemmingss@Home-Assistant:~$ systemctl status usbip.service
● usbip.service - usbip client
Loaded: loaded (/lib/systemd/system/usbip.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2019-03-24 00:42:29 CET; 18h ago
Process: 1278 ExecStart=/bin/sh -c /usr/lib/linux-tools/$(uname -r)/usbip attach -r 10.0.24.11 -b $(/usr/lib/linux-tools/$(una
Main PID: 1278 (code=exited, status=127)
Mar 24 00:42:29 Home-Assistant systemd[1]: Starting usbip client...
Mar 24 00:42:29 Home-Assistant sh[1278]: /bin/sh: 1: /usr/lib/linux-tools/4.4.0-31-generic/usbip: not found
Mar 24 00:42:29 Home-Assistant sh[1278]: /bin/sh: 1: /usr/lib/linux-tools/4.4.0-31-generic/usbip: not found
Mar 24 00:42:29 Home-Assistant systemd[1]: usbip.service: Main process exited, code=exited, status=127/n/a
Mar 24 00:42:29 Home-Assistant systemd[1]: Failed to start usbip client.
Mar 24 00:42:29 Home-Assistant systemd[1]: usbip.service: Unit entered failed state.
Mar 24 00:42:29 Home-Assistant systemd[1]: usbip.service: Failed with result 'exit-code'.
Is my configuration wrong?
Devices:
Bus 001 Device 011: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC #RFXTRX433E
Bus 001 Device 009: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO) #Deconz
Bus 001 Device 010: ID 0658:0200 Sigma Designs, Inc. #UZB1
/lib/systemd/system/usbipd.service
[Unit]
Description=usbip host daemon
After=network.target
[Service]
Type=forking
ExecStart=/usr/sbin/usbipd -D
ExecStartPost=/bin/sh -c "/usr/sbin/usbip bind --$(/usr/sbin/usbip list -p -l | grep '#usbid=0403:6001#' | cut '-d#' -f1)" #RFXTRX433E
ExecStartPost=/bin/sh -c "/usr/sbin/usbip bind --$(/usr/sbin/usbip list -p -l | grep '#usbid=0403:6015#' | cut '-d#' -f1)" #ConBee
ExecStartPost=/bin/sh -c "/usr/sbin/usbip bind --$(/usr/sbin/usbip list -p -l | grep '#usbid=0658:0200#' | cut '-d#' -f1)" #UZB1
ExecStop=/bin/sh -c "/usr/sbin/usbip unbind --$(/usr/sbin/usbip list -p -l | grep '#usbid=0403:6001#' | cut '-d#' -f1`); killall usbipd" #RFXTRX433E
ExecStop=/bin/sh -c "/usr/sbin/usbip unbind --$(/usr/sbin/usbip list -p -l | grep '#usbid=0403:6015#' | cut '-d#' -f1`); killall usbipd" #ConBee
ExecStop=/bin/sh -c "/usr/sbin/usbip unbind --$(/usr/sbin/usbip list -p -l | grep '#usbid=0658:0200#' | cut '-d#' -f1`); killall usbipd" #UZB1
[Install]
WantedBy=multi-user.target
/lib/systemd/system/usbip.service
[Unit]
Description=usbip client
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sh -c "/usr/lib/linux-tools/$(uname -r)/usbip attach -r 10.0.24.11 -b $(/usr/lib/linux-tools/$(uname -r)/usbip list -r 10.0.24.11 | grep '0403:6001' | cut -d: -f1)" #RFXTRX433E
ExecStart=/bin/sh -c "/usr/lib/linux-tools/$(uname -r)/usbip attach -r 10.0.24.11 -b $(/usr/lib/linux-tools/$(uname -r)/usbip list -r 10.0.24.11 | grep '0403:6015' | cut -d: -f1)" #ConBee
ExecStart=/bin/sh -c "/usr/lib/linux-tools/$(uname -r)/usbip attach -r 10.0.24.11 -b $(/usr/lib/linux-tools/$(uname -r)/usbip list -r 10.0.24.11 | grep '0658:0200' | cut -d: -f1)" #UZB1
ExecStop=/bin/sh -c "/usr/lib/linux-tools/$(uname -r)/usbip detach --port=$(/usr/lib/linux-tools/$(uname -r)/usbip port | grep '<Port in Use>' | sed -E 's/^Port ([0-9][0-9]).*/\\1/')"
[Install]
WantedBy=multi-user.target
btw, 10.0.24.4 is HA, 10.0.24.11 is the Pi
The service from pie, looks god?
root@raspberrypi:~# sudo systemctl status usbipd.service
● usbipd.service - usbip host daemon
Loaded: loaded (/lib/systemd/system/usbipd.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-03-24 00:19:24 CET; 19h ago
Process: 517 ExecStartPost=/bin/sh -c /usr/sbin/usbip bind --$(/usr/sbin/usbip list -p -l | grep '#usbid=0658:0200#' | cut '-d
Process: 510 ExecStartPost=/bin/sh -c /usr/sbin/usbip bind --$(/usr/sbin/usbip list -p -l | grep '#usbid=0403:6015#' | cut '-d
Process: 495 ExecStartPost=/bin/sh -c /usr/sbin/usbip bind --$(/usr/sbin/usbip list -p -l | grep '#usbid=0403:6001#' | cut '-d
Process: 487 ExecStart=/usr/sbin/usbipd -D (code=exited, status=0/SUCCESS)
Main PID: 493 (usbipd)
CGroup: /system.slice/usbipd.service
└─493 /usr/sbin/usbipd -D
Mar 24 00:19:22 raspberrypi systemd[1]: Starting usbip host daemon...
Mar 24 00:19:22 raspberrypi usbipd[493]: usbipd: info: starting usbipd (usbip-utils 2.0)
Mar 24 00:19:22 raspberrypi usbipd[493]: usbipd: info: listening on 0.0.0.0:3240
Mar 24 00:19:22 raspberrypi usbipd[493]: usbipd: info: listening on :::3240
Mar 24 00:19:22 raspberrypi sh[495]: usbip: info: bind device on busid 1-1.4: complete
Mar 24 00:19:23 raspberrypi sh[510]: usbip: info: bind device on busid 1-1.3: complete
Mar 24 00:19:24 raspberrypi sh[517]: usbip: info: bind device on busid 1-1.2: complete
Mar 24 00:19:24 raspberrypi systemd[1]: Started usbip host daemon.