Feedback on installation

Cliff Perry cperry at redhat.com
Mon Aug 29 18:28:59 UTC 2011


During install running:

/usr/share/candlepin/cpsetup

I hit an error state (message no longer in my terminal buffer).

    tsetup.restart()

    print("Waiting for tomcat to restart...")
    time.sleep(5)

    run_command("wget -qO- http://localhost:8080/candlepin/admin/init")

In short, tomcat was not ready by the time the count of 5 completed and
the wget failed. I manually ran the command and it worked and finished
off the install.

Take a look at the wait_for_tomcat routine used in spacewalk as an
example implementation of polling tomcat and once it is up do stuff, vs
blindly hitting it:

http://git.fedorahosted.org/git/?p=spacewalk.git;a=blob;f=spacewalk/setup/bin/spacewalk-setup;h=114817f6155637164dc04e8ea203c413de745e24;hb=28be9373d18952ef29b938175ac465a6e7d21b63#l1385


Cliff



More information about the candlepin mailing list