bitbox-bridge icon indicating copy to clipboard operation
bitbox-bridge copied to clipboard

Issue launching bitbox-bridge on windows 10 - 64bit

Open TheAnt1dot3 opened this issue 4 years ago • 4 comments

Hi,

i'm doing a new install (v1.1.0) and can't launch the service. during install (running as administrator) i get an error :

'Service BitBoxBridge could not be installed. Verify that you have sufficient privileges to install system services'

Error in the install log:

[2B1C:36F0][2021-03-05T19:01:12]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{fb6a5661-d704-4890-9932-55a7fce814ea}, options: 0x7, disable resume: No
[2B1C:36F0][2021-03-05T19:01:12]i000: Caching bundle from: 'C:\Users\stef_\AppData\Local\Temp\{06DB82DC-8C16-4EA9-8BA3-6F41B76B72D9}\.be\BitBoxBridge-1.1.0-Win64-installer.exe' to: 'C:\ProgramData\Package Cache\{fb6a5661-d704-4890-9932-55a7fce814ea}\BitBoxBridge-1.1.0-Win64-installer.exe'
[2B1C:36F0][2021-03-05T19:01:12]i320: Registering bundle dependency provider: {fb6a5661-d704-4890-9932-55a7fce814ea}, version: 1.1.0.0
[2B1C:36F0][2021-03-05T19:01:12]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{fb6a5661-d704-4890-9932-55a7fce814ea}, resume: Active, restart initiated: No, disable resume: No
[2B1C:08E4][2021-03-05T19:01:12]i305: Verified acquired payload: BridgePackage at path: C:\ProgramData\Package Cache\.unverified\BridgePackage, moving to: C:\ProgramData\Package Cache\{F7ED5F60-F030-4214-85B1-FFF5132A3E47}v1.1.0\BitBoxBridge-1.1.0-win64-installer.msi.
[2B1C:36F0][2021-03-05T19:01:12]i323: Registering package dependency provider: {F7ED5F60-F030-4214-85B1-FFF5132A3E47}, version: 1.1.0, package: BridgePackage
[2B1C:36F0][2021-03-05T19:01:12]i301: Applying execute package: BridgePackage, action: Install, path: C:\ProgramData\Package Cache\{F7ED5F60-F030-4214-85B1-FFF5132A3E47}v1.1.0\BitBoxBridge-1.1.0-win64-installer.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7"'
[2B1C:36F0][2021-03-05T19:02:14]e000: Error 0x80070643: Failed to install MSI package.
[2B1C:36F0][2021-03-05T19:02:14]e000: Error 0x80070643: Failed to execute MSI package.
[2B58:3CEC][2021-03-05T19:02:14]e000: Error 0x80070643: Failed to configure per-machine MSI package.
[2B58:3CEC][2021-03-05T19:02:14]i319: Applied execute package: BridgePackage, result: 0x80070643, restart: None
[2B58:3CEC][2021-03-05T19:02:14]e000: Error 0x80070643: Failed to execute MSI package.

when trying to manually run the process i get below output:

C:\Program Files\BitBoxBridge>bitbox-bridge.exe
Set RUST_LOG=<filter> to enable logging. Example RUST_LOG=debug
Error: FromWideCharError { wide_char: 56576 }

I've set the RUST_LOG environment variable but i don't see any logs being generated. Please advise what could be wrong ?

thanks

TheAnt1dot3 avatar Mar 05 '21 17:03 TheAnt1dot3

@NickeZ any idea?

benma avatar Mar 06 '21 10:03 benma

It seems that error (0x80070643) can come from many sources, did you try to reinstall .NET framework for example?

https://www.lifewire.com/fix-error-0x80070643-4691724

It seems to be a problem with your machine not being able to install MSI packages and not only related to the bitbox bridge.

I'll check that it works on my windows VM after applying the latest windows patches.

NickeZ avatar Mar 06 '21 20:03 NickeZ

The installer works for me, even if I have a fully updated windows 10 machine.

~The bitbox bridge cannot be run as a stand alone application, currently it has to be run as a service. But the error message you get is not the same as what I get~:

C:\Program Files\BitBoxBridge>.\bitbox-bridge.exe
Set RUST_LOG=<filter> to enable logging. Example RUST_LOG=debug
listening on http://127.0.0.1:8178
thread '[2021-03-06T21:49:25Z ERROR bitbox_bridge::daemon] Failed to register as started service: Winapi(Os { code: 1063, kind: Other, message: "The service process could not connect to the service controller." })
main' panicked at 'error binding to 127.0.0.1:8178: error creating server listener: Only one usage of each socket address (protocol/network address/port) is normally permitted. (os error 10048)', /tmp/cargo/registry/src/github.com-1ecc6299db9ec823/warp-0.2.1/src/server.rs:211:27
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

If I stop the service I can run it as a standalone application. A successful run looks like this:

C:\Users\niklas\projects\shift\bitbox-bridge>.\target\debug\bitbox-bridge.exe
Set RUST_LOG=<filter> to enable logging. Example RUST_LOG=debug
listening on http://127.0.0.1:8178
[2021-03-06T22:27:55Z ERROR bitbox_bridge::daemon] Failed to register as started service: Winapi(Os { code: 1063, kind: Other, message: "The service process could not connect to the service controller." })
[2021-03-06T22:27:55Z INFO  warp::server] listening on http://127.0.0.1:8178
[2021-03-06T22:27:55Z INFO  bitbox_bridge::usb] Notified!

Regarding "Error: FromWideCharError { wide_char: 56576 }", can you please disconnect all USB devices before launching the bridge?

NickeZ avatar Mar 06 '21 21:03 NickeZ

hmh strange, i'll boot up a vm with a clean windows to see if that works. i do have multiple .NET versions installed on this machine, so maybe this is conflicting somehow. As for the USB Devices, there isn't anything connected during install or testing.

Thanks for thinking along.

TheAnt1dot3 avatar Mar 08 '21 19:03 TheAnt1dot3