bulwarkid / virtual-fido

A Virtual FIDO2 USB Device
MIT License
1.22k stars 56 forks source link

non-existent bus id: 2-2 #17

Open Yalye opened 1 year ago

Yalye commented 1 year ago

When I ran command go run .\cmd\demo start on Windows 10, I got the following error: usbip: error: non-existent bus id: 2-2 Error: exit status 3 Does it because the virtual usb device didn't created? how can I find why?

Yalye commented 1 year ago

after installing usbip credentials, problem solved.

jockaayush commented 1 year ago

@cmdli @Yalye Can you explain how was the issue resolved? Do i have to install https://github.com/cezanne/usbip-win this?

cmdli commented 1 year ago

@jockaayush Are you experiencing this same issue? I don't believe I took a look at this since it was resolved so quickly. Could you try running ./cmd/demo/usbip/bin/usbip.exe install -u? If that fixes the issue, I may be able to either automate that step or at least add it to the documentation.

jockaayush commented 1 year ago

usbip: error: cannot install vhci(ude) driver package It gives the above error

But i tried installing https://github.com/cezanne/usbip-win/releases/tag/v0.3.5 and this installed successfully

image

But gives below error if i try to run go run ./cmd/demo start after installing

usbip: error: vhci driver is not loaded panic: ERROR: Could not read data - read tcp 127.0.0.1:3240->127.0.0.1:8273: wsarecv: An existing connection was forcibly closed by the remote host.

This error goes away once i run .\cmd\demo\usbip\bin\usbipd.exe -d

But now this error

[LOG] Log Level Set: 2
usbip: error: non-existent bus id: 2-2
Error: exit status 3
exit status 0xc000013a

On the other terminal(which is running .\cmd\demo\usbip\bin\usbipd.exe -d)

usbipd: debug: usbipd_accept.c:65:[do_accept] connection from 127.0.0.1:9031
usbipd: debug: usbipd_accept.c:29:[recv_pdu] received request: 0x8003 - attach device
usbipd: debug: usbip_setupdi.c:324:[get_devno_from_busid] invalid busid: 2-2
usbipd: debug: usbipd_import.c:81:[recv_request_import] invalid bus id: 2-2
usbipd: debug: usbipd_accept.c:41:[recv_pdu] request 0x8003: done: err: -1

Trying to attach via Ubuntu also gives same error image

Are these errors related to an unknown Device ID which in not present in usb.ids

@cmdli were you able to look at the issue?

agreenbhm commented 1 year ago

Having the same issue here as well, exactly as described here https://github.com/bulwarkid/virtual-fido/issues/17#issuecomment-1558619869