Description of problem: On Fedora 20 file /var/run/tomcat.pid is empty making `/usr/sbin/spacewalk-startup-helper wait-for-tomcat` to exit immediately with exit code being 0. Version-Release number of selected component (if applicable): tomcat-7.0.47-1.fc20.noarch spacewalk-admin-2.1.2-1.fc20.noarch How reproducible: always Steps to Reproduce: Run all these commands quickly in the row 1. service tomcat restart; /usr/sbin/spacewalk-startup-helper wait-for-tomcat; echo $?; wget https://$(hostname) --no-check-certificate Actual results: Although wait-for-tomcat passes, subsequent wget fails. Expected results: wait-for-tomcat should end only if Tomcat is really ready to serve content.
Proposed patch: https://github.com/spacewalkproject/spacewalk/pull/78
Fixed in Spacewalk master, 0aea30071ee55c1db932288068d48261eafde5e3.
Hmm, even if the step to reproduce from comment 0 passes with spacewalk-admin-2.2.2-1.fc20.noarch, when running spacewalk-setup, I still get Tomcat failed to start properly or the installer ran out of tries. Please check /var/log/tomcat*/catalina.out for errors. That is strange because in the /var/log/messages, the order suggests we've actually waited fine: May 22 08:38:35 spacewalk server: INFO: Starting ProtocolHandler ["ajp-bio-0:0:0:0:0:0:0:1-8009"] May 22 08:38:35 spacewalk server: May 22, 2014 8:38:35 AM org.apache.catalina.startup.Catalina start May 22 08:38:35 spacewalk server: INFO: Server startup in 39764 ms May 22 08:38:36 spacewalk systemd: Started Spacewalk wait for tomcat. May 22 08:38:36 spacewalk systemd: Starting The Apache HTTP Server... May 22 08:38:36 spacewalk httpd: [Thu May 22 08:38:36.550373 2014] [alias:warn] [pid 2584] AH00671: The Alias directive in /etc/rhn/satellite-httpd/conf/rhn/rhn_monitoring.conf at line 21 will probably never match because it overlaps an earlier ScriptAlias.
Hmm, PERL_LWP_SSL_VERIFY_HOSTNAME=0 HEAD -Se http://$( hostname )/ ; echo $? for on my Fedora 20's when curl works just fine. So it's a different problem, not related to the tomcat/httpd startup.
(In reply to Jan Pazdziora from comment #3) > Hmm, even if the step to reproduce from comment 0 passes with > spacewalk-admin-2.2.2-1.fc20.noarch, when running spacewalk-setup, I still > get > > Tomcat failed to start properly or the installer ran out of tries. Please > check /var/log/tomcat*/catalina.out for errors. Different issue, caused by bug 1094442 comment 6.
Spacewalk 2.2 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes22