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!
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.