<div dir="ltr">This may be a shot in the dark but having just gone through installing Spacewalk 1.8 on a RHEL6.3 machine, I found I had to adjust the permissions on the following files/directory:<div>chmod 755 /etc/rhn<br>

<div><div>chmod 644 /etc/rhn/rhn.conf</div><div>chmod 644 /etc/rhn/cluster.ini</div><div>chmod 644 /usr/share/rhn/config-defaults/rhn_web.conf</div></div><div><br></div></div><div style>Check those permissions and try a "/usr/sbin/spacewalk-service restart".</div>

<div style><br></div><div style>-- Jon Miller</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 9:05 AM, Paul Raines <span dir="ltr"><<a href="mailto:raines@nmr.mgh.harvard.edu" target="_blank">raines@nmr.mgh.harvard.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
We are trying to install Spacewalk 1.8 on a freshly installed CentOS 6.3 VM<br>
following the directions at<br>
<br>
  <a href="https://fedorahosted.org/spacewalk/wiki/HowToInstall" target="_blank">https://fedorahosted.org/<u></u>spacewalk/wiki/HowToInstall</a><br>
<br>
We first ran into lots of problems related to PostgreSQL.  We created a spacewalk user in Postgresql along with a spacewalkdb database.The spacewalk-setup would simply fail with "Could not populate database.". Finally figured out where postgresql was putting its log file and found<br>


in it the line<br>
<br>
ERROR:  permission denied for language c<br>
<br>
After googling that I figured out I had to do<br>
<br>
   ALTER ROLE spacewalk SUPERUSER;<br>
<br>
to get past that error.  After trying the setup again, it failed again with<br>
<br>
ERROR:  language "plpgsql" does not exist<br>
<br>
So then I did a<br>
<br>
   createlang "plpgsql" spacewalkdb<br>
<br>
to fix that.  Setup failed again because the database was half made and<br>
I had to rerun with the --clear-db flag.  At that point I got past all<br>
my Postgresql troubles.  But the above should really be added to the webpage<br>
in the "PostgreSQL Pre-Requisites" section.<br>
<br>
Anyway, the setup got to "Restarting services." and sat there thinking for<br>
a long, long time before finallying failing with:<br>
<br>
Tomcat failed to start properly or the installer ran out of tries.  Please check /var/log/tomcat*/catalina.out for errors.<br>
<br>
So in that file I find:<br>
<br>
SEVERE: Error deploying web application directory rhn<br>
java.lang.<u></u>IllegalStateException: ContainerBase.addChild: start: LifecycleException:  start: :  java.io.IOException: Failed to access resource /WEB-INF/lib/antlr.jar<br>
<br>
I am pretty much at a total loss to figure out this one.  One thing I can<br>
guess is that the 'antlr' spacewalk wants/expects to be installed is not<br>
installed because of what this 'yum list' results shows to me<br>
<br>
Installed Packages<br>
ant-antlr.x86_64                        1.7.1-13.el6  @anaconda-CentOS-201207061011.<u></u>x86_64/6.3<br>
antlr.x86_64                            2.7.7-6.5.el6 @anaconda-CentOS-201207061011.<u></u>x86_64/6.3<br>
Available Packages<br>
ant-antlr.noarch                        1.7.1-7.jpp5  jpackage-generic<br>
antlr.noarch                            2.7.6-6.jpp5  jpackage-generic<br>
antlr-javadoc.noarch                    2.7.6-6.jpp5  jpackage-generic<br>
antlr-javadoc.x86_64                    2.7.7-6.5.el6 base<br>
antlr-jedit.noarch                      2.7.6-6.jpp5  jpackage-generic<br>
antlr-manual.noarch                     2.7.6-6.jpp5  jpackage-generic<br>
antlr-manual.x86_64                     2.7.7-6.5.el6 base<br>
antlr-repolib.noarch                    2.7.6-6.jpp5  jpackage-generic<br>
jakarta-commons-jelly-tags-<u></u>antlr.noarch 1.0-6.jpp5    jpackage-generic<br>
maven-plugin-antlr.noarch               1.1-7.jpp5    jpackage-generic<br>
mojo-maven2-plugin-antlr.<u></u>noarch         17-5.jpp5     jpackage-generic<br>
<br>
Looks like some newer version from the CentOS repo itself is installed<br>
rather than the one from the jpackage repo.<br>
<br>
Any suggestions on what really is wrong and how to fix it?<br>
<br>
<br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/<u></u>complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br>
______________________________<u></u>_________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/spacewalk-<u></u>list</a><br>
</blockquote></div><br></div>