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

Failed to determine if /Users/jan/.bash_profile contains extended attributes #7394

Closed
jandubois opened this issue Aug 29, 2024 · 7 comments · Fixed by #7397
Closed

Failed to determine if /Users/jan/.bash_profile contains extended attributes #7394

jandubois opened this issue Aug 29, 2024 · 7 comments · Fixed by #7397
Assignees
Labels
kind/bug Something isn't working platform/macos priority/1 Work should be fixed for next release regression Functionality was working in a previous release and is now broken
Milestone

Comments

@jandubois
Copy link
Member

This error happens on at least macOS Sonoma and Sequoia, and only in the signed and notarized release versions; not in regular CI builds.

The problem seems to be that fs-xattr contains native code compiled by node-gyp that is packaged into app.asar and therefore not codesigned as all the other bundled resources:

2024-08-29T21:29:52.193Z: Failed to import fs-xattr, cannot check for extended attributes on /Users/jan/.profile: Error: node-loader:
Error: dlopen(/var/folders/wm/pq6w7kf54215fxz392ff3rxr0000gn/T/.io.rancherdesktop.app.oxJtif, 0x0001): tried: '/var/folders/wm/pq6w7kf54215fxz392ff3rxr0000gn/T/.io.rancherdesktop.app.oxJtif' (code signature in <C0ADF24A-8E18-3804-B6A3-006BA059B42C> '/>
    at 5063 (/Applications/Rancher Desktop.app/Contents/Resources/app.asar/dist/app/12.js:1:671)
    at s (/Applications/Rancher Desktop.app/Contents/Resources/app.asar/dist/app/background.js:29:54148)
    at 9012 (/Applications/Rancher Desktop.app/Contents/Resources/app.asar/dist/app/12.js:1:85)
    at s (/Applications/Rancher Desktop.app/Contents/Resources/app.asar/dist/app/background.js:29:54148)
    at s.t (/Applications/Rancher Desktop.app/Contents/Resources/app.asar/dist/app/background.js:29:54365)
    at async /Applications/Rancher Desktop.app/Contents/Resources/app.asar/dist/app/background.js:2:162939
    at async g (/Applications/Rancher Desktop.app/Contents/Resources/app.asar/dist/app/background.js:2:162897)
    at async Bn.manageLinesInFile (/Applications/Rancher Desktop.app/Contents/Resources/app.asar/dist/app/background.js:41:61535)
    at async /Applications/Rancher Desktop.app/Contents/Resources/app.asar/dist/app/background.js:41:62173
2024-08-29T21:29:52.194Z: Error: Failed to determine if `/Users/jan/.profile` contains extended attributes

Adding Unpacked Files to ASAR archives explains how to keep *.node files unpacked, which seems better anyways, as they otherwise need to be written to $TMPDIR before they can be required.

Let's try this and make sure all *.node files are also getting codesigned by yarn sign ....

@jandubois jandubois added kind/bug Something isn't working platform/macos regression Functionality was working in a previous release and is now broken priority/1 Work should be fixed for next release labels Aug 29, 2024
@jandubois jandubois added this to the 1.16 milestone Aug 29, 2024
@klonos
Copy link

klonos commented Sep 15, 2024

Sorry to be posting on a closed post, but this is a blocker for me. I see that there's a merged PR for this, however I'm unable to install RD on my freshly-installed MacBook provided by my employer. Is there any workaround to get it running while waiting for a new RD release that includes the fix? ...and also, any ETA on a new release?

Thanks in advance 🙏🏼

@jandubois
Copy link
Member Author

Is there any workaround

I think just selecting "Manual" path management and adding $HOME/.rd/bin to the PATH yourself in your shell profile should work around this issue.

any ETA on a new release?

With luck next Thursday, or otherwise the following week.

@klonos
Copy link

klonos commented Sep 16, 2024

Thanks for the very prompt reply @jandubois 🙏🏼

@nithaannarajan
Copy link

nithaannarajan commented Sep 16, 2024

Even after adding the path manually - I'm still getting the error.

@seymur-asadov
Copy link

For me, after switching to manual, and adding$HOME/.rd/bin to the PATH and restarting MacOS Sonoma worked.

@klonos
Copy link

klonos commented Sep 20, 2024

FTR: I just upgraded to 1.16.0 and things were fixed for me.

@jandubois
Copy link
Member Author

@klonos Thank you for confirming!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working platform/macos priority/1 Work should be fixed for next release regression Functionality was working in a previous release and is now broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants