running rake task errors

Hi,

I am running a simple rake task but it errors and exits without any reason.

fly ssh console --pty -C '/bin/bash'
Connecting to xxx... complete
root@xxx:/rails# bundle exec rake preferences:create_missing_preferences
Error: ssh shell: wait: remote command exited without exit status or exit signal

I don’t understand why this happens and I don’t know how to run the rake task. I’ve tried many things like fly ssh console --pty -C "bundle exec rake preferences:create_missing_preferences" but it doesn’t seem to work.

Anyone having this issue? What is the matter here? It’s frustrating to not be able to run such a simple command!

How does one connect to rails console? Also doesn’t seem to work! wtf?!!
Is this fly platform thing even works?

fly ssh console -C '/bin/bash'                                              
WARN Allocating a pseudo-terminal since the command provided is a shell. This behavior will change in the future; please use --pty explicitly if this is what you want.
Connecting to xxx... complete
root@xxx:/rails# bin/rails console
Error: ssh shell: wait: remote command exited without exit status or exit signal

OOM.

(Most likely.)

It really is, but Fly has mentioned in the past that it’s hard for them to reliably detect those…

The Rails documentation has a section on mitigations:

https://fly.io/docs/rails/getting-started/dockerfiles/#out-of-memory

Added rails

I see. Thank you, that helped. I scaled the memory and ran the tasks.

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