Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac OS Mojave bridge not uninstalled successfully #128

Open
vladimirvolek opened this issue Nov 30, 2018 · 4 comments
Open

Mac OS Mojave bridge not uninstalled successfully #128

vladimirvolek opened this issue Nov 30, 2018 · 4 comments

Comments

@vladimirvolek
Copy link
Contributor

After I uninstall the bridge I still can see bridge installed in https://wallet.trezor.io/#/bridge.
PC restart will fix this.

@bosomt
Copy link
Contributor

bosomt commented Apr 22, 2020

@vladimirvolek can you please confirm that this bug is still present ? :)

@drptbl
Copy link

drptbl commented Sep 27, 2020

@bosomt Still present on Catalina. Had to kill tzd manually after uninstall (hmm, it sounds like uninstall doesn't clean up everything properly?) before it started to show as not installed (or restart macOS probably).

@darwin
Copy link

darwin commented Oct 24, 2020

Today I uninstalled v2.0.27 using the pkg. Uninstallation failed as reported in issue #186.

And becasue I was developing something else and was looking at tail -f /var/log/system.log I also noticed a spam of

Oct 24 23:02:00 bismarck15 com.apple.xpc.launchd[1] (com.bitcointrezor.trezorBridge.trezord[54052]): Service exited with abnormal code: 127
Oct 24 23:02:00 bismarck15 com.apple.xpc.launchd[1] (com.bitcointrezor.trezorBridge.trezord): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Oct 24 23:02:10 bismarck15 com.apple.xpc.launchd[1] (com.bitcointrezor.trezorBridge.trezord[54158]): Service exited with abnormal code: 127
Oct 24 23:02:10 bismarck15 com.apple.xpc.launchd[1] (com.bitcointrezor.trezorBridge.trezord): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Oct 24 23:02:20 bismarck15 com.apple.xpc.launchd[1] (com.bitcointrezor.trezorBridge.trezord[54232]): Service exited with abnormal code: 127
Oct 24 23:02:20 bismarck15 com.apple.xpc.launchd[1] (com.bitcointrezor.trezorBridge.trezord): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Oct 24 23:02:30 bismarck15 com.apple.xpc.launchd[1] (com.bitcointrezor.trezorBridge.trezord[54366]): Service exited with abnormal code: 127
Oct 24 23:02:30 bismarck15 com.apple.xpc.launchd[1] (com.bitcointrezor.trezorBridge.trezord): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Oct 24 23:02:40 bismarck15 com.apple.xpc.launchd[1] (com.bitcointrezor.trezorBridge.trezord[54412]): Service exited with abnormal code: 127
Oct 24 23:02:40 bismarck15 com.apple.xpc.launchd[1] (com.bitcointrezor.trezorBridge.trezord): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.

To me it looks like unistallation broke com.bitcointrezor.trezorBridge.trezord launchd service.
I think it removed the files but didn't stop/unload/unregister the service first. And because the service had KeepAlive flag set, the system was continuously trying to relaunch it.

@darwin
Copy link

darwin commented Oct 24, 2020

btw. I'm unable to reproduce it again with clean install and (broken) uninstall.

I looked at the uninstaller script and it does unload:
https://github.com/trezor/trezord-go/blob/master/release/macos/flat-uninstall/uninstall.pkg/scripts/postinstall#L14

Maybe unload is not enough in some cases:
https://apple.stackexchange.com/a/308421/8730

Maybe use launchctl remove instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants