[CRIU] crtools error checkpoint/restore error ("Unable to open pstree.img")

Pavel Emelyanov xemul at parallels.com
Tue Mar 26 13:24:26 EDT 2013


On 03/26/2013 09:18 PM, Kevin Wilson wrote:
> Hello,
> I added --tcp-established; now I run:
> ./crtools dump -x --tcp-established -v 4 -o dump.log -D checkpoint -t 809

Do you run it as root?

There's something strange happening with the processes you're trying to dump --
ptrace cannot attach to them. What are these processes doing?

> I get strange error:
> Can't get CS register: No such process

Yes, of course. Due to bug in collecting one task wasn't stopped for dump
and run away from crtools. I've recently sent two patches, please, apply
them and try it again.

> Attached is dump.log
> 
> Best,
> Kevin
> 
> 
> On Tue, Mar 26, 2013 at 7:03 PM, Pavel Emelyanov <xemul at parallels.com> wrote:
>> On 03/26/2013 08:44 PM, Kevin Wilson wrote:
>>> Hi,
>>> Tried it with -x.
>>> in dump.log, this is the (first) error I get:
>>>
>>> Error (ptrace.c:75): Unseizeable non-zombie 527 found, state R
>>> This error appears several times in the log.
>>
>> This means, that ptrace cannot attach to the process. Do you run crtools as root?
>>
>> And there's actually a bug in there, thanks! I'll fix that up.
>>
>>> And there is another error:
>>>
>>> (00.112477) Error (sk-inet.c:136): Connected TCP socket, consider
>>> using tcp-established option.
>>
>> Dumping and restoring alive TCP connection is quite tricky. You can use the
>> proposed --tcp-established option, to state, that you do understand how it works
>> and what you should do between dump and restore and let crtools dump and restore
>> the TCP connection for you.
>>
>>> Attached here is dump.log
>>>
>>> Best,
>>> Kevin
>>>
>>> On Tue, Mar 26, 2013 at 11:04 AM, Cyrill Gorcunov <gorcunov at openvz.org> wrote:
>>>> On Tue, Mar 26, 2013 at 10:47:25AM +0200, Kevin Wilson wrote:
>>>>> (00.001575) Lock network
>>>>> (00.001699) lockinfo: 6:POSIX ADVISORY WRITE 473 00:12:11656 0 EOF
>>>>> (00.001745) Error (cr-dump.c:1055): Some file locks are hold by dumping tasks!Yo
>>>>> u can try -l to dump them.: No such file or directory
>>>>> (00.001786) Unlock network
>>>>> (00.001803) Unfreezing tasks into 1
>>>>> (00.001813)   Unseizeing 473 into 1
>>>>>
>>>>> 3) I also added "-l" as suggested in the error message.
>>>>> Now the dump file is too big to be inlined in this message; I am
>>>>> attaching it to this mail.
>>>>>
>>>>
>>>> There is /dev/log external socket found. Try to checkpoint with additional
>>>> "-x" option.
>>
>>




More information about the CRIU mailing list