[CRIU] 1st test fails

Pavel Emelyanov xemul at parallels.com
Wed Jul 3 06:48:55 EDT 2013


On 07/03/2013 05:18 PM, Neal Becker wrote:
> (00.001466) Error (sk-unix.c:318): Can't stat socket 8577(./run/lvm/lvmetad.socket): Permission denied
> (00.001525) Error (sk-unix.c:318): Can't stat socket 43707(./tmp/tramp.1789rAV.nbecker at nbecker7:22.OhswhsSZtGhIzqGd): No such file or directory
> (00.004524) Error (proc_parse.c:367): Can't open 2577's mapfile link 400000: Operation not permitted

CRIU uses kernel APIs that are restricted to root user to work with. This
is something we have to live with, at least for now :(

BTW, this is another reason for having criu service running in the background
and the library call that communicates one about "dump me please".

> (00.004552) Error (cr-dump.c:1273): Collect mappings (pid: 2577) failed with -1
> -zombie 2574 found, state R
> (00.002271) Error (sk-unix.c:318): Can't stat socket 8577(./run/lvm/lvmetad.socket): Permission denied
> (00.002330) Error (sk-unix.c:318): Can't stat socket 43707(./tmp/tramp.1789rAV.nbecker at nbecker7:22.OhswhsSZtGhIzqGd): No such file or directory
> (00.007805) Error (proc_parse.c:367): Can't open 2572's mapfile link 400000: Operation not permitted
> (00.007837) Error (cr-dump.c:1273): Collect mappings (pid: 2572) failed with -1
> 
> -------------- test_crtools.py --------------
> import subprocess
> import os
> pid = os.getpid()
> print 'pid:', pid
> from time import sleep
> 
> if os.fork() == 0:
>     from daemon import basic_daemonize
>     basic_daemonize()
>     ## os.setsid()
>     o = os.open ('crtools.log', os.O_RDWR|os.O_CREAT)
>     os.dup2 (o, 1)
>     os.dup2 (o, 2)
>     subprocess.call (['crtools', 'dump', '-t%d'%pid])
> else:
>     while True:
>         sleep (10)
>         print 'hi'
> 
> 
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
> 




More information about the CRIU mailing list