{"action":"created","issue":{"url":"https://api.github.com/repos/pkgcore/pychroot/issues/14","labels_url":"https://api.github.com/repos/pkgcore/pychroot/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/pkgcore/pychroot/issues/14/comments","events_url":"https://api.github.com/repos/pkgcore/pychroot/issues/14/events","html_url":"https://github.com/pkgcore/pychroot/issues/14","id":98162277,"number":14,"title":"Unexpected \"[Errno 2] No such file or directory\"","user":{"login":"hartwork","id":1577132,"avatar_url":"https://avatars.githubusercontent.com/u/1577132?v=3","gravatar_id":"","url":"https://api.github.com/users/hartwork","html_url":"https://github.com/hartwork","followers_url":"https://api.github.com/users/hartwork/followers","following_url":"https://api.github.com/users/hartwork/following{/other_user}","gists_url":"https://api.github.com/users/hartwork/gists{/gist_id}","starred_url":"https://api.github.com/users/hartwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartwork/subscriptions","organizations_url":"https://api.github.com/users/hartwork/orgs","repos_url":"https://api.github.com/users/hartwork/repos","events_url":"https://api.github.com/users/hartwork/events{/privacy}","received_events_url":"https://api.github.com/users/hartwork/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-30T12:53:24Z","updated_at":"2015-07-30T16:26:07Z","closed_at":"2015-07-30T16:23:55Z","body":"A chroot I was previously able to chroot into just turned unenterable.\r\n(The connection died and since there was no tmux open to re-enter, I killed pychroot's offspring processes.)\r\n\r\nNow entering fails like this:\r\n```\r\n# pychroot wheezy_chroot/ /bin/bash \r\n[Errno 2] No such file or directory\r\n\r\n# ls -l wheezy_chroot/bin/bash\r\n-rwxr-xr-x 1 root root 975488 Sep 25  2014 wheezy_chroot/bin/bash\r\n```\r\nIt turns out the problem is actually piles of letfover mounts from previous runs. To give an excerpt of findmnt output:\r\n```\r\n├─/root/wheezy_chroot/dev                     udev       devtmpfs   rw,relatime,size=10240k,nr_inodes=2036335,mode=755\r\n│ ├─/root/wheezy_chroot/dev/pts               devpts     devpts     rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000\r\n│ ├─/root/wheezy_chroot/dev/shm               tmpfs      tmpfs      rw,nosuid,nodev\r\n│ ├─/root/wheezy_chroot/dev                   udev       devtmpfs   rw,relatime,size=10240k,nr_inodes=2036335,mode=755\r\n│ │ ├─/root/wheezy_chroot/dev/pts             devpts     devpts     rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000\r\n│ │ ├─/root/wheezy_chroot/dev/shm             tmpfs      tmpfs      rw,nosuid,nodev\r\n│ │ ├─/root/wheezy_chroot/dev                 udev       devtmpfs   rw,relatime,size=10240k,nr_inodes=2036335,mode=755\r\n│ │ │ ├─/root/wheezy_chroot/dev/pts           devpts     devpts     rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000\r\n│ │ │ ├─/root/wheezy_chroot/dev/shm           tmpfs      tmpfs      rw,nosuid,nodev\r\n│ │ │ ├─/root/wheezy_chroot/dev               udev       devtmpfs   rw,relatime,size=10240k,nr_inodes=2036335,mode=755\r\n│ │ │ │ ├─/root/wheezy_chroot/dev/pts         devpts     devpts     rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000\r\n│ │ │ │ ├─/root/wheezy_chroot/dev/shm         tmpfs      tmpfs      rw,nosuid,nodev\r\n│ │ │ │ ├─/root/wheezy_chroot/dev             udev       devtmpfs   rw,relatime,size=10240k,nr_inodes=2036335,mode=755\r\n│ │ │ │ │ ├─/root/wheezy_chroot/dev/pts       devpts     devpts     rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000\r\n│ │ │ │ │ ├─/root/wheezy_chroot/dev/shm       tmpfs      tmpfs      rw,nosuid,nodev\r\n│ │ │ │ │ ├─/root/wheezy_chroot/dev           udev       devtmpfs   rw,relatime,size=10240k,nr_inodes=2036335,mode=755\r\n│ │ │ │ │ │ ├─/root/wheezy_chroot/dev/pts     devpts     devpts     rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000\r\n│ │ │ │ │ │ ├─/root/wheezy_chroot/dev/shm     tmpfs      tmpfs      rw,nosuid,nodev\r\n│ │ │ │ │ │ ├─/root/wheezy_chroot/dev         udev       devtmpfs   rw,relatime,size=10240k,nr_inodes=2036335,mode=755\r\n│ │ │ │ │ │ │ ├─/root/wheezy_chroot/dev/pts   devpts     devpts     rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000\r\n│ │ │ │ │ │ │ ├─/root/wheezy_chroot/dev/shm   tmpfs      tmpfs      rw,nosuid,nodev\r\n│ │ │ │ │ │ │ └─/root/wheezy_chroot/dev       udev       devtmpfs   rw,relatime,size=10240k,nr_inodes=2036335,mode=755\r\n```\r\nThis is on Debian wheezy btw. I didn't do any mounting inside or outside the chroot otherwise, myself."},"comment":{"url":"https://api.github.com/repos/pkgcore/pychroot/issues/comments/126392690","html_url":"https://github.com/pkgcore/pychroot/issues/14#issuecomment-126392690","issue_url":"https://api.github.com/repos/pkgcore/pychroot/issues/14","id":126392690,"user":{"login":"radhermit","id":69519,"avatar_url":"https://avatars.githubusercontent.com/u/69519?v=3","gravatar_id":"","url":"https://api.github.com/users/radhermit","html_url":"https://github.com/radhermit","followers_url":"https://api.github.com/users/radhermit/followers","following_url":"https://api.github.com/users/radhermit/following{/other_user}","gists_url":"https://api.github.com/users/radhermit/gists{/gist_id}","starred_url":"https://api.github.com/users/radhermit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radhermit/subscriptions","organizations_url":"https://api.github.com/users/radhermit/orgs","repos_url":"https://api.github.com/users/radhermit/repos","events_url":"https://api.github.com/users/radhermit/events{/privacy}","received_events_url":"https://api.github.com/users/radhermit/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T16:26:06Z","updated_at":"2015-07-30T16:26:06Z","body":"That should do it, I tested by doing:\r\n\r\nsudo mount --make-rshared /\r\nsudo ./pychroot ~/chroot /bin/bash\r\n\r\nAnd confirmed that the chroot mounts were leaking to the host before the fix. With the fix, they don't chroot mounts don't propagate back up.\r\n\r\nNext release will probably come in a few days and will require a new snakeoil version."}}