<div dir="ltr"><span style="font-size:12.8px">Hi All,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am trying to migrate a c program(process) from one nod to another node.</div><div style="font-size:12.8px">Doing above running CRIU commands in shell prompt works fine.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Now i am trying to automate the process by writing the shell script.</div><div style="font-size:12.8px">My script runs on the primary node say NODE1 and triggers a ssh connection to NODE2 to launch page-server.</div><div style="font-size:12.8px">In the same script i run the dump command on NODE1 and on successful dumping i trigger another ssh call to run the restore command on the NODE2.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">This is how i do :</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">ssh username@IP &#39;bash -s&#39; &lt; restore.sh </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">restore.sh is another script residing on the NODE1 which triggers restore command on NODE2.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">#! /bin/bash </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">sudo criu restore --tree &lt;pid&gt; --shell-job --images-dir &lt;path&gt; -d</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Doing so i am flashed with this below mentioned error. </div><div style="font-size:12.8px"><b><font size="4">Error: #tty: Standard stream is not a terminal, aborting</font></b><br></div><div style="font-size:12.8px"><b><font size="4"><br></font></b></div><div style="font-size:12.8px">I have read the conversation related to the same issue @</div><div style="font-size:12.8px"><a href="https://lists.openvz.org/pipermail/criu/2014-September/016100.html" target="_blank">https://lists.openvz.org/pipermail/criu/2014-September/016100.html</a></div><div style="font-size:12.8px"> </div><div style="font-size:12.8px">As suggested solution of removing option &quot;--shell-job&quot; i have this problem </div><div style="font-size:12.8px"><b><font size="4">Error: #tty: Found slave peer index 2 without correspond master peer</font></b><br></div><div style="font-size:12.8px">  </div><div style="font-size:12.8px">Kindly suggested the possible solutions and work around to overcome the same.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I would really appreciate your help.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Prashanth Chillabatte</div></div>