{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxc/issues/1730","repository_url":"https://api.github.com/repos/lxc/lxc","labels_url":"https://api.github.com/repos/lxc/lxc/issues/1730/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxc/issues/1730/comments","events_url":"https://api.github.com/repos/lxc/lxc/issues/1730/events","html_url":"https://github.com/lxc/lxc/issues/1730","id":247861746,"number":1730,"title":"lxc-checkpoint fails to dump/handle tty","user":{"login":"lmouelle","id":8906703,"avatar_url":"https://avatars1.githubusercontent.com/u/8906703?v=4","gravatar_id":"","url":"https://api.github.com/users/lmouelle","html_url":"https://github.com/lmouelle","followers_url":"https://api.github.com/users/lmouelle/followers","following_url":"https://api.github.com/users/lmouelle/following{/other_user}","gists_url":"https://api.github.com/users/lmouelle/gists{/gist_id}","starred_url":"https://api.github.com/users/lmouelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmouelle/subscriptions","organizations_url":"https://api.github.com/users/lmouelle/orgs","repos_url":"https://api.github.com/users/lmouelle/repos","events_url":"https://api.github.com/users/lmouelle/events{/privacy}","received_events_url":"https://api.github.com/users/lmouelle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-03T23:17:30Z","updated_at":"2018-03-15T20:42:35Z","closed_at":null,"author_association":"NONE","body":"Distros: Fedora Workstation 25 (within and outside a VM) and Ubuntu Server 16.04.\r\n\r\nlxc version: 2.0.8.\r\n`lxc-checkconfig` output attached as file. \r\n`cat /proc/1/mounts` attached as a file.\r\nContainer config attached as a file (I've made many fresh ones, same result every time).\r\nCRIU dump.log attached as a file.\r\nCRIU version is 3.3, built from master branch.\r\n\r\n`uname -a output` is `Linux 4.11.12-200.fc25.x86_64 #1 SMP Fri Jul 21 16:41:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux`\r\n\r\nExact command issued is `lxc-checkpoint -v -l TRACE -s -o lxc_checkpoint.log -D /tmp/c8`\r\n\r\nIf I run that, or attempt to checkpoint a freshly made container in any way, it fails with the attached error logs. Workaround is to set `lxc.tty = 0` in the `/var/lib/lxc/$CONTAINER/config` file, though of course that will disable tty.\r\n\r\nContainers in my environment occasionally yelp about trouble with dumping namespaces, don't think it's the same issue but worth mentioning anyway.\r\n\r\nSeems related to https://github.com/lxc/lxd/issues/3086, though I am not using LXD.\r\n\r\n[cat_proc_1_mounts.txt](https://github.com/lxc/lxc/files/1198828/cat_proc_1_mounts.txt)\r\n[cat_proc_self_cgroup.txt](https://github.com/lxc/lxc/files/1198833/cat_proc_self_cgroup.txt)\r\n[container_config.txt](https://github.com/lxc/lxc/files/1198830/container_config.txt)\r\n[criu_dump.txt](https://github.com/lxc/lxc/files/1198832/criu_dump.txt)\r\n[lxc_checkconfig.txt](https://github.com/lxc/lxc/files/1198829/lxc_checkconfig.txt)\r\n[lxc_checkpoint.txt](https://github.com/lxc/lxc/files/1198831/lxc_checkpoint.txt)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lxc/lxc/issues/comments/373516288","html_url":"https://github.com/lxc/lxc/issues/1730#issuecomment-373516288","issue_url":"https://api.github.com/repos/lxc/lxc/issues/1730","id":373516288,"user":{"login":"rst0git","id":9142901,"avatar_url":"https://avatars2.githubusercontent.com/u/9142901?v=4","gravatar_id":"","url":"https://api.github.com/users/rst0git","html_url":"https://github.com/rst0git","followers_url":"https://api.github.com/users/rst0git/followers","following_url":"https://api.github.com/users/rst0git/following{/other_user}","gists_url":"https://api.github.com/users/rst0git/gists{/gist_id}","starred_url":"https://api.github.com/users/rst0git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rst0git/subscriptions","organizations_url":"https://api.github.com/users/rst0git/orgs","repos_url":"https://api.github.com/users/rst0git/repos","events_url":"https://api.github.com/users/rst0git/events{/privacy}","received_events_url":"https://api.github.com/users/rst0git/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T20:42:35Z","updated_at":"2018-03-15T20:42:35Z","author_association":"NONE","body":"This error still exists with LXC v2.21 CRIU v3.8 and Fedora 27\r\n```\r\ntty: Unable to find a master for /3\r\n```\r\nThanks for the workaround: setting `lxc.tty.max = 0` in `/var/lib/lxc/$CONTAINER/config`"}}
{"actor":{"display_login":"rst0git"}}