dab fails on Debian 5.0 (with fix)

ohmer

New Member
Mar 2, 2010
27
1
3
I had the message "unable to parse ve status" when I tried "dab bootstrap".

I found the problem at /usr/share/perl5/PVE/DAB.pm:

Code:
if ($res =~ m/^[B]CTID[/B]\s+$veid\s+(exist|deleted)\s+(mounted|unmounted)\s+(running|down)$/) {

I replaced with:

Code:
if ($res =~ m/^[B]VEID[/B]\s+$veid\s+(exist|deleted)\s+(mounted|unmounted)\s+(running|down)$/) {
 
Is this necessary? I have been building templates on ProxMox v1.3 and v1.4 and I have dab bootstrap as one of the first lines in every Makefile I use and have not had such an error at all. If it is the Line 741 in the said file you are referring to and this issue is specific to ProxMox v1.5, do let us know.

The beginning of each Makefile is generally:
Code:
BASEDIR:=$(shell dab basedir)

all: info/init_ok
        dab bootstrap
 
You didn,t understand what I mean.

I'm not trying to build a debian template.

I'm trying to build a templace with dab on a Debian systerm (lenny 64 bits).

It's working ounce this line is fixed.
 
I am also referring to building templates using dab on Debian and not merely building Debian templates. But I have successfully built Joomla, WordPress, vTigerCRM, OpenGOO, etc using DAB on Debian 64 bit Lenny but as 32 bit Debian based templates successfully. I have done so on ProxMox v1.3 and 1.4. Hence I wanted to know if it is an issue with ProxMox v1.5 only.

The contents of the Makefile used for my successful Joomla Template is:
Code:
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/joomla
 tar -xzf Joomla_1.5.15-Stable-Full_Package.tar.gz -C ${BASEDIR}/var/www/joomla
 touch ${BASEDIR}/var/www/joomla/configuration.php
 find ${BASEDIR}/var/www/joomla -type f -exec chmod 644 \{\} \;
 find ${BASEDIR}/var/www/joomla -type d -exec chmod 755 \{\} \;
 dab exec chown -R www-data.www-data /var/www/joomla
 install -m 0644 joomla.conf ${BASEDIR}/etc/apache2/sites-available/joomla
 dab exec a2enmod rewrite
 dab exec a2dissite default
 dab exec a2ensite joomla
 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 *~
 

Attachments

  • JoomlaMake1515..zip
    1.5 KB · Views: 0
Mmmm it's strange. I tried to build 2 ubuntu template and one debian and they all failled until I patch the dab perl script.
 
On my Debian lenny system (in a VirtualBox environnement)
openvz:~# vzctl status 90001
VEID 90001 exist unmounted down
openvz:~# cat /etc/debian_version
5.0.4
openvz:~# uname -a
Linux openvz 2.6.26-2-openvz-amd64 #1 SMP Tue Mar 9 23:10:10 UTC 2010 x86_64 GNU/Linux
openvz:~#

On my Proxmox 1.5 node
node1:/# vzctl status 901
CTID 901 exist mounted running
node1:/# cat /etc/debian_version
5.0.4
node1:/g# uname -a
Linux node1 2.6.18-2-pve #1 SMP Mon Feb 1 10:45:26 CET 2010 x86_64 GNU/Linux
node1:/#
 
Last edited:

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!