LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-15-2014, 09:31 PM   #1
brian665
LQ Newbie
 
Registered: Dec 2014
Posts: 6

Rep: Reputation: Disabled
Problems installing spacewalk server


I am attempting to install spacewalk but have encountered a problem.

I get to the point where the installation program, when using postgresql attempts to restart xinetd and tftpd services. All it does is hang, printing a series of little symbols on the screen continiously. I've let it running for four days and it still didn't go anyway.

The screen dump is:
_____________________

# spacewalk-setup --disconnected
** Database: Setting up database connection for PostgreSQL backend.
Database "rhnschema" does not exist
** Database: Installing the database:
Database "rhnschema" does not exist
** Database: Installing the database:
** Database: This is a long process that is logged in:
** Database: /var/log/rhn/install_db.log
*** Progress: #
** Database: Installation complete.
** Database: Populating database.
*** Progress: #####################################
* Setting up users and groups.
** GPG: Initializing GPG and importing key.
* Performing initial configuration.
* Activating Spacewalk.
** Loading Spacewalk Certificate.
** Verifying certificate locally.
** Activating Spacewalk.
* Enabling Monitoring.
* Configuring apache SSL virtual host.
Should setup configure apache's default ssl server for you (saves original ssl.conf) [Y]?
* Configuring tomcat.
* Configuring jabberd.
* Creating SSL certificates.
CA certificate password?
Re-enter CA certificate password?
Organization? Group
Organization Unit [pervyum050]?
Email Address [spacewalk]?
City? Perth
State? WA
Country code (Examples: "US", "JP", "IN", or type "?" to see a list)? AU
** SSL: Generating CA certificate.
** SSL: Deploying CA certificate.
** SSL: Generating server certificate.
** SSL: Storing SSL certificates.
* Deploying configuration files.
* Update configuration in database.
* Setting up Cobbler..
Processing /etc/ cobbler/ modules.conf
* Leaving /etc/ cobbler/ modules.conf unmodified
Processing /etc/ cobbler/ settings
* Leaving /etc/ cobbler/ settings unmodified
Cobbler requires tftp and xinetd services be turned on for PXE provisioning functionality. Enable these services [Y]? Y
* Restarting services.
o

___________________________________

Anybody got any ideas?
 
Old 12-17-2014, 12:18 AM   #2
matonb
LQ Newbie
 
Registered: Aug 2006
Posts: 14

Rep: Reputation: 0
Which version of spacewalk and on which RedHat release ?

First impression though is that the database you're trying to use hasn't been created.

** Database: Setting up database connection for PostgreSQL backend.
Database "rhnschema" does not exist
** Database: Installing the database:
Database "rhnschema" does not exist

From memory, you need to create the database and a spacewalk postgres user before installing.
 
Old 12-17-2014, 01:54 AM   #3
brian665
LQ Newbie
 
Registered: Dec 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by matonb View Post
Which version of spacewalk and on which RedHat release ?
Red Hat 5.10
Spacewalk 2.2.43 I believe.

Quote:
First impression though is that the database you're trying to use hasn't been created.

** Database: Setting up database connection for PostgreSQL backend.
Database "rhnschema" does not exist
** Database: Installing the database:
Database "rhnschema" does not exist

From memory, you need to create the database and a spacewalk postgres user before installing.
That is covered in one of the steps in the installation instructions I followed from https://fedorahosted.org/spacewalk/wiki/HowToInstall and that said it had been created successfully.

Last edited by brian665; 12-17-2014 at 02:05 AM.
 
Old 01-05-2015, 07:09 PM   #4
brian665
LQ Newbie
 
Registered: Dec 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
I was wondering if there was anybody who could help with this problem? I need to install spacewalk but it appears not to have gone anywhere. It is still failing.
 
Old 01-06-2015, 12:28 AM   #5
matonb
LQ Newbie
 
Registered: Aug 2006
Posts: 14

Rep: Reputation: 0
Have you tried following this guide ?

It uses spacewalk-setup-postgresql instead of spacewalk-setup
 
Old 01-06-2015, 12:34 AM   #6
brian665
LQ Newbie
 
Registered: Dec 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by matonb View Post
Have you tried following this guide ?

It uses spacewalk-setup-postgresql instead of spacewalk-setup
Thanks for your response. I used the instructions at - https://fedorahosted.org/spacewalk/wiki/HowToInstall, which covers the full installation. The guide you suggested only covers the set up for the PostgreSQL DB. The guide I followed said to use "spacewalk-setup --disconnected".
 
Old 01-07-2015, 12:13 AM   #7
matonb
LQ Newbie
 
Registered: Aug 2006
Posts: 14

