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

Error messages shown when using heroku run on ARM mac #2471

Open
fschwahn opened this issue Sep 5, 2023 · 10 comments
Open

Error messages shown when using heroku run on ARM mac #2471

fschwahn opened this issue Sep 5, 2023 · 10 comments

Comments

@fschwahn
Copy link

fschwahn commented Sep 5, 2023

What is the current behavior?

Use heroku run <command> on a Macbook with ARM processor (M1 / M2). After the command has run, an error message will be shown. I assume this only happens when Rosetta is not installed.

Example:

> heroku run bash -a app-name
Running bash on ⬢ app-name... up, run.123 (Standard-1X)
    Error: spawn Unknown system error -86
    Code: Unknown system error -86
~ $

NOTE: I can interact with bash normally, so this does not prevent using heroku run.

What is the expected behavior?

This should not produce any warnings / error messages.

  • Heroku: heroku/8.4.2 darwin-arm64 node-v16.19.0
  • macOS 13.5.1 (22G90)
@ryandagg
Copy link
Contributor

Thank you for the report.
Fixed in v8.4.3.

@fschwahn
Copy link
Author

@ryandagg Thanks for looking into this, but this error still happens after upgrading:

➜  ~ heroku -v
heroku/8.4.3 darwin-arm64 node-v16.19.0
➜  ~ heroku run bash -a app-name
Running bash on ⬢ app-name... up, run.5134 (Standard-1X)
    Error: spawn Unknown system error -86
    Code: Unknown system error -86
~ $ 

@ryandagg ryandagg reopened this Sep 21, 2023
@ryandagg
Copy link
Contributor

ryandagg commented Sep 21, 2023

@fschwahn Thank you for letting us know. I use an M1 and do not have this issue. Are you seeing this on all apps or just one/some? I do have Rosetta installed, but I am not running this process with it to the best of my knowledge.

% heroku -v
heroku/8.4.3 darwin-arm64 node-v16.19.0
% heroku run bash -a heroku-cli-test-staging
Running bash on ⬢ heroku-cli-test-staging... up, run.5182 (Private-M)
~ $ echo hi fschwahn
hi fschwahn
~ $ exit
exit

@fschwahn
Copy link
Author

I have checked again, and it seems to happen unreliably. I'm confused - I just ran the following:

➜  ~ heroku run bash -a app-foo                         
Running bash on ⬢ app-foo... up, run.1515 (Standard-1X)
~ $ exit
exit
➜  ~ heroku run bash -a app-bar   
Running bash on ⬢ app-bar... up, run.9232 (Standard-1X)
    Error: spawn Unknown system error -86
    Code: Unknown system error -86
~ $ exit
exit
➜  ~ heroku run bash -a app-baz      
Running bash on ⬢ app-baz... up, run.7420 (Standard-1X)
~ $ exit
exit
➜  ~ heroku run bash -a app-bar
Running bash on ⬢ app-bar... up, run.4558 (Standard-1X)
~ $ 

On the first invocation of app-bar it showed the error, but on the second invocation it is gone.

@k80bowman
Copy link
Contributor

@fschwahn just checking in on this issue. Is this problem still occurring?

@fschwahn
Copy link
Author

yes, still happening

@k80bowman
Copy link
Contributor

Thank you. We will look into it further.

@k80bowman
Copy link
Contributor

@fschwahn could you please share which versions of the CLI, node, and yarn you are using?

@fschwahn
Copy link
Author

I'm not using yarn, heroku is installed from homebrew.

➜  ~ heroku -v
heroku/8.10.0 darwin-arm64 node-v16.20.2

@k80bowman
Copy link
Contributor

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

No branches or pull requests

4 participants