DAB fails on ProxMox v1.3

apmuthu

Renowned Member
Feb 26, 2009
808
8
83
Chennai - India & Singapore
github.com
I tried to build the FrontAccounting Template again just now and it failed, though I was successfull two weeks ago - no changes in the Makefile, dab.conf and frontaccount.conf files used in building it.

Makefile:
Code:
# cat Makefile
 
BASEDIR:=$(shell dab basedir)
all: info/init_ok
        dab bootstrap
        dab task mysql --password admin
        dab install apache2-mpm-prefork apache2
        dab task php
        sed -e 's/^\s*display_errors\s*=\s*On/display_errors = Off/' -i ${BASEDIR}/etc/php5/apache2/php.ini
        dab install php5-mysql
        dab install php5-curl
        dab install zip unzip
#       mkdir ${BASEDIR}/var/www/frontaccount
        tar -xzf frontaccount-2.2.4.tar.gz -C ${BASEDIR}/var/www/
#       touch ${BASEDIR}/var/www/frontaccount/configuration.php
        find ${BASEDIR}/var/www/frontaccount -type f -exec chmod 644 \{\} \;
        find ${BASEDIR}/var/www/frontaccount -type d -exec chmod 755 \{\} \;
        dab exec chown -R www-data.www-data /var/www/frontaccount
        install -m 0644 frontaccount.conf ${BASEDIR}/etc/apache2/sites-available/frontaccount
        dab exec a2enmod rewrite
        dab exec a2dissite default
        dab exec a2ensite frontaccount
        dab finalize
 
info/init_ok: dab.conf
        dab init
        touch $@
 
.PHONY: clean
clean:
        dab clean
        rm -f *~
 
.PHONY: dist-clean
dist-clean:
        dab dist-clean
        rm -f *~

When we run make, we get:
Code:
# make
allocated VE 90000
dab init
download: [URL]http://ftp.debian.org/debian/dists/lenny/Release[/URL]
download: [URL]http://ftp.debian.org/debian/dists/lenny/Release.gpg[/URL]
download: [URL]http://ftp.debian.org/debian/dists/lenny/main/binary-i386/Packages.gz[/URL]
download: [URL]http://ftp.debian.org/debian/dists/lenny/contrib/binary-i386/Packages.gz[/URL]
download: [URL]http://security.debian.org/dists/lenny/updates/Release[/URL]
download: [URL]http://security.debian.org/dists/lenny/updates/Release.gpg[/URL]
download: [URL]http://security.debian.org/dists/lenny/updates/main/binary-i386/Packages.gz[/URL]
download: [URL]http://security.debian.org/dists/lenny/updates/contrib/binary-i386/Packages.gz[/URL]
touch info/init_ok
dab bootstrap
initialize VE 90000
command 'vzctl mount 90000' failed with exit code 63
command 'vzctl mount 90000' failed with exit code 63
make: *** [all] Error 63
After a make clean, if we try to manually run the contents of the Makefile, we get:
Code:
# dab bootstrap
allocated VE 90000
initialize VE 90000
command 'vzctl mount 90000' failed with exit code 63
command 'vzctl mount 90000' failed with exit code 63
The versions of the files in the system are:
Code:
# pveversion -v
pve-manager: 1.3-1 (pve-manager/1.3/4023)
qemu-server: 1.0-14
pve-kernel: 2.6.24-11
pve-kvm: 86-3
pve-firmware: 1
vncterm: 0.9-2
vzctl: 3.0.23-1pve3
vzdump: 1.1-2
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
On trying to remove the dab package, I get:
Code:
dpkg: unrecoverable fatal error, aborting:
 unable to fill /var/lib/dpkg/updates/tmp.i with padding: No space left on device
E: Sub-process /usr/bin/dpkg returned an error code (2)
I am able to build the same template correctly on ProxMox v1.4.
 