Rep: Reputation: 0
Ok, did you setup Postgres or are you expecting spacewalk to do it's own thing ?
I've always configured Postgres independently (connected it to an existing Postgres cluster)

The first thing I'd try to solve is the missing rhnschema...
 
Old 01-07-2015, 12:27 AM   #8
brian665
LQ Newbie
 
Registered: Dec 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by matonb View Post
Ok, did you setup Postgres or are you expecting spacewalk to do it's own thing ?
I've always configured Postgres independently (connected it to an existing Postgres cluster)

The first thing I'd try to solve is the missing rhnschema...
I allowed spacewalk to set up Postgres. I'm not a DBA so have never set up any DBs.

What "missing rhnschema"?
 
Old 01-08-2015, 12:44 AM   #9
matonb
LQ Newbie
 
Registered: Aug 2006
Posts: 14

Rep: Reputation: 0
Quote:
** Database: Setting up database connection for PostgreSQL backend.
Database "rhnschema" does not exist
** Database: Installing the database:
Database "rhnschema" does not exist
Can you post the contents of the database install log ?
Code:
/var/log/rhn/install_db.log
 
Old 01-08-2015, 12:52 AM   #10
brian665
LQ Newbie
 
Registered: Dec 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by matonb View Post
Can you post the contents of the database install log ?
Code:
/var/log/rhn/install_db.log
Not much is in there. Here is all it contains:

Code:
# cat /var/log/rhn/install_db.log
Stopping postgresql service: [  OK  ]
Starting postgresql service: [  OK  ]
#
Not much, sorry.

I've assumed that the comment about the missing schema was when the script was creating the database and therefore adding the schema. When I've gone to attempt a reinstall (as I have now several times), I get this message:

Code:
# spacewalk-setup --disconnected
** Database: Setting up database connection for PostgreSQL backend.
Database "rhnschema" already exists
The embedded database appears to be already installed. Either rerun
this script with the --skip-db-install option, or use the
'/usr/bin/spacewalk-setup-postgresql remove --db rhnschema --user rhnuser'
script to remove the embedded database and try again.
When I've run the suggested command, '/usr/bin/spacewalk-setup-postgresql remove --db rhnschema --user rhnuser' there have been no complaints about the schema being missing so I must assume the setup script creates it.
 
Old 01-09-2015, 03:23 AM   #11
matonb
LQ Newbie
 
Registered: Aug 2006
Posts: 14

Rep: Reputation: 0
Not to worry, I'm sure there will be a "DOH!" moment

I'll try and run through a fresh install at the weekend...
 
Old 01-12-2015, 12:02 AM   #12
matonb
LQ Newbie
 
Registered: Aug 2006
Posts: 14

Rep: Reputation: 0
Ok, I ran through a spacewalk install on CentOS 5.11 with the latest patches.

Firewall disabled, SELinux in permissive mode

Code:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release http://www.redhat.com/security/37017186.txt
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
rpm -ivh http://yum.spacewalkproject.org/2.2-client/RHEL/5/x86_64/spacewalk-client-repo-2.2-1.el5.noarch.rpm
rpm -Uvh http://yum.spacewalkproject.org/2.2/RHEL/5/x86_64/spacewalk-repo-2.2-1.el5.noarch.rpm
I had to get a couple of JPackage RPM's that weren't in the base repo or EPEL:
Code:
wget http://mirrors.dotsrc.org/jpackage/5.0/generic/free/RPMS/jcommon-1.0.12-3.jpp5.noarch.rpm
wget http://mirrors.dotsrc.org/jpackage/5.0/generic/free/RPMS/jfreechart-1.0.9-4.jpp5.noarch.rpm
yum localinstall *.rpm --nogpgcheck
The install ran in about 5 minutes:
Code:
yum install spacewalk-setup-postgresql
yum install spacewalk-postgresql
spacewalk-setup --disconnected
I haven't got the output from the installation but there were no errors or warnings (i.e. no rhnschema messages...)

If you've got SELinux enabled and enforcing, that could be blocking some of the installation steps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
spacewalk server without the use of dhcp zulkifal Linux - Newbie 4 05-22-2013 09:31 PM
[SOLVED] Spacewalk 1.9 Centos Jabber problems connecting on startup? gdizzle Linux - Newbie 1 03-15-2013 10:34 PM
How to build a custom channel in Spacewalk Server(CentOS6) zulkifal Red Hat 0 07-18-2012 02:54 PM
problem installing spacewalk hermy7 Linux - Newbie 4 05-22-2012 11:01 AM
Trouble Installing Spacewalk on RHEL 5 custangro Linux - Enterprise 5 09-02-2010 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration