Subject: Re: [vserver] incompatible new vserver guest layout
From: Eugen Leitl <eugen@leitl.org>
Date: Mon, 8 Sep 2008 12:01:03 +0200

On Sun, Sep 07, 2008 at 09:28:48PM +0200, Daniel Hokka Zakrisson wrote:

> Your tarball appears to be of the guest's content, i.e. /vservers/<guest>, but you're
> replacing the guest's configuration directory, i.e. /etc/vservers/<guest>, with it.
If you
> instead extract it in the guest's root directory everything should be fine...

Oops, you're completely correct. It's been a while since I did something that stupid.

Server starts up correctly now.

One problem left, though:

v74:/# tail -f /var/log/mail.log
Sep  8 09:49:42 v74 postfix/cleanup[4225]: fatal: trace: remove 399B344000D8 log: Permission
denied
Sep  8 09:49:43 v74 postfix/pickup[4223]: warning: premature end-of-input on public/cleanup
socket while reading input attribute name
Sep  8 09:49:43 v74 postfix/master[4218]: warning: process /usr/lib/postfix/cleanup
pid 4225 exit status 1
Sep  8 09:49:43 v74 postfix/master[4218]: warning: /usr/lib/postfix/cleanup: bad command
startup -- throttling
Sep  8 09:50:00 v74 postfix/master[4218]: terminating on signal 15
Sep  8 09:50:11 v74 postfix/master[4507]: daemon started -- version 2.3.8, configuration
/etc/postfix
Sep  8 09:50:11 v74 postfix/cleanup[4514]: fatal: trace: remove D3FD34400378 log: Permission
denied
Sep  8 09:50:12 v74 postfix/pickup[4512]: warning: premature end-of-input on public/cleanup
socket while reading input attribute name
Sep  8 09:50:12 v74 postfix/master[4507]: warning: process /usr/lib/postfix/cleanup
pid 4514 exit status 1
Sep  8 09:50:12 v74 postfix/master[4507]: warning: /usr/lib/postfix/cleanup: bad command
startup -- throttling
Sep  8 09:51:12 v74 postfix/cleanup[4520]: fatal: trace: remove D4E2744000E2 log: Permission
denied
Sep  8 09:51:13 v74 postfix/pickup[4512]: warning: premature end-of-input on public/cleanup
socket while reading input attribute name

I've switched off SELinux on vserver host to make
sure that's not it.

It looks as if the ownerships and flags on postfix
are messed up. Uninstalling and reinstalling postfix
doesn't help. 

Has anyone an idea how that could happen? I packed up the old
(sarge) vserver guest using tar zcvf. I built a new server using

#!/bin/sh
set -x
IP=$1

vserver v${IP} build --force -n v${IP} --hostname v${IP}.ativel.com --context ${IP}
--interface eth0:85.10.225.${IP}/24 -m debootstrap -- -d lenny 
echo ${IP} > /etc/vservers/v${IP}/context
echo "default" > /etc/vservers/v${IP}/apps/init/mark

I then moved away the vserver directory in /var/lib/vservers and
overwrote it with the tarball from the old vserver guest.

That used to work.

-- 
Eugen* Leitl <a href="leitlhttp://leitl.org">leitl</a> http://leitl.org
______________________________________________________________
ICBM: 48.07100, 11.36820 http://www.ativel.com http://postbiota.org
8B29F6BE: 099D 78BA 2FD3 B014 B08A  7779 75B0 2443 8B29 F6BE