Rake task dying in the middle of execution
I’ve deployed a Rails app to an Ubuntu droplet w/ dokku (installed manually). My app database entries are generated from a couple of .csv files via a rake task. When I run any of these tasks, they end up dying with the following (cryptic) output:
/tmp/bashenv.826794096: line 73: 128 Killed setuidgid “$unprivileged_user” “$@”
Sometimes the task dies immediately, sometimes it will run for a few iterations until it dies before finishing. I don’t have this issue locally, so I think it might have something to do with Digital Ocean. Perhaps my droplet is running out of memory? Not sure, as the output above isn’t super meaningful to me.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×