[CRIU] tty: Standard stream is not a terminal, aborting
Cyrill Gorcunov
gorcunov at gmail.com
Wed Aug 24 06:49:06 PDT 2016
On Wed, Aug 24, 2016 at 11:55:50AM +0200, Manuel Rodríguez Pascual wrote:
> Hi all,
>
> I am working on the integration of CRIU with a resource manager (RM).
> It has similarities with the P.haul project, but this cannot be
> directly used due to the internal architecture of the RM.
Wow, sounds great.
> At this moment I am able to save the job status. however I keep having
> issues when restoring.
>
> In this RM, it is necessary to submit the jobs with an script. So I am
> checkpointing and restarting with the "--shel-job" option. I have
> created an script "criu_restore" that performs all the work (prepare
> some stuff and the call "criu restore --shell-job ....") , and it
> works Ok when executed locally. Just to make clear, interactions in
> this first scenario are: user -> criu_restore -> user_script ->
> application
>
> However, in order to achieve a full integration with the RM, it would
> be necessary to restore from a SSH. Interactions in this second
> scenario would be: user -> criu_restore as an SSH command in the
> destination machine -> user_script -> application
>
> The problem is that, as stated in the subject, CRIU crashes with the
> "tty: Standard stream is not a terminal, aborting " message. Data and
> everything else is present (it is in fact doing a ssh to the same
> machine, so there is no problem of users/ permissions/ non existing
> data / whatever). So the problem obviously comes from executing
> "criu_restore" as an ssh command and not directly in the shell by the
> user.
The problem is that when inheriting session we need someone "above"
(ie caller side) to provide us a session to inherit from. And for this
sake we take caller's stdin as a reference and attach the peers into
it.
Mind to execute "ls -l /proc/self/fd" on the destination before running
the criu there?
There were an idea to support --external-fd support for inheriting
terminal but not yet implemented.
>
> Looking at past mails in this list, I have found this one
> https://lists.openvz.org/pipermail/criu/2015-October/022777.html . I
> feel that I am doing the same error and it is in fact a newbie
> mistake, but I don't know how to solve this or correct what I am doing
> wrong.
>
> any help or suggestion?
>
> Thanks for your support. best regards,
More information about the CRIU
mailing list