nats-nui / nui

Free and Open Source NATS management GUI.
https://natsnui.app
The Unlicense
159 stars 16 forks source link

Installation on macOS Sonoma 14.15 #16

Open albertjimenez opened 3 months ago

albertjimenez commented 3 months ago

Hi there, I hope it is not a dumb question, but how I can run the GUI after installing it through the PKG file? I don't see it in my terminal or the Application list. It would be good to have it on the README.md if possible. PS: Docker works like a charm, in case I need it, how do I uninstall the PKG? Thanks!

mbn18 commented 3 months ago

Same issue, cant find the app nor uninstall it. Sonoma 14.5

albertjimenez commented 3 months ago

Got it in this path

/Users/runner/work/nui/nui/build/bin/nui-app.app

but as soon as I open it, it closes, on an Intel CPU

pricelessrabbit commented 3 months ago

@albertjimenez which OS version are you using? Are there inside ~/Library/Application Support/nui-app some logs? @mbn18 could you find the app in the same path of @albertjimenez and ty lauch it? NUI is using wails for cross platform build, i'm going to investigate this issue also with the wails team after collecting some feedbacks.

albertjimenez commented 3 months ago

@pricelessrabbit macOS Sonoma 14.15 on intel CPU, the path you provided yielded the logs, although I am going to attach them, I know the root cause of the issue. I was launching it whilst Docker was running the NUI web server hence why the app did not launch successfully. Now it is working but I had to move the app from /Users/runner/work/nui/nui/build/bin/nui-app.app to the Application folder otherwise it would not be recognised so I still believe there is an issue where the app does not get install on the proper location in Mac. I have tried to look into some logs but since it is a pkg and not a dmg I could not retrieve sys logs or scripts executed to debug the installation process. I hope it helps! Thanks!

{"time":"2024-08-04T00:34:38.808545+02:00","level":"INFO","msg":"Starting nui app..."}
{"time":"2024-08-04T00:34:38.809285+02:00","level":"INFO","msg":"Version: v0.4.2"}
{"time":"2024-08-04T00:34:38.809338+02:00","level":"INFO","msg":"database path: /Users/albertsendrosjimenez/Library/Application Support/nui-app/databases/nui"}
{"time":"2024-08-04T00:34:38.906383+02:00","level":"ERROR","msg":"fatal error setting up app webserver: failed to listen: listen tcp4 :31311: bind: address already in use"}
{"time":"2024-08-04T00:34:56.709251+02:00","level":"INFO","msg":"Starting nui app..."}
{"time":"2024-08-04T00:34:56.70983+02:00","level":"INFO","msg":"Version: v0.4.2"}
{"time":"2024-08-04T00:34:56.710274+02:00","level":"INFO","msg":"database path: /Users/albertsendrosjimenez/Library/Application Support/nui-app/databases/nui"}
{"time":"2024-08-04T00:34:56.742265+02:00","level":"ERROR","msg":"fatal error setting up app webserver: failed to listen: listen tcp4 :31311: bind: address already in use"}
{"time":"2024-08-04T00:35:23.242393+02:00","level":"INFO","msg":"Starting nui app..."}
{"time":"2024-08-04T00:35:23.242904+02:00","level":"INFO","msg":"Version: v0.4.2"}
{"time":"2024-08-04T00:35:23.242932+02:00","level":"INFO","msg":"database path: /Users/albertsendrosjimenez/Library/Application Support/nui-app/databases/nui"}
{"time":"2024-08-04T00:35:23.278873+02:00","level":"ERROR","msg":"fatal error setting up app webserver: failed to listen: listen tcp4 :31311: bind: address already in use"}
{"time":"2024-08-04T00:35:33.867574+02:00","level":"INFO","msg":"Starting nui app..."}
{"time":"2024-08-04T00:35:33.86907+02:00","level":"INFO","msg":"Version: v0.4.2"}
{"time":"2024-08-04T00:35:33.869111+02:00","level":"INFO","msg":"database path: /Users/albertsendrosjimenez/Library/Application Support/nui-app/databases/nui"}
{"time":"2024-08-04T00:35:33.904304+02:00","level":"ERROR","msg":"fatal error setting up app webserver: failed to listen: listen tcp4 :31311: bind: address already in use"}
pricelessrabbit commented 2 months ago

Talked to the wails community and they manage to reproduce the issue: Apple with 14.5 quarantine the application due to the fact that there's no signing. Simple workaround to make it working and install in right directory: right click -> open with installer

albertjimenez commented 2 months ago

excellent! top notch work! I've reinstalled using the right click and now it did work, thanks a million, not closing the issue since some other folks had the same issue and it would be good to wait on them but I leave it up to you @pricelessrabbit

mawisome commented 3 weeks ago

I did the rightclick install but the app endend up in /Users/runner/work/nui/nui/build/bin/nui-app.app as @albertjimenez mentioned earlier. But at least I can start it from there. Haven't tried to copy it to my users home dir, yet.