Last edited:
Removed the file: /var/lib/dpkg/updates/tmp.i
Then tried removing dab:
Code:
# apt-get remove dab
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  binutils make
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  dab
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 38588 files and directories currently installed.)
Removing dab ...
Processing triggers for man-db ...
/usr/bin/mandb: can't write to /var/cache/man/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/pl/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/de/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/pl.UTF-8/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/fi/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/es/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/ru/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/it.ISO8859-1/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/zh_CN/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/gl/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/fr.UTF-8/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/pt_BR/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/sv/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/ja/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/it.UTF-8/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/fr.ISO8859-1/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/fr/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/hu/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/ko/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/cs/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/zh_TW/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/id/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/tr/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/it/6659: No space left on device
/usr/bin/mandb: can't write to /var/cache/man/pl.ISO8859-2/6659: No space left on device
/usr/bin/mandb: can't create index cache /var/cache/man/oldlocal/6659: No space left on device
/usr/bin/mandb: can't create index cache /var/cache/man/local/6659: No space left on device
Again tried installing dab:
Code:
# apt-get install dab
Reading package lists... Error!
E: Unable to write mmap - msync (28 No space left on device)
E: The package lists or status file could not be parsed or opened.

The same even after a reboot of the Proxmox machine.

What can be done?
 
Last edited:
I find my root full:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/pve/root 95G 95G 0 100% /
tmpfs 4.0G 0 4.0G 0% /lib/init/rw
udev 10M 2.7M 7.4M 27% /dev
tmpfs 4.0G 0 4.0G 0% /dev/shm
/dev/mapper/pve-data 1.3T 71G 1.2T 6% /var/lib/vz
/dev/sda1 504M 33M 446M 7% /boot
overflow 1.0M 20K 1004K 2% /tmp
Where can I reach this folder to check?
# fdisk -l
Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 * 1 66 524288 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 66 182401 1464611712 8e Linux LVM
Disk /dev/dm-0: 7516 MB, 7516192768 bytes
255 heads, 63 sectors/track, 913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 103.0 GB, 103079215104 bytes
255 heads, 63 sectors/track, 12532 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 1384.8 GB, 1384875294720 bytes
255 heads, 63 sectors/track, 168368 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-2 doesn't contain a valid partition table
Even a apt-get clean does not recover any space.

On my ProxMox v1.4 setup, I have ample space in root:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/pve/root 95G 37G 53G 42% /
tmpfs 3.9G 0 3.9G 0% /lib/init/rw
udev 10M 2.7M 7.4M 27% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/mapper/pve-data 1.3T 44G 1.2T 4% /var/lib/vz
/dev/sda1 504M 50M 430M 11% /boot

Both machines (Proxmox v1.3 and v1.4) have the same hard disk size - 1.5TB - no raid. Both have the same /etc/fstab file
Code:
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext3 errors=remount-ro 0 1
/dev/pve/data /var/lib/vz ext3 defaults 0 1
/dev/sda1 /boot ext3 defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0
 
Last edited:
Found the resource hog: My Backup Folder was in /var/backups which was part of the pve-root (mounted at /). I now created a folder /var/lib/vz/backups and moved the former's contents (pve-data is mounted at /var/lib/vz) - the pve-root now shows that it uses far less space. Don't know how to set right the dab install as yet though!
 
Found the resource hog: My Backup Folder was in /var/backups which was part of the pve-root (mounted at /). I now created a folder /var/lib/vz/backups and moved the former's contents (pve-data is mounted at /var/lib/vz) - the pve-root now shows that it uses far less space. Don't know how to set right the dab install as yet though! Found this through:
find -type f -size 100000k
 
Solved this issue at last. It was a pve-root issue since it was full. I finally brought it down to a respectable size. Also I did the following since dab_1.1-3 is not in the location that ProxMox v1.3 has been directed to look at:
Code:
apt-get remove dab
I did not use the
Code:
# apt-get autoremove
to remove binutils and make as they were from the original install of v1.3. However, I expect they got overwritten by installing the new dab
Code:
wget  [URL]http://download.proxmox.com/debian/dists/lenny/pve/binary-amd64/dab_1.1-4_all.deb[/URL]
dpkg -i dab_1.1-4_all.deb
rm dab_1.1-4_all.deb
I am now able to build ProxMox appliances again, on v1.3!
The versions on it now are:
Code:
# pveversion -v
pve-manager: 1.3-1 (pve-manager/1.3/4023)
qemu-server: 1.0-14
pve-kernel: 2.6.24-11
pve-kvm: 86-3
pve-firmware: 1
vncterm: 0.9-2
vzctl: 3.0.23-1pve3
vzdump: 1.1-2
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!