Skip to content
Advertisement

EC2 ssh broken pipe terminates running process

I’am using a EC2 instance to run a large job that I estimate to take approx 24 hours to complete. I get the same issue described here ssh broken pipe ec2

I followed the suggestion/solutions in the above post and in my ssh session shell I launched my python program by the following command:

JavaScript

Once I did this the connection remained intact longer than if I didn’t use the nohup but it eventually fails with broken pipe error and I’m back to square one. The process ‘python myapplication.py‘ is terminated as a result.

Any ideas on what is happening and what I can do to prevent this from occuring?

Advertisement

Answer

You should try screen.

Install

Ubuntu:

JavaScript

CentOS:

JavaScript

Usage

Start a new screen session by

JavaScript

List all screen sessions you had created

JavaScript

Next, restore your screen

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement