How can I kill app from the shell?


(Jeff Willette) #1

I have a minimal EC2 instance running the app and I did a rebuild which I accidentally disconnected from and after that it is nearly impossible to connect to with ssh.

If I restart, it seems to restart the process and it is maxing out my swap. when I try to connect to ssh then I have to wait a few minutes for it to connect and I am lucky if I can get top to work or get any commands off. I have tried doing sudo pkill ruby but it seems to just spawn another process. I have also tried navigating to /var/discourse and running ./launcher stop app and that just hangs and never goes anywhere.

IDK where to go from here really, how would you recommend stopping it so I can recover my instance without destroying it?