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

Goose UI not opening on MacOs unless using sudo #1498

Open
stujam opened this issue Mar 4, 2025 · 2 comments
Open

Goose UI not opening on MacOs unless using sudo #1498

stujam opened this issue Mar 4, 2025 · 2 comments

Comments

@stujam
Copy link

stujam commented Mar 4, 2025

The MacOs app does not generate a window, unless run as sudo.
M1 Sequoia 15.3.1 (24D70)

Replicate:

Download goose from https://block.github.io/goose/docs/quickstart/

Install into App directory

Start the app, accept the external app pop-up

No windows appear, but the menu bar appears at the top of the screen.
Goose shows as running in the Activity Monitor.

.config and .state have the correct permissions

Using this ...

/Applications/Goose.app/Contents/MacOS/Goose

Produced ....

(base) Stuarts-MBP4:~ Stuart$ /Applications/Goose.app/Contents/MacOS/Goose
15:26:45.609 › LOADING ENV
bash: no job control in this shell

Saving session...
...saving history...
...completed.
15:26:46.092 › Setting HOSTNAME
15:26:46.092 › Setting TERM_PROGRAM
15:26:46.093 › Setting SHELL
15:26:46.093 › Setting TERM
15:26:46.093 › Setting mongoCACertBase64
15:26:46.093 › Setting TMPDIR
15:26:46.094 › Setting CONDA_SHLVL
15:26:46.094 › Setting CONDA_PROMPT_MODIFIER
15:26:46.094 › Setting TERM_PROGRAM_VERSION
15:26:46.095 › Setting SOFTHSM2_CONF
15:26:46.095 › Setting ORIGINAL_XDG_CURRENT_DESKTOP
15:26:46.095 › Setting SBT_HOME
15:26:46.095 › Setting TERM_SESSION_ID
15:26:46.095 › Setting SDKMAN_PLATFORM
15:26:46.095 › Setting bluemixUserId
15:26:46.095 › Setting forceHTTPS
15:26:46.095 › Setting mongoUser
15:26:46.096 › Setting USER
15:26:46.096 › Setting mongoPassword
15:26:46.096 › Setting SDKMAN_CANDIDATES_API
15:26:46.096 › Setting CONDA_EXE
15:26:46.096 › Setting integrationsTokenSecret
15:26:46.096 › Setting acquirer
15:26:46.096 › Setting mongoDBAddress
15:26:46.097 › Setting SSH_AUTH_SOCK
15:26:46.097 › Setting __CF_USER_TEXT_ENCODING
15:26:46.097 › Setting DEBUG_OTHER2
15:26:46.098 › Setting credoraxKey
15:26:46.098 › Setting loadbalancer_vip
15:26:46.098 › Setting _CE_CONDA
15:26:46.098 › Setting debug
15:26:46.099 › Setting PATH
15:26:46.099 › Setting AESKey
15:26:46.099 › Setting LaunchInstanceID
15:26:46.099 › Setting CONDA_PREFIX
15:26:46.099 › Setting __CFBundleIdentifier
15:26:46.099 › Setting PortalCommit
15:26:46.100 › Setting uuid
15:26:46.100 › Setting Q_DEBUG
15:26:46.100 › Setting PWD
15:26:46.100 › Setting credoraxMerchantID
15:26:46.100 › Setting LANG
15:26:46.100 › Setting bluemixPassword
15:26:46.100 › Setting bluemixObjectStorage
15:26:46.100 › Setting ServerVersion
15:26:46.100 › Setting XPC_FLAGS
15:26:46.100 › Setting NODE_ENV
15:26:46.101 › Setting cookieSecret
15:26:46.101 › Setting bluemixProjectId
15:26:46.101 › Setting webAddress
15:26:46.101 › Setting _CE_M
15:26:46.101 › Setting tracesmartIduAmlUrl
15:26:46.101 › Setting XPC_SERVICE_NAME
15:26:46.101 › Setting SHLVL
15:26:46.101 › Setting HOME
15:26:46.101 › Setting GOROOT
15:26:46.102 › Setting DEBUG_OTHER
15:26:46.102 › Setting worldpayClientKey
15:26:46.102 › Setting idealPostcodesKey
15:26:46.102 › Setting CONDA_PYTHON_EXE
15:26:46.102 › Setting tracesmartIduAmlPassword
15:26:46.102 › Setting LOGNAME
15:26:46.102 › Setting SDKMAN_DIR
15:26:46.102 › Setting mongoUseSSL
15:26:46.102 › Setting ServerCommit
15:26:46.102 › Setting CONDA_DEFAULT_ENV
15:26:46.103 › Setting GOPATH
15:26:46.103 › Setting tracesmartIduAmlUsername
15:26:46.103 › Setting worldpayServiceKey
15:26:46.103 › Setting SDKMAN_CANDIDATES_DIR
15:26:46.103 › Setting worldpayMerchantID
15:26:46.103 › Setting sgroup_name
15:26:46.103 › Setting DEBUG
15:26:46.103 › Setting SECURITYSESSIONID
15:26:46.103 › Setting _
15:26:46.103 › Successfully loaded zsh environment variables
Unhandled Rejection: Error: Failed to load image from path '/Users/Stuart/src/images/iconTemplate.png'
at tn (/Applications/Goose.app/Contents/Resources/app.asar/.vite/build/main.js:14:4338)
at /Applications/Goose.app/Contents/Resources/app.asar/.vite/build/main.js:14:6364

Making a directory based from where I called it .... ie:

mkdir src
mkdir src/images
pull down iconTemplate.png from the repo and put it into the images directory

And then ....

run /Applications/Goose.app/Contents/MacOS/Goose

And it brings up the window

However if I use the goose by clicking on the app, it still does not work.

Any thoughts ?

@yingjiehe-xyz
Copy link
Collaborator

@stujam have you checked this troubleshooting? https://block.github.io/goose/docs/troubleshooting#macos-permission-issues

@stujam
Copy link
Author

stujam commented Mar 5, 2025

Hi, yes, and the permissions are correct (as I noted above).

Additionally I manually added the app to the privacy/security access to all Files/folders under settings.

Starting it from the UI ie double clicking the icon, the windows fail to appear.

However,

When you use the command line to start the app, the app fails to find the iconTemplate file

By putting that in place (within a localised src/images directory from the root of where the command line is run) the goose.app runs and windows appear successfully.

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

2 participants