Package: man-db
Version: 2.5.6-2
Severity: normal

G'day.  I don't know if this is correctly a man-db bug, or a dpkg bug:

Since man-db has started using start-stop-daemon in the daily and weekly
cron.d scripts it has been failing to run inside the OpenVZ containers I use
to provide "virtual" machines for a bunch of services.

Specifically, this failure:

/etc/cron.daily/man-db:
start-stop-daemon: Unable to alter IO priority to mask 24583 (Operation not 
permitted)
run-parts: /etc/cron.daily/man-db exited with return code 2

The second line is no great surprise: within the virtual environment (VE)
access to various kernel level features, including setting your own I/O
priority, is deliberately restricted.

Having the man-db nightly processes run with a lower I/O priority is nice, but
at this point it doesn't run them at all inside the VE because of this
invocation.

It would be good to consider that a non-fatal error.  I notice, in fact, that
man-db already tries to work around the free 'vserver' environment.

If you want to continue to do that I suggest either using the 'virt-what'
tool, which makes it a problem for someone /else/ to identify every new VM
type out there, or to make the failure to set an I/O scheduler non-fatal.

However, to detect running inside an OpenVZ VE you can check for
/proc/user_beancounters (deprecated, but present), or /proc/vz/{veinfo,vestat}
existing.

Determining the different between the "hardware" node, which can set I/O
priority, and the VE, which can't, is best done by checking for the absence of
/proc/vz/version, I think.

Regards,
        Daniel

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages man-db depends on:
ii  bsdmainutils           6.1.11            collection of more utilities from 
ii  debconf [debconf-2.0]  1.5.27            Debian configuration management sy
ii  dpkg                   1.15.4            Debian package management system
ii  groff-base             1.20.1-5          GNU troff text-formatting system (
ii  libc6                  2.9-26            GNU C Library: Shared libraries
ii  libgdbm3               1.8.3-6           GNU dbm database routines (runtime
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

man-db recommends no packages.

Versions of packages man-db suggests:
ii  conkeror [www-browse 0.9~git090624-1     keyboard focused web browser with 
ii  groff                1.20.1-5            GNU troff text-formatting system
ii  iceweasel [www-brows 3.0.14-1            lightweight web browser based on M
ii  konqueror [www-brows 4:4.3.1-1           KDE 4's advanced file manager, web
ii  less                 436-1               pager program similar to more
ii  lynx-cur [www-browse 2.8.8dev.1-1        Text-mode WWW Browser with NLS sup
ii  opera [www-browser]  10.00.4585.gcc4.qt3 The Opera Web Browser
ii  w3m [www-browser]    0.5.2-2.1           WWW browsable pager with excellent

-- debconf information:
  man-db/build-database: true
  man-db/rebuild-database: true
* man-db/install-setuid: false

-- 
✣ Daniel Pittman            ✉ dan...@rimspace.net            ☎ +61 401 155 707
               ♽ made with 100 percent post-consumer electrons
   Looking for work?  Love Perl?  In Melbourne, Australia?  We are hiring.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to