<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Since upgrading to v1.2, I’m no longer able to view “Completed Actions” under the Schedule tab.  When I click on it, the server takes about 60 seconds to timeout and then just returns me an Apache page that the server is unresponsive.  I can see in the httpd logs that the AJP connection to the tomcat server is lost as if this request is completely killing the tomcat server.   I don’t get much in the catalina.out when this is going on, but after it finally times out, I get this error:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Dec 10, 2010 6:19:42 AM org.apache.jk.core.MsgContext action<o:p></o:p></p><p class=MsoNormal>WARNING: Error sending end packet<o:p></o:p></p><p class=MsoNormal>java.net.SocketException: Broken pipe<o:p></o:p></p><p class=MsoNormal>        at java.net.SocketOutputStream.socketWrite0(Native Method)<o:p></o:p></p><p class=MsoNormal>        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)<o:p></o:p></p><p class=MsoNormal>        at java.net.SocketOutputStream.write(SocketOutputStream.java:136)<o:p></o:p></p><p class=MsoNormal>        at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:538)<o:p></o:p></p><p class=MsoNormal>        at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:127)<o:p></o:p></p><p class=MsoNormal>        at org.apache.jk.core.MsgContext.action(MsgContext.java:302)<o:p></o:p></p><p class=MsoNormal>        at org.apache.coyote.Response.action(Response.java:183)<o:p></o:p></p><p class=MsoNormal>        at org.apache.coyote.Response.finish(Response.java:305)<o:p></o:p></p><p class=MsoNormal>        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:205)<o:p></o:p></p><p class=MsoNormal>        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)<o:p></o:p></p><p class=MsoNormal>        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:775)<o:p></o:p></p><p class=MsoNormal>        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:704)<o:p></o:p></p><p class=MsoNormal>        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:897)<o:p></o:p></p><p class=MsoNormal>        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)<o:p></o:p></p><p class=MsoNormal>        at java.lang.Thread.run(Thread.java:662)<o:p></o:p></p><p class=MsoNormal>Dec 10, 2010 6:19:42 AM org.apache.jk.common.ChannelSocket processConnection<o:p></o:p></p><p class=MsoNormal>WARNING: processCallbacks status 2<o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal>Where can I look to try to troubleshoot this?  All other actions under the Schedule tab work just fine.<span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>A quick bump on this one.  It seems that the query continues running on the external DB server and that the connection might be timing out on my Spacewalk server.  The relevant query seems to be:  <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><tt><b><span style='font-size:10.0pt;color:#4444DD'>SELECT</span></b></tt><tt><span style='font-size:10.0pt;color:black'> </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>DISTINCT</span></b></tt><tt><span style='font-size:10.0pt;color:black'> UAO.</span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>id</span></b></tt><tt><span style='font-size:10.0pt;color:black'> </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>AS</span></b></tt><tt><span style='font-size:10.0pt;color:black'> </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>ID</span></b></tt><tt><span style='font-size:10.0pt;color:black'>,</span></tt><span style='font-family:"Courier New";color:black'><br></span><tt><span style='font-size:10.0pt;color:black'>UAO.earliest_action </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>AS</span></b></tt><tt><span style='font-size:10.0pt;color:black'> EARLIEST,</span></tt><span style='font-family:"Courier New";color:black'><br></span><tt><span style='font-size:10.0pt;color:black'>UAO.type_name,</span></tt><span style='font-family:"Courier New";color:black'><br></span><tt><span style='font-size:10.0pt;color:black'>(DECODE(UAO.action_name, </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>NULL</span></b></tt><tt><span style='font-size:10.0pt;color:black'>, UAO.type_name, UAO.action_name)) </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>AS</span></b></tt><tt><span style='font-size:10.0pt;color:black'> ACTION_NAME,</span></tt><span style='font-family:"Courier New";color:black'><br></span><tt><span style='font-size:10.0pt;color:black'>UAO.scheduler,</span></tt><span style='font-family:"Courier New";color:black'><br></span><tt><span style='font-size:10.0pt;color:black'>WC.login </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>AS</span></b></tt><tt><span style='font-size:10.0pt;color:black'> SCHEDULER_NAME,</span></tt><span style='font-family:"Courier New";color:black'><br></span><tt><span style='font-size:10.0pt;color:black'>(</span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>SELECT</span></b></tt><tt><span style='font-size:10.0pt;color:black'> COUNT(server_id) </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>FROM</span></b></tt><tt><span style='font-size:10.0pt;color:black'> rhnServerAction </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>WHERE</span></b></tt><tt><span style='font-size:10.0pt;color:black'> action_id = UAO.</span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>id</span></b></tt><tt><span style='font-size:10.0pt;color:black'> </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>AND</span></b></tt><tt><span style='font-size:10.0pt;color:black'> status </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>IN</span></b></tt><tt><span style='font-size:10.0pt;color:black'> (0,1)) </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>AS</span></b></tt><tt><span style='font-size:10.0pt;color:black'> "IN_PROGRESS_SYSTEMS",</span></tt><span style='font-family:"Courier New";color:black'><br></span><tt><span style='font-size:10.0pt;color:black'>(</span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>SELECT</span></b></tt><tt><span style='font-size:10.0pt;color:black'> COUNT(server_id) </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>FROM</span></b></tt><tt><span style='font-size:10.0pt;color:black'> rhnServerAction </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>WHERE</span></b></tt><tt><span style='font-size:10.0pt;color:black'> action_id = UAO.</span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>id</span></b></tt><tt><span style='font-size:10.0pt;color:black'> </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>AND</span></b></tt><tt><span style='font-size:10.0pt;color:black'> status = 2) </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>AS</span></b></tt><tt><span style='font-size:10.0pt;color:black'> "COMPLETED_SYSTEMS",</span></tt><span style='font-family:"Courier New";color:black'><br></span><tt><span style='font-size:10.0pt;color:black'>(</span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>SELECT</span></b></tt><tt><span style='font-size:10.0pt;color:black'> COUNT(server_id) </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>FROM</span></b></tt><tt><span style='font-size:10.0pt;color:black'> rhnServerAction </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>WHERE</span></b></tt><tt><span style='font-size:10.0pt;color:black'> action_id = UAO.</span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>id</span></b></tt><tt><span style='font-size:10.0pt;color:black'> </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>AND</span></b></tt><tt><span style='font-size:10.0pt;color:black'> status = 3) </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>AS</span></b></tt><tt><span style='font-size:10.0pt;color:black'> "FAILED_SYSTEMS"</span></tt><span style='font-family:"Courier New";color:black'><br></span><tt><b><span style='font-size:10.0pt;color:#4444DD'>FROM</span></b></tt><tt><span style='font-size:10.0pt;color:black'> rhnUserActionOverview UAO left </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>join</span></b></tt><span style='font-family:"Courier New";color:black'><br></span><tt><span style='font-size:10.0pt;color:black'>web_contact WC </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>on</span></b></tt><tt><span style='font-size:10.0pt;color:black'> UAO.scheduler = WC.</span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>id</span></b></tt><span style='font-family:"Courier New";color:black'><br></span><tt><b><span style='font-size:10.0pt;color:#4444DD'>WHERE</span></b></tt><tt><span style='font-size:10.0pt;color:black'> UAO.org_id = :1</span></tt><span style='font-family:"Courier New";color:black'><br></span><tt><b><span style='font-size:10.0pt;color:#4444DD'>AND</span></b></tt><tt><span style='font-size:10.0pt;color:black'> UAO.user_id = :2</span></tt><span style='font-family:"Courier New";color:black'><br></span><tt><b><span style='font-size:10.0pt;color:#4444DD'>AND</span></b></tt><tt><span style='font-size:10.0pt;color:black'> UAO.action_status_id = 2</span></tt><span style='font-family:"Courier New";color:black'><br></span><tt><b><span style='font-size:10.0pt;color:#4444DD'>AND</span></b></tt><tt><span style='font-size:10.0pt;color:black'> UAO.archived = 0</span></tt><span style='font-family:"Courier New";color:black'><br></span><tt><b><span style='font-size:10.0pt;color:#4444DD'>ORDER</span></b></tt><tt><span style='font-size:10.0pt;color:black'> </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>BY</span></b></tt><tt><span style='font-size:10.0pt;color:black'> EARLIEST </span></tt><tt><b><span style='font-size:10.0pt;color:#4444DD'>DESC</span></b></tt><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>I run it manually via sqlplus (after replacing the variables, of course) and it does take a few minutes to complete before a get quite a deluge of rows returned.  Is there perhaps a misconfigured timeout somewhere in my config?<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>Andy</span><o:p></o:p></p></div></body></html>