-
Notifications
You must be signed in to change notification settings - Fork 228
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
Command parsing error when using heroku run with exit code flag -x #1624
Comments
Unable to reproduce this. Can you upgrade the CLI and try running the command on another app as well to see if we can't isolate the issue? |
Have upgraded the CLI, and tried on linux:
On a different app, it still give the same Can you share an example command of it working, to make sure I've got the syntax right? |
I've just tried running in Gitlab CI too:
|
The bug appears to be only for heroku apps running docker containers. When I set up a normal app without using containers, it runs fine. I think the command parsing error must be on the heroku platform API side of things? |
This looks related to #930, which has more information on the problem. I'm also seeing this "parsing error" because my containers don't use a shell as the entry point. |
Actually this doesn't seem to be related to a particular entry point. I can't really manage to make it work at all with containers. |
Thanks for looking into it. It's quite an issue for us, as we run database migrations from Gitlab CI after deploying and if they fail we never know about it because all the jobs succeed because they are not receiving the exit code from the heroku dyno. Anyone on the heroku team able to look into it? Thanks. |
me too, when deploying using containers |
This is an issue for me too! |
yes same issue here deploying on containers |
We are seeing this same issue as described. App is running as a container, it doesn't matter which command is run. |
I have the same issue using the
Error:
|
This project is for the Heroku CLI only. Use https://help.heroku.com for anything that is not specific to the CLI itself.
Do you want to request a feature or report a bug?
Bug report
What is the current behavior?
When I run
heroku run
with the-x
flag, it gives acommand parsing error
irrespective of the command that is used or the app that it is being run on.Example from my terminal:
What is the expected behavior?
It should return a zero exit code for the above command, and return the exit code of the specified command when I'm running arbitrary commands.
Heroku version:
OS version:
Mac OSX 10.15.5
No HTTP proxies or firewalls.
The text was updated successfully, but these errors were encountered: