New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error dumping a file-handle on AUFS (WONTFIX for now) #284
Comments
Here's the failing piece:
this means, that there's a unix.stream socket in your container, whose peer is not owned by any process in the same container. Let's explore this? Can you show the output of 'ps xaf' and 'ss -xanp' inside the container you dump? |
@xemul thanks for your reply.
root@ubuntu01:/home/administrator# docker exec abcd_abcd ss -xanp |
@iprimo , would you use nsenter to run ss, not docker? As there's no ss inside the container, it just fails, so you'd need to nsenter the target container's net namespace only. |
@xemul, not sure if this can help. root@ubuntu01:~# docker ps root@ubuntu01:~# PID=$(docker inspect --format {{.State.Pid}} 701f4ca723c2) root@ubuntu01:~# echo $PID root@ubuntu01:~# nsenter --target $PID --mount --uts --ipc --net --pid root@701f4ca723c2:/# ss -xanp root@701f4ca723c2:/# ps xaf |
@iprimo , try not to enter the mount namespace, so that the fs view is still from host and ss command can be found, and pid, so that pids reported by the kernel can be found in host proc. |
@iprimo , it looks like you haven't entered netnamespace, as there are no sockets of your container in the output. Can you set up a remote access to me, so I could look at this myself? Or even better -- give me a container itself. Or maybe a VM image with the problematic container inside. |
So, I've attached to the node you have and here's what I see. Dump fails for different reason -- it fails to parse the contents of the /proc/pid/fdinfo/nr entry describing an inotify. And this is due to kernel was unable to encode a file handle (look at dmesg | fgrep -i handle, it will say that encoding a handle went with error). And, in turn, inability to encode a handle comes from the fact, that the root FS for your container is AUFS. It's an obsoleted FS which doesn't support inotifies and file-handles itself. Thus, in order to proceed with it, you need to switch your Docker environment to start using at least OverlayFS. It has issues with inotifies too, but we'd be able to work with them, unlike AUFS which is a dead-end. |
@xemul thanks for the great work. |
@iprimo , you're welcome :) AFAIK there's no need in reinstalling Docker, the use of aufs/overlayfs is controlled by some config file. But it's up to you. |
@xemul, as was advised, I changed the storage driver to OverlayFS. The error has changed to the following: Error (criu/irmap.c:86): irmap: Can't stat /no-such-path: No such file or directory Dump files attached. |
@iprimo OK, that's much better :) Can you let me on your box again so I could check one more thing? |
dup of #136 |
Hi,
I am trying to C\R a container running a GUI app and the following error was observed. (dump file attached)
I appreciate if you could help.
Thanks
root@ubuntu01:/home/administrator# docker checkpoint create abcd_abcd chp_01
Error response from daemon: Cannot checkpoint container abcd_abcd: rpc error: code = 2 desc = exit status 1: "criu failed: type NOTIFY errno 0\nlog file: /var/lib/docker/containers/dc2e0c30f22ca879615c50c02b205e7d63135de97dab600fa445c96307155422/checkpoints/chp_01/criu.work/dump.log\n"
root@ubuntu01:/home/administrator#
root@ubuntu01:/home/administrator# docker --version
Docker version 1.13.1, build 092cba3
root@ubuntu01:/home/administrator# criu --version
Version: 2.11
dump.txt
The text was updated successfully, but these errors were encountered: