Bug 746545 - Could not generate CA certificate. Exit value: 1.
Summary: Could not generate CA certificate. Exit value: 1.
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Spacewalk
Classification: Community
Component: Installation
Version: 1.5
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jan Pazdziora (Red Hat)
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space16
TreeView+ depends on / blocked
 
Reported: 2011-10-17 03:05 UTC by dylan
Modified: 2011-12-09 14:31 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-12-09 14:31:20 UTC
Embargoed:


Attachments (Terms of Use)

Description dylan 2011-10-17 03:05:01 UTC
Description of problem:
When i use the spacewalk-setup to setup my spacewalk server, the error occured. I've search google for answer, but it turn out nothing.

* Configuring tomcat.
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file web.xml.rej
* Configuring jabberd.
* Creating SSL certificates.
** SSL: Generating CA certificate.
Could not generate CA certificate.  Exit value: 1.
Please examine /var/log/rhn/rhn-installation.log for more information.

Version-Release number of selected component (if applicable):
spacewalk 1.6 and i use postgre 8.4.7 

How reproducible:
Not quite sure. I am configure it several times since the tomcat is always not working. But suddenly the postgres failled to populate the database. when rebuild the postgre by setting a new db and dbuser. The postgres works again, but another error shows up:
     Could not generate CA certificate.
 
Actual results:
The Logs shows that:
Installation log of Spacewalk
Command: /usr/bin/spacewalk-setup

Enabling spacewalk services...
Done
/root/.gnupg/pubring.gpg
------------------------
pub   1024D/F24F1B08 2002-04-23 [expired: 2004-04-22]
uid                  Red Hat, Inc (Red Hat Network) <rhn-feedback>

gpg: key F24F1B08: "Red Hat, Inc (Red Hat Network) <rhn-feedback>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
/var/lib/rhn/rhn-satellite-prep/etc/rhn/cluster.ini
/var/lib/rhn/rhn-satellite-prep/etc/rhn/rhn.conf.orig
/var/lib/rhn/rhn-satellite-prep/etc/rhn/rhn.conf
/var/lib/rhn/rhn-satellite-prep/etc -> /etc
/var/lib/rhn/rhn-satellite-prep/etc/rhn -> /etc/rhn
/var/lib/rhn/rhn-satellite-prep/etc/rhn/cluster.ini -> /etc/rhn/cluster.ini
 * Making backup of /etc/rhn/cluster.ini to /etc/sysconfig/rhn/backup-2011-10-17-10:32/etc/rhn/cluster.ini
/var/lib/rhn/rhn-satellite-prep/etc/rhn/rhn.conf -> /etc/rhn/rhn.conf
 * Making backup of /etc/rhn/rhn.conf to /etc/sysconfig/rhn/backup-2011-10-17-10:32/etc/rhn/rhn.conf

...working...error: not an rpm package

ERROR: unhandled exception occurred:
Generating private CA key: /root/ssl-build/RHN-ORG-PRIVATE-SSL-KEY
Rotated: RHN-ORG-PRIVATE-SSL-KEY --> RHN-ORG-PRIVATE-SSL-KEY.1

Generating public CA certificate: /root/ssl-build/RHN-ORG-TRUSTED-SSL-CERT
Using distinguishing variables:
    --set-country      = "CN"
    --set-state        = "ZheJiang"
    --set-city         = "HangZhou "
    --set-org          = "Spacewalk Org"
    --set-org-unit     = "spacewalk"
    --set-common-name  = "HuaWei"
    --set-email        = ""
Rotated: RHN-ORG-TRUSTED-SSL-CERT --> RHN-ORG-TRUSTED-SSL-CERT.1
Traceback (most recent call last):
  File "/usr/bin/rhn-ssl-tool", line 58, in <module>
    sys.exit(mod.main() or 0)
  File "/usr/share/rhn/certs/rhn_ssl_tool.py", line 1229, in main
    ret = _main() or 0
  File "/usr/share/rhn/certs/rhn_ssl_tool.py", line 1176, in _main
    genCaRpm(DEFS, options.verbose)
  File "/usr/share/rhn/certs/rhn_ssl_tool.py", line 703, in genCaRpm
    filename = sortRPMs(filenames)[-1]
  File "/usr/lib/python2.6/site-packages/spacewalk/common/rhn_rpm.py", line 299, in sortRPMs
    helper = map(lambda x: (get_package_header(x), x), rpms)
  File "/usr/lib/python2.6/site-packages/spacewalk/common/rhn_rpm.py", line 299, in <lambda>
    helper = map(lambda x: (get_package_header(x), x), rpms)
  File "/usr/lib/python2.6/site-packages/spacewalk/common/rhn_rpm.py", line 214, in get_package_header
    hdr = SHARED_TS.hdrFromFdno(file_desc)
  File "/usr/lib64/python2.6/site-packages/rpm/transaction.py", line 154, in hdrFromFdno
    raise rpm.error("error reading package header")
_rpm.error: error reading package header


   Really need help, i am really stucked!

Comment 1 Jan Pazdziora (Red Hat) 2011-12-09 14:31:20 UTC
I'd recommend either retrying with the latest nightly, or using released (== 1.5) Spacewalk version. You might have downloaded the nightly snapshot at the time when something was not quite right.

Also, from your description, I'm not quite sure what steps you actually did -- you mention PostgreSQL, tomcat, rerunning the installation ...

Please start anew and stop and post logs / output from the console at the first problem you hit. We need to tackle one problem at a time.


Note You need to log in before you can comment on or make changes to this bug.