Bug#463343: [Buildd-tools-devel] Bug#463343: schroot: Does not end sessions automatically.
On Sat, Mar 21, 2009 at 10:20:19PM +0100, Carlo Wood wrote: > I currently have several schroot's mounted and no way > to get rid of them. > > I just rebooted even, but they persist... > > hikaru:~>df -ha > FilesystemSize Used Avail Use% Mounted on > /dev/md2 3.7G 846M 2.7G 24% / > tmpfs 2.0G 0 2.0G 0% /lib/init/rw > proc 0 0 0 - /proc > sysfs0 0 0 - /sys > procbususb 0 0 0 - /proc/bus/usb > udev 10M 264K 9.8M 3% /dev > tmpfs 2.0G 0 2.0G 0% /dev/shm > devpts 0 0 0 - /dev/pts > /dev/md0 92M 78M 8.4M 91% /boot > /dev/md5 9.2G 7.3G 1.5G 84% /home > /dev/sdd2 37G 29G 5.9G 84% /opt > /dev/sdd3 166G 136G 22G 87% /opt/large > /dev/md8 21G 8.0G 12G 41% /opt2 > /dev/md3 19G 5.8G 12G 34% /usr > /dev/md6 9.2G 3.4G 5.4G 39% /usr/local > /dev/md7 55G 28G 26G 52% /usr/src > /dev/md4 5.6G 1.1G 4.2G 21% /var > /dev/mapper/encrypted >92G 34G 54G 39% /encrypted > tmpfs 10G 32K 10G 1% /tmp > tmpfs 1.0G 0 1.0G 0% /var/tmp > /home 9.2G 7.3G 1.5G 84% /opt2/sid-386-chroot/home > /tmp 10G 32K 10G 1% /opt2/sid-386-chroot/tmp > proc 0 0 0 - /opt2/sid-386-chroot/proc > /encrypted 92G 34G 54G 39% /opt2/sid-386-chroot/encrypted > /usr/share/cwautomacros >19G 5.8G 12G 34% > /opt2/sid-386-chroot/usr/share/cwautomacros > /usr/src 55G 28G 26G 52% /opt2/sid-386-chroot/usr/src/64bit > /dev/pts 0 0 0 - /opt2/sid-386-chroot/dev/pts > /proc0 0 0 - /opt2/mathematica-chroot/proc > /dev 10M 264K 9.8M 3% /opt2/mathematica-chroot/dev > /tmp 10G 32K 10G 1% /opt2/mathematica-chroot/tmp > /home 9.2G 7.3G 1.5G 84% /opt2/mathematica-chroot/home > /usr/src 55G 28G 26G 52% /opt2/mathematica-chroot/usr/src > rpc_pipefs 0 0 0 - /var/lib/nfs/rpc_pipefs > /opt2/sid-386-chroot 21G 8.0G 12G 41% > /var/lib/schroot/mount/sid32-140f50cd-2ec9-414d-8bb1-1d4062f3684c > /opt2/sid-386-chroot 21G 8.0G 12G 41% > /var/lib/schroot/mount/sid32-62f84ac6-10fd-4de9-aaf7-84e3765bdd6d > /opt2/sid-386-chroot 21G 8.0G 12G 41% > /var/lib/schroot/mount/sid32-8ef60377-0f70-44ff-bc6d-926e1f69b94a > /opt2/sid-386-chroot 21G 8.0G 12G 41% > /var/lib/schroot/mount/sid32-fd57a1e1-6b4f-48c9-baa6-69a2dd6b79b6 > nfsd 0 0 0 - /proc/fs/nfsd > binfmt_misc 0 0 0 - /proc/sys/fs/binfmt_misc > hikaru:~>ls -l /var/lib/schroot/mount/ > total 24 > drwxr-xr-x 21 root root 4096 2008-09-08 18:49 > sid32-140f50cd-2ec9-414d-8bb1-1d4062f3684c/ > drwxr-xr-x 2 root root 4096 2008-01-31 02:51 > sid32-1de0ea18-4f8f-4ab9-b6a9-bd4504a00138/ > drwxr-xr-x 2 root root 4096 2008-01-31 02:50 > sid32-27f54204-9f76-499f-9aa5-7f6a608703c5/ > drwxr-xr-x 21 root root 4096 2008-09-08 18:49 > sid32-62f84ac6-10fd-4de9-aaf7-84e3765bdd6d/ > drwxr-xr-x 21 root root 4096 2008-09-08 18:49 > sid32-8ef60377-0f70-44ff-bc6d-926e1f69b94a/ > drwxr-xr-x 21 root root 4096 2008-09-08 18:49 > sid32-fd57a1e1-6b4f-48c9-baa6-69a2dd6b79b6/ > hikaru:~>ls -l /var/lib/schroot/session > total 16 > -rw-r--r-- 1 root carlo 596 2008-11-07 07:32 > sid32-140f50cd-2ec9-414d-8bb1-1d4062f3684c > -rw-r--r-- 1 root carlo 596 2008-08-24 03:12 > sid32-62f84ac6-10fd-4de9-aaf7-84e3765bdd6d > -rw-r--r-- 1 root carlo 596 2008-09-04 05:45 > sid32-8ef60377-0f70-44ff-bc6d-926e1f69b94a > -rw-r--r-- 1 root carlo 596 2008-08-31 20:10 > sid32-fd57a1e1-6b4f-48c9-baa6-69a2dd6b79b6 > hikaru:~>schroot --end-session --all > E: etch32-e1d58450-2d8c-407c-a882-d7486b226643: Failed to unlock chroot: > /var/lib/schroot/session/etch32-e1d58450-2d8c-407c-a882-d7486b226643: Failed > to unlink session file: No such file or directory > > > Any idea how I can get rid of them? A "session" is just a single configuration file under /var/lib/schroot/session. It's exactly the same format as you use in schroot.conf. In your case, it looks like you are using "plain" or "directory" chroots. They persist over a reboot because on startup schroot runs with --all-sessions --recover which makes it remount everything. It always mounts everything under /var/lib/schroot/mount/. Just umount the filesystems under /var/lib/schroot/mount, and then delete the corresponding session files under /var/lib/schroot/session. You can then rmdir the empty directories under /var/lib/schroot/mount and they will all be gone for ever. schroot --end-session -
Bug#463343: [Buildd-tools-devel] Bug#463343: schroot: Does not end sessions automatically.
I currently have several schroot's mounted and no way to get rid of them. I just rebooted even, but they persist... hikaru:~>df -ha FilesystemSize Used Avail Use% Mounted on /dev/md2 3.7G 846M 2.7G 24% / tmpfs 2.0G 0 2.0G 0% /lib/init/rw proc 0 0 0 - /proc sysfs0 0 0 - /sys procbususb 0 0 0 - /proc/bus/usb udev 10M 264K 9.8M 3% /dev tmpfs 2.0G 0 2.0G 0% /dev/shm devpts 0 0 0 - /dev/pts /dev/md0 92M 78M 8.4M 91% /boot /dev/md5 9.2G 7.3G 1.5G 84% /home /dev/sdd2 37G 29G 5.9G 84% /opt /dev/sdd3 166G 136G 22G 87% /opt/large /dev/md8 21G 8.0G 12G 41% /opt2 /dev/md3 19G 5.8G 12G 34% /usr /dev/md6 9.2G 3.4G 5.4G 39% /usr/local /dev/md7 55G 28G 26G 52% /usr/src /dev/md4 5.6G 1.1G 4.2G 21% /var /dev/mapper/encrypted 92G 34G 54G 39% /encrypted tmpfs 10G 32K 10G 1% /tmp tmpfs 1.0G 0 1.0G 0% /var/tmp /home 9.2G 7.3G 1.5G 84% /opt2/sid-386-chroot/home /tmp 10G 32K 10G 1% /opt2/sid-386-chroot/tmp proc 0 0 0 - /opt2/sid-386-chroot/proc /encrypted 92G 34G 54G 39% /opt2/sid-386-chroot/encrypted /usr/share/cwautomacros 19G 5.8G 12G 34% /opt2/sid-386-chroot/usr/share/cwautomacros /usr/src 55G 28G 26G 52% /opt2/sid-386-chroot/usr/src/64bit /dev/pts 0 0 0 - /opt2/sid-386-chroot/dev/pts /proc0 0 0 - /opt2/mathematica-chroot/proc /dev 10M 264K 9.8M 3% /opt2/mathematica-chroot/dev /tmp 10G 32K 10G 1% /opt2/mathematica-chroot/tmp /home 9.2G 7.3G 1.5G 84% /opt2/mathematica-chroot/home /usr/src 55G 28G 26G 52% /opt2/mathematica-chroot/usr/src rpc_pipefs 0 0 0 - /var/lib/nfs/rpc_pipefs /opt2/sid-386-chroot 21G 8.0G 12G 41% /var/lib/schroot/mount/sid32-140f50cd-2ec9-414d-8bb1-1d4062f3684c /opt2/sid-386-chroot 21G 8.0G 12G 41% /var/lib/schroot/mount/sid32-62f84ac6-10fd-4de9-aaf7-84e3765bdd6d /opt2/sid-386-chroot 21G 8.0G 12G 41% /var/lib/schroot/mount/sid32-8ef60377-0f70-44ff-bc6d-926e1f69b94a /opt2/sid-386-chroot 21G 8.0G 12G 41% /var/lib/schroot/mount/sid32-fd57a1e1-6b4f-48c9-baa6-69a2dd6b79b6 nfsd 0 0 0 - /proc/fs/nfsd binfmt_misc 0 0 0 - /proc/sys/fs/binfmt_misc hikaru:~>ls -l /var/lib/schroot/mount/ total 24 drwxr-xr-x 21 root root 4096 2008-09-08 18:49 sid32-140f50cd-2ec9-414d-8bb1-1d4062f3684c/ drwxr-xr-x 2 root root 4096 2008-01-31 02:51 sid32-1de0ea18-4f8f-4ab9-b6a9-bd4504a00138/ drwxr-xr-x 2 root root 4096 2008-01-31 02:50 sid32-27f54204-9f76-499f-9aa5-7f6a608703c5/ drwxr-xr-x 21 root root 4096 2008-09-08 18:49 sid32-62f84ac6-10fd-4de9-aaf7-84e3765bdd6d/ drwxr-xr-x 21 root root 4096 2008-09-08 18:49 sid32-8ef60377-0f70-44ff-bc6d-926e1f69b94a/ drwxr-xr-x 21 root root 4096 2008-09-08 18:49 sid32-fd57a1e1-6b4f-48c9-baa6-69a2dd6b79b6/ hikaru:~>ls -l /var/lib/schroot/session total 16 -rw-r--r-- 1 root carlo 596 2008-11-07 07:32 sid32-140f50cd-2ec9-414d-8bb1-1d4062f3684c -rw-r--r-- 1 root carlo 596 2008-08-24 03:12 sid32-62f84ac6-10fd-4de9-aaf7-84e3765bdd6d -rw-r--r-- 1 root carlo 596 2008-09-04 05:45 sid32-8ef60377-0f70-44ff-bc6d-926e1f69b94a -rw-r--r-- 1 root carlo 596 2008-08-31 20:10 sid32-fd57a1e1-6b4f-48c9-baa6-69a2dd6b79b6 hikaru:~>schroot --end-session --all E: etch32-e1d58450-2d8c-407c-a882-d7486b226643: Failed to unlock chroot: /var/lib/schroot/session/etch32-e1d58450-2d8c-407c-a882-d7486b226643: Failed to unlink session file: No such file or directory Any idea how I can get rid of them? -- Carlo Wood -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#463343: [Buildd-tools-devel] Bug#463343: schroot: Does not end sessions automatically.
also sprach Roger Leigh [2009.03.21.1322 +0100]: > I never got any followups about this. > > Is this still a problem with the current schroot? Is so, could > you possibly provide some of the further information I asked for > above, and I will investigate this further. Sorry. I have never seen this problem again. \o/ -- .''`. martin f. krafft Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduckhttp://vcs-pkg.org `- Debian - when you have better things to do than fixing systems "... alle sätze der logik sagen aber dasselbe. nämlich nichts." -- wittgenstein digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/)
Bug#463343: [Buildd-tools-devel] Bug#463343: schroot: Does not end sessions automatically.
On Sat, Apr 26, 2008 at 11:05:26PM +0100, Roger Leigh wrote: > martin f krafft writes: > > > also sprach Carlo Wood [2008.04.26.2059 +0400]: > >> type=plain > > > > So it affects type=plain as well as type=file. > > > > Just for the bug record... > > Does schroot --end-session correctly end the session if you try this > with -c for one of those directories? > > Also, try --debug=notice to see if you get any diagnostics about why > it fails to clean up. I never got any followups about this. Is this still a problem with the current schroot? Is so, could you possibly provide some of the further information I asked for above, and I will investigate this further. Thanks, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `-GPG Public Key: 0x25BFB848 Please GPG sign your mail. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#463343: [Buildd-tools-devel] Bug#463343: schroot: Does not end sessions automatically.
martin f krafft <[EMAIL PROTECTED]> writes: > also sprach Carlo Wood <[EMAIL PROTECTED]> [2008.04.26.2059 +0400]: >> type=plain > > So it affects type=plain as well as type=file. > > Just for the bug record... Does schroot --end-session correctly end the session if you try this with -c for one of those directories? Also, try --debug=notice to see if you get any diagnostics about why it fails to clean up. Thanks, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `-GPG Public Key: 0x25BFB848 Please GPG sign your mail. pgpTJDvNaxAsS.pgp Description: PGP signature
Bug#463343: schroot: Does not end sessions automatically.
also sprach Carlo Wood <[EMAIL PROTECTED]> [2008.04.26.2059 +0400]: > type=plain So it affects type=plain as well as type=file. Just for the bug record... -- .''`. martin f. krafft <[EMAIL PROTECTED]> : :' : proud Debian developer, author, administrator, and user `. `'` http://people.debian.org/~madduck - http://debiansystem.info `- Debian - when you have better things to do than fixing systems "the husbands of very beautiful women belong to the criminal classes." -- oscar wilde digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/)
Bug#463343: schroot: Does not end sessions automatically.
On Sat, Apr 26, 2008 at 05:51:02AM +0400, martin f krafft wrote: > Can you send your schroot.conf to the bug report? Apart from a lot of comments at the start, it only contains: [sid32] description=Debian Sid i386 (sid32) location=/opt2/sid-386-chroot priority=3 users=carlo groups=root root-groups=root personality=linux32 type=plain run-exec-scripts=true run-setup-scripts=true -- Carlo Wood <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#463343: schroot: Does not end sessions automatically.
also sprach Carlo Wood <[EMAIL PROTECTED]> [2008.01.31.0151 +0100]: > I've been using schroot as: $ schroot -c sid32 > for some time. At some point 'locate' stopped > working - I didn't know why. The reason, in the > end, turns out to be that updatedb aborts silently > when the tmp partition used by sort runs full. I see the same here when using tarballs. Are you also using tarballs (type=file), Carlo? -- .''`. martin f. krafft <[EMAIL PROTECTED]> : :' : proud Debian developer, author, administrator, and user `. `'` http://people.debian.org/~madduck - http://debiansystem.info `- Debian - when you have better things to do than fixing systems digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/)
Bug#463343: schroot: Does not end sessions automatically.
Package: schroot Version: 1.1.5-1.1 Severity: important I've been using schroot as: $ schroot -c sid32 for some time. At some point 'locate' stopped working - I didn't know why. The reason, in the end, turns out to be that updatedb aborts silently when the tmp partition used by sort runs full. As a result of schroot never closing sessions, the amount of files that updatedb found resulted in a tmp file of 8GB! At this moment I have: hikaru:~>ls /var/lib/schroot/mount sid32-11e8d299-cb3f-4991-bbf3-9e6d300260a2/ sid32-141009d2-97dc-472b-9e32-7b98ba7a9abf/ sid32-1dd09ea0-3a35-419b-9ac6-a3df279af0bd/ sid32-1fffb5c9-2b1c-4019-a8f8-eb0047e916a5/ sid32-22dcf5cc-eea4-4294-a150-8a8a91306734/ sid32-2e4b07cd-5157-42bd-a41a-81d3a68964c8/ sid32-32afbf8a-1931-4707-b22b-a6f2b6c63b19/ sid32-3ac7451d-b19a-42af-9413-57eb787315e1/ sid32-4af4ece3-1a83-40c0-92cc-21e2ac501076/ sid32-4b75b6b6-b3a5-49d2-8cf2-85b99149059f/ sid32-526c633c-5a1c-47cd-97eb-658f775f7ffc/ sid32-52a74b46-ba3a-4759-8f9a-e35865ce8a34/ sid32-549a7233-b621-4547-8ff7-ea1f1d9792ae/ sid32-56633f72-5037-4b9e-a576-d1c08f6db3e3/ sid32-56786030-90ea-433d-8af5-19cdce66e74d/ sid32-5a531ecb-1ea2-41d6-959b-ae3d66fe47fa/ sid32-5b07e7b1-3538-4fc8-93a6-1b24a0664f82/ sid32-5e20524c-5f30-41dc-95f5-568b02078f2d/ sid32-67a8c56e-a29e-4d4e-8395-4b61e3ac3851/ sid32-6c56ee9a-0dfd-4bb3-bce2-d110c238bdf7/ sid32-6cbac6f3-5f47-478a-a110-2f74a70934a4/ sid32-7474bbc8-74c9-41eb-8b2f-cb1c1968883d/ sid32-92a8d79c-ba88-44cf-a118-585108dc72ff/ sid32-94a6ced1-c7f1-4e1d-9e4a-7e86e3c10857/ sid32-9a8fdccb-6f29-46f8-9591-5ace3910673f/ sid32-9eadb480-dbf2-42c6-90eb-09624475c525/ sid32-a2a1e8c2-24ad-4a36-b9a9-80f1a5de8820/ sid32-a32166ae-5421-4299-92c5-4630a9535bbd/ sid32-ac8efea1-8489-41d2-853a-988f5657dd87/ sid32-add8e4e3-48bd-4dbd-b558-536129b37dcf/ sid32-bd3fbfca-6d43-40ba-b4e5-150e6b450183/ sid32-be5ab2ff-df56-4fa2-8864-5495b3223a71/ sid32-c1c2db1e-7eed-45ba-be9c-7e15f84448f3/ sid32-c84448a9-0a57-4c2a-9a41-c60e0591ba06/ sid32-df306a93-1d63-494d-a726-c924190900c6/ sid32-e40363ba-aa87-4e83-ab2a-d71193d8837a/ sid32-e5921bf6-0d5b-4c0a-bb7a-82240c01ad66/ sid32-e68548a8-1987-4006-acce-262b28df3ff1/ sid32-fa2a26d0-6430-4737-835d-b2d988c5dc1f/ I have no idea why the sessions aren't closed. I just run, from the command line, schroot -c sid32 and when I'm done in 32bit mode, I exit again to return to my 64bit shell that I started schroot from. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.22-3-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages schroot depends on: ii libboost-program-option 1.34.1-2 program options library for C++ ii libboost-regex1.34.11.34.1-2 regular expression library for C++ ii libc6 2.7-6GNU C Library: Shared libraries ii libgcc1 1:4.3-20080116-1 GCC support library ii liblockdev1 1.0.3-1.2Run-time shared library for lockin ii libpam0g0.99.7.1-5 Pluggable Authentication Modules l ii libstdc++6 4.3-20080116-1 The GNU Standard C++ Library v3 ii libuuid11.40.3-1 universally unique id library ii schroot-common 1.1.5-1.1common files for schroot schroot recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]