dtc-xen wont install, htpasswd invocation error

Bug #462015 reported by Lebeko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dtc-xen (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: dtc-xen

Tries to sen passwd directly as a htpasswd parameter
$HTPASSWD -cb $DTCXEN_ETCPATH/htpasswd ${conf_soap_login} ${conf_soap_pass}
correct approach:
echo ${conf_soap_pass} | $HTPASSWD -c $DTCXEN_ETCPATH/htpasswd ${conf_soap_login}

Changing that in .postinst fixed the problem.

Attempted installation:
Setting up dtc-xen (0.3.27-1) ...
===> Generating SSL certs for the SOAP python server
Generating a 1024 bit RSA private key
.....................................++++++
.....++++++
writing new private key to 'privkey.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (eg, YOUR name) []:Email Address []:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:An optional company name []:writing RSA key
Signature ok
subject=/C=US/ST=the-state/L=My-ocation/O=GPLHost/OU=No-unit/CN=node2001.conf_soap_domain_name/emailAddress=webmaster@node2001.conf_soap_domain_name
Getting Private key
===> Generating /etc/dtc-xen/htpasswd file for the SOAP python server
Usage: htpasswd [-c] passwordfile username
The -c flag creates a new file.
dpkg: error processing dtc-xen (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libruby1.8 (1.8.7.174-1) ...

Setting up vim-runtime (2:7.2.245-2ubuntu2) ...
Processing /usr/share/vim/addons/doc

Setting up vim-nox (2:7.2.245-2ubuntu2) ...
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/vim (vim) in auto mode.
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/vimdiff (vimdiff) in auto mode.
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/rvim (rvim) in auto mode.
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/rview (rview) in auto mode.
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/vi (vi) in auto mode.
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/view (view) in auto mode.
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/ex (ex) in auto mode.

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 dtc-xen
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up dtc-xen (0.3.27-1) ...
===> Generating SSL certs for the SOAP python server
Generating a 1024 bit RSA private key
...............++++++
....................................++++++
writing new private key to 'privkey.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (eg, YOUR name) []:Email Address []:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:An optional company name []:writing RSA key
Signature ok
subject=/C=US/ST=the-state/L=My-ocation/O=GPLHost/OU=No-unit/CN=node2001.conf_soap_domain_name/emailAddress=webmaster@node2001.conf_soap_domain_name
Getting Private key
===> Generating /etc/dtc-xen/htpasswd file for the SOAP python server
Usage: htpasswd [-c] passwordfile username
The -c flag creates a new file.
dpkg: error processing dtc-xen (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 dtc-xen
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

ProblemType: Bug
Architecture: i386
Date: Tue Oct 27 17:17:53 2009
DistroRelease: Ubuntu 9.10
Package: dtc-xen 0.3.27-1
PackageArchitecture: all
ProcEnviron:
 LANG=en_ZA.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic-pae
SourcePackage: dtc-xen
Uname: Linux 2.6.31-14-generic-pae i686

Revision history for this message
Lebeko (lpoulo) wrote :
Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

This is a very outdated version of dtc-xen that you are talking about here. Please upgrade to 0.5.x and let us know if the problem is still there (it should not).

Thomas

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.