[CRIU] crtools-0.1 - Error (image.c:239): Unable to open tcp-stream-10.img: No such file or directory

Dilip Daya dilip.daya at hp.com
Mon Jul 30 19:10:23 EDT 2012


Having issues with crtools-0.1/test/tcp/run.sh

# uname -r
3.5.0-crui-crtools-amd64

# ./run.sh 
+ PORT=12345
+ CLN_PIPE=./clnt_pipe
+ SRV_LOG=./srv.log
+ CLN_LOG=./cln.log
+ DDIR=dump
+ CRTOOLS=../../crtools
++ hexdump -C /dev/urandom
++ head -n 1
+ TEXT='00000000  ef c4 90 f3 f8 62 cd 92  14 ff f6 9c 41 e3 53 46
|.....b......A.SF|'
+ echo 'Building services'
Building services
+ make clean
rm -f cln srv
+ make
cc     cln.c   -o cln
cc     srv.c   -o srv
+ rm -rf dump ./srv.log ./cln.log ./clnt_pipe
+ mkdir dump
+ echo 'Starting server'
Starting server
+ SRV_PID=11453
+ echo 'Starting pipe'
Starting pipe
+ mkfifo ./clnt_pipe
+ setsid ./srv 12345
+ echo 'Starting client'
Starting client
+ CLN_PID=11455
+ exec
+ ./cln 127.0.0.1 12345
+ echo 'Make it run'
Make it run
+ echo '00000000  ef c4 90 f3 f8 62 cd 92  14 ff f6 9c 41 e3 53 46
|.....b......A.SF|'
+ echo 'Suspend server'
Suspend server
+ ../../crtools dump -D dump -o dump.log -t 11453 --tcp-established
-vvvv
./run.sh: line 44: 11453 Killed                  setsid ./srv ${PORT} >
${SRV_LOG} 2>&1
+ sleep 1
+ echo 'Resume server'
Resume server
+ ../../crtools restore -D dump -o restore.log -t 11453 -d
--tcp-established -vvvv --close 3
+ fail 'Fail to restore server'
+ echo 'Fail to restore server'
Fail to restore server
+ kill -9 11455
+ kill -9 11453
./run.sh: line 39: kill: (11453) - No such process
+ exit 1


# grep Err dump/restore.log 
 11457: Error (image.c:239): Unable to open tcp-stream-10.img: No such
file or directory
 11453: Error (cr-restore.c:568): 11457 exited, status=255
Error (cr-restore.c:840): Someone can't be restored


# ls dump/
core-11453.img   dump.log           fdinfo-11453.img  fs-11453.img
inotify-wd.img     mm-11453.img     pipes-data.img  remap-fpath.img
sk-queues.img         vmas-11457.img
core-11457.img   eventfd.img        fdinfo-11457.img  fs-11457.img
inventory.img      mm-11457.img     pipes.img       restore.log
tcp-stream-94e4e.img
creds-11453.img  eventpoll.img      fifo-data.img     inetsk.img
itimers-11453.img  pages-11453.img  pstree.img      sigacts-11453.img
unixsk.img
creds-11457.img  eventpoll-tfd.img  fifo.img          inotify.img
itimers-11457.img  pages-11457.img  reg-files.img   sigacts-11457.img
vmas-11453.img


=> dump/restore.log
...
...
 11457: Restoring TCP connection id 10 ino 94e4e
 11453:     Wait fdinfo pid=11457 fd=2
 11453:     Send fd 1 to /crtools-fd-11457-2
 11453:   Restoring fd 2 (state -> create)
 11453:   Restoring fd 3 (state -> create)
 11453:   Restore: family 2 type 1 proto 6 port 12345 state 10 src_addr
0.0.0.0
 11457: Error (image.c:239): Unable to open tcp-stream-10.img: No such
file or directory
 11453:     Create fd for 3
 11453:       Going to dup 3 into 3
 11453:   Restoring fd 0 (state -> receive)
 11453:   Restoring fd 1 (state -> receive)
 11453:   Restoring fd 2 (state -> receive)
 11453:   Restoring fd 3 (state -> receive)
 11453: Running delayed unix connections
 11453: Error (cr-restore.c:568): 11457 exited, status=255
 11453: Opening 0x0000000000400000-0x0000000000401000 0x0000000000000000
vma
Error (cr-restore.c:840): Someone can't be restored
 11453: Opening 0x0000000000601000-0x0000000000602000 0x0000000000001000
vma


=> Restore is looking for "tcp-stream-10.img", but actual file name is
   "tcp-stream-94e4e.img".

I've tried multiple attempts but restore always looks for
"tcp-stream-10.img".

Would this be a bug?


-DilipD.



More information about the CRIU mailing list