dab 1.1.9 on ProxMox 1.7 fails building squeeze template for vtigercrm

Discussion in 'Debian Appliance Builder' started by apmuthu, Dec 15, 2010.

  1. apmuthu

    apmuthu Member

    Joined:
    Feb 26, 2009
    Messages:
    744
    Likes Received:
    3
    Since dab v1.1.9 on ProxMox v1.7 was failing to build vtigercrm on lenny I tried it on squeeze and it failed as the mysql_randompw script was failing and a rc2.d file for reboot was corrupt.

    The appliance build logfile is attached - View attachment logfile6.zip

    /var/lib/dpkg/status in the built template's container (90000) shows:
    Code:
    Package: module-init-tools
    Status: purge ok not-installed
    Several warnings in the logfile like the following are present:
    Code:
    Setting up initscripts (2.88dsf-13) ...
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
    .
    .
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
    Setting up util-linux (2.17.2-3.3) ...
    update-alternatives: using /bin/more to provide /usr/bin/pager (pager) in auto mode.
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
    Setting up sysvinit (2.88dsf-13) ...
    .
    .
    Setting up procps (1:3.2.8-9) ...
    update-alternatives: using /usr/bin/w.procps to provide /usr/bin/w (w) in auto mode.
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
    invoke-rc.d: policy-rc.d denied execution of start.
    Setting up ssl-cert (1.0.26) ...
    Setting up libk5crypto3 (1.8.3+dfsg-3) ...
    Setting up whiptail (0.52.11-1) ...
    Setting up ifupdown (0.6.10) ...
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
    Setting up libreadline6 (6.1-3) ...
    Setting up logrotate (3.7.8-6) ...
    Setting up postfix (2.7.1-1) ...
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
    Adding group `postfix' (GID 104) ...
    Done.
    .
    .
    Setting up openssh-server (1:5.5p1-5+b1) ...
    Creating SSH2 RSA key; this may take some time ...
    Creating SSH2 DSA key; this may take some time ...
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
    invoke-rc.d: policy-rc.d denied execution of restart.
    .
    .
    Setting up tasksel (2.85) ...
    update-rc.d: using dependency based boot sequencing
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
    unpack: libx11-data
    Further:
    Code:
    Setting up mysql-server-5.1 (5.1.49-3) ...
    invoke-rc.d: policy-rc.d denied execution of stop.
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
    invoke-rc.d: policy-rc.d denied execution of start.
    101215 15:30:54 [Note] Plugin 'FEDERATED' is disabled.
    101215 15:30:54  InnoDB: Started; log sequence number 0 44233
    101215 15:30:54  InnoDB: Starting shutdown...
    101215 15:30:59  InnoDB: Shutdown completed; log sequence number 0 44233
    101215 15:30:59 [Note] Plugin 'FEDERATED' is disabled.
    101215 15:30:59  InnoDB: Started; log sequence number 0 44233
    101215 15:30:59  InnoDB: Starting shutdown...
    101215 15:31:05  InnoDB: Shutdown completed; log sequence number 0 44233
    update-rc.d: using dependency based boot sequencing
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
    dab: install apache2-mpm-prefork apache2
     
    #1 apmuthu, Dec 15, 2010
    Last edited: Dec 15, 2010
  2. apmuthu

    apmuthu Member

    Joined:
    Feb 26, 2009
    Messages:
    744
    Likes Received:
    3
    <del>
    It appears that there is a typo in /etc/rc6.d/S00vzreboot
    There is a ">" character instead of the period (.) character.
    </del>
     
    #2 apmuthu, Dec 15, 2010
    Last edited: Dec 15, 2010
  3. apmuthu

    apmuthu Member

    Joined:
    Feb 26, 2009
    Messages:
    744
    Likes Received:
    3
  4. apmuthu

    apmuthu Member

    Joined:
    Feb 26, 2009
    Messages:
    744
    Likes Received:
    3
    Lines 17-19 in /usr/lib/dab/scripts/mysql_randompw :
    Code:
    if [ "X${HOSTNAME}" == "Xlocalhost" ] ; then
        exit 0;
    fi
    should be replaced with
    Code:
    if [ "X${HOSTNAME}" = "Xlocalhost" ] ; then
        exit 0;
    fi
    for squeeze template builds atleast. Otherwise the "==" operator gets an error.

    It has already been implemented in /usr/lib/dab/scripts/ssh_gen_host_keys.Also the spaces before the exit 0; statement may be replaced with a tab (in both files).
     
    #4 apmuthu, Dec 15, 2010
    Last edited: Dec 15, 2010
  5. apmuthu

    apmuthu Member

    Joined:
    Feb 26, 2009
    Messages:
    744
    Likes Received:
    3
    In the squeeze template for vtigercrm when the
    Code:
    dab task mysql --password random
    is invoked, although line 1585 of DAB.pm tries to put it in runlevel 2 and priority 20, we see that it is always placed in runlevel 2 priority 01.
    Tried
    Code:
    dab task mysql --password=random
    as well to no avail.
     
  6. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,459
    Likes Received:
    310
    That file is auto-generated by openvz - please ignore the warning (known bug, but harmless).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,459
    Likes Received:
    310
    Take a look at the Makefile in the standard squeeze template:
    Code:
    all: info/init_ok
            dab bootstrap
            dab install file-rc
            dab finalize
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,459
    Likes Received:
    310
    thanks - good catch - will fix that in the next release.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,459
    Likes Received:
    310
    try file-rc
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. apmuthu

    apmuthu Member

    Joined:
    Feb 26, 2009
    Messages:
    744
    Likes Received:
    3
    It now appears to build correctly, but only if the sequence is like this:
    Code:
    all: info/init_ok
            dab bootstrap
    # All other code
            dab install file-rc
            dab finalize
    
     
  11. apmuthu

    apmuthu Member

    Joined:
    Feb 26, 2009
    Messages:
    744
    Likes Received:
    3
    Built and tested the vTigerCRM v5.2.1 Appliance on squeeze and it works now!
    Thanks Dietmar.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice