Unable to access Ruby on Rails terminal: ssh shell: wait: remote command exited without exit status or exit signal

I have seen similar posts, however the solutions to those posts did not work for me. My problem is I am trying to access the terminal for my app, but I get an error message when I run the command.

Error message: Error: ssh shell: wait: remote command exited without exit status or exit signal

Commands I have tried (all yield the same error):
fly ssh console -C “app/bin/rails console”
fly ssh console -C “rails/bin/rails console”
fly ssh console --pty -C “/rails/bin/rails console”
fly ssh console --pty -C “/app/bin/rails console”

Just deployed yesterday for the first time so the docker file is post Jan 2023.

Thanks!

Two more commands to try:

fly console

This will run console_command as defined in your fly.toml in a new (ephemeral) machine.

And:

fly ssh console

This will open a shell window in an existing (deployed) machine.

If either of these work, we can debug why you are seeing remote command exited without exit status or exit signal.

Also, does your fly.toml contain a [[mounts]] statement (common when using sqlite3, less common otherwise)?

Fly console did the trick. Thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.