[CRIU] Unable to send/recv msg to/from CRIU: Connection reset by peer
Paschalis Mpeis
paschalis.mpeis at ed.ac.uk
Wed Dec 10 09:34:57 PST 2014
I have done the native compilation for `criu` and `protobuf-c`.
*Then I created a new directory and I put in the following:*
> ./criu (the compiled binary)
> ./libs/
> ./libs/criu
> ./libs/criu/include
> ./libs/criu/lib
> ./libs/protobuf
> ./libs/protobuf/include
> ./libs/protobuf/lib
*I setup the CRIU env var in env.sh like this:*
> CRIU="sudo LD_LIBRARY_PATH=`pwd`/libs/criu/lib/:`pwd`/libs/protobuf-c/lib/
> ./criu"
*Relevant lines from the Makefile:*
> CRIU_DIR_LIB=./libs/criu/lib
> PROTOBUF_DIR_LIB=./libs/protobuf-c/lib
...
> define genb
> $(1): $(1).o lib.o
> gcc $$^ -L $(CRIU_DIR_LIB) -lcriu -L $(PROTOBUF_DIR_LIB) -lprotobuf-c
> -o $$@
> endef
...
> %.o: %.c
> gcc -c $^ -I$(CRIU_DIR_LIB) -I$(PROTOBUF_DIR_LIB) -o $@ -Werror
This, does create a healthy executable for the tests.
Also, if I `source` the `env.sh`, then executing `./criu`seems to working
fine. It displays the man page, and I can use features like show -f a.img.
*Relevant lines from the run.sh: (of the test/libcriu)*
...
> ln -s ./libs/criu/lib/libcriu.so libcriu.so.1
> cp ./libs/protobuf-c/lib/libprotobuf-c.so.1 libprotobuf-c.so.1
...
I am missing something. But I don't know where!!
The reason of following such approach is that I will cross-compile for ARM
at some point.
So, I will just replace the criu binary and the libs folders with the
cross-compiled ones. After this, it should work!
Cheers,
Paschalis
On Wed, Dec 10, 2014 at 5:11 PM, Ruslan Kuprieiev <kupruser at gmail.com>
wrote:
> On 12/10/2014 06:26 PM, Paschalis Mpeis wrote:
>
>>
>> I already sent this info, just right after my initial email.
>> It is not shown in mailing list, so I re-attach:
>>
>> *cat wdir/s/cs.sk <http://cs.sk>:*
>>
>> cat: wdir/s/cs.sk <http://cs.sk>: No such device or address
>>
>>
>> *cat wdir/s/service.log:*
>>
>> (00.000037) The service socket is bound to cs.sk <http://cs.sk>
>> (00.000187) Waiting for connection...
>> (00.058685) Connected.
>> (00.058745) Waiting for connection...
>> (00.058934) Restrict C/R with 0:0 uid:gid
>> (00.061206) Restrict C/R with 0:0 uid:gid
>> (00.064244) Worker(pid 6370) exited with 0
>>
>
> Hm ,looks like libcriu didn't even try to connect to criu on restore.
>
> Did you "make install"? Could you show us what "which criu" shows?
>
> Thanks.
>
>
>>
>>
>> Cheers,
>> Paschalis
>>
>>
>> On Wed Dec 10 2014 at 4:22:08 PM Ruslan Kuprieiev <kupruser at gmail.com
>> <mailto:kupruser at gmail.com>> wrote:
>>
>> Hi, Paschalis!
>>
>> Could you also show us test/libcriu/s/service.log please?
>>
>> Thanks.
>>
>> On 12/10/2014 06:13 PM, Paschalis Mpeis wrote:
>> > There is no restore.log in wdir/i/<app-name/1 directory.
>> > And it is specified on the code using:
>> > `criu_set_log_file("restore.__log");`
>> >
>> > Also, is there an explanation of the directories created by criu?
>> > I can tell some things by the files, but I would feel more
>> confident
>> > reading these from a documentation.
>> >
>> > Cheers,
>> > Paschalis
>> >
>> >
>> >
>> > On Wed Dec 10 2014 at 3:55:49 PM Pavel Emelyanov
>> <xemul at parallels.com <mailto:xemul at parallels.com>
>> > <mailto:xemul at parallels.com <mailto:xemul at parallels.com>>> wrote:
>> >
>> > On 12/10/2014 04:02 PM, Paschalis Mpeis wrote:
>> > > Hi all,
>> > >
>> > > I 've been struggling with this problem for some time.
>> > >
>> > >
>> > > *This is what I get when I execute the test_iters.c test
>> (located
>> > in tests/libcriu) with sudo:*
>> > >
>> > > --- Start loop ---
>> > > `- loop: initializing
>> > > --- Dump loop ---
>> > > `- 1 iter over
>> > > `- Dump succeeded
>> > > --- Restore loop ---
>> > > Can't read response: Connection reset by peer
>> > > Can't receive response: Connection reset by peer
>> > > Unable to send/recv msg to/from CRIU: Connection reset
>> by peer
>> > > test_iters: FAIL
>> > > == Stopping service
>> > > FAIL
>> > >
>> > >
>> > > *Here is the wdir/i/<app-name/dump.log:*
>> >
>> > But what fails is the restore. Can you show the restore.log
>> file
>> > contents?
>> >
>> > Thanks,
>> > Pavel
>> >
>> >
>> >
>> > The University of Edinburgh is a charitable body, registered in
>> > Scotland, with registration number SC005336.
>> >
>> >
>> >
>> > _________________________________________________
>> > CRIU mailing list
>> > CRIU at openvz.org <mailto:CRIU at openvz.org>
>> > https://lists.openvz.org/__mailman/listinfo/criu
>> <https://lists.openvz.org/mailman/listinfo/criu>
>> >
>>
>>
>>
>> The University of Edinburgh is a charitable body, registered in
>> Scotland, with registration number SC005336.
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20141210/7e5d5e01/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20141210/7e5d5e01/attachment-0001.ksh>
More information about the CRIU
mailing list