[Spacewalk-list] Spacewalk 2.1 - Upload kickstart file fails

Reed, Steven Steven.Reed at transport.nsw.gov.au
Mon Apr 28 00:46:26 UTC 2014


Thanks for responding.

I tried looking at the url but it only shows the html (formatted) 500 Internal server error below.

I do however now get traceback errors:


The following exception occurred while executing this request:

GET /rhn/kickstart/AdvancedModeEdit.do



Date:4/28/14 8:43:55 AM EST

Headers:

  host: spacewalk

  user-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

  accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

  accept-language: en-US,en;q=0.5

  accept-encoding: gzip, deflate

  referer: https://spacewalk/rhn/Login.do

  cookie: JSESSIONID=68FCFC201075C7074E62AEDB9FED050C; DWRSESSIONID=wWj5HcJXLXW$VRm22Qnco2Jfhmk; pxt-session-cookie=22xc4f7d5404bc2d3f7b0e5a1323f96a18c

  connection: keep-alive



Request:

Local Name = spacewalk  Server Name = spacewalk Requested Session Id came from Cookie Requested Session Valid = true Session = org.apache.catalina.session.StandardSessionFacade at 37056779[session=StandardSession[68FCFC201075C7074E62AEDB9FED050C<mailto:org.apache.catalina.session.StandardSessionFacade at 37056779[session=StandardSession[68FCFC201075C7074E62AEDB9FED050C>]]

Protocol = https

Request Locale = en_US

Request Character Encoding = UTF-8

Attribute Names = rhnActiveLang, javax.servlet.jsp.jstl.fmt.timeZone.request, javax.servlet.error.status_code, javax.servlet.error.servlet_name, csrfToken, javax.servlet.request.key_size, requestedUri, javax.servlet.request.ssl_session, org.apache.struts.action.MESSAGE, javax.servlet.error.message, session, javax.servlet.request.cipher_suite, kickstartFileForm, ksid, javax.servlet.error.exception, javax.servlet.error.request_uri, org.apache.struts.action.mapping.instance, uploadKey, org.apache.struts.action.MODULE,





User Information:

User admin (id 1, org_id 1)



Exception:

javax.servlet.ServletException: java.lang.IllegalArgumentException: Could not find Kickstart Data with ID ksid=10

                at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)

                at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427)

                at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)

                at com.redhat.rhn.frontend.struts.RhnRequestProcessor.process(RhnRequestProcessor.java:102)

                at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)

                at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at com.redhat.rhn.frontend.servlets.AuthFilter.doFilter(AuthFilter.java:127)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)

                at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at com.redhat.rhn.frontend.servlets.LocalizedEnvironmentFilter.doFilter(LocalizedEnvironmentFilter.java:67)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at com.redhat.rhn.frontend.servlets.EnvironmentFilter.doFilter(EnvironmentFilter.java:100)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at com.redhat.rhn.frontend.servlets.SessionFilter.doFilter(SessionFilter.java:57)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at com.redhat.rhn.frontend.servlets.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:97)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

                at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)

                at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)

                at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)

                at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)

                at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)

                at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)

                at java.lang.Thread.run(Thread.java:701)

Caused by: java.lang.IllegalArgumentException: Could not find Kickstart Data with ID ksid=10

                at com.redhat.rhn.frontend.struts.RequestContext.assertObjectFound(RequestContext.java:383)

                at com.redhat.rhn.frontend.struts.RequestContext.lookupAndBindKickstartData(RequestContext.java:333)

                at com.redhat.rhn.frontend.action.kickstart.AdvancedModeDetailsAction.getKsData(AdvancedModeDetailsAction.java:340)

                at com.redhat.rhn.frontend.action.kickstart.AdvancedModeDetailsAction.loadTrees(AdvancedModeDetailsAction.java:272)

                at com.redhat.rhn.frontend.action.kickstart.AdvancedModeDetailsAction.setup(AdvancedModeDetailsAction.java:213)

                at com.redhat.rhn.frontend.action.kickstart.AdvancedModeDetailsAction.execute(AdvancedModeDetailsAction.java:102)

                at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)

                ... 40 more


From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Alexander Innes
Sent: Thursday, April 24, 2014 7:49 PM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Spacewalk 2.1 - Upload kickstart file fails

Have you tried to visit the url of the kickstart directly (not through the interface just directly), it sometimes tells you more information

On 24 April 2014 06:27, Reed, Steven <Steven.Reed at transport.nsw.gov.au<mailto:Steven.Reed at transport.nsw.gov.au>> wrote:
Hi All,

Am attempting to migrate from 1.9 to 2.1 all seems OK but when trying to upload a kickstart file (xml) spacewalk fires out:

"There are errors in your kickstart template. Please check the 'Kickstart File' tab to determine the problem with the template"

Investigating the 'kickstart file'  shows a html indicating an internal server error  ....  E.g.:


--------------------------------------------------------------------------------------------------------------------------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Error</title>
    <link rel="shortcut icon" href="/img/favicon.ico">
    <link rel="stylesheet" href="/css/rhn-base.css" type="text/css">
  <!-- Active content stripped -->
  </head><body><div class="wrap" id="top-wrap">
<div id="utility">
        <div id="utilityLinks">
<p id="linx"><span class="hide"><strong>Shortcuts:</strong> </span><a href="http://kbase.redhat.com/">Knowledgebase</a> <span class="navPipe">|</span> <a href="/help">Documentation</a></p>
        </div>
        <div id="utilityAccount">
 
        </div>
</div>
<div id="header">
        <a href="/"><img src="/img/logo.png" id="rhnLogo"></a>
 <div id="searchbar">
      <form name="form1" action="/rhn/Search.do" method="post">
      <select name="search_type">

            <option value="systems">Systems</option>

      <option value="packages">Packages</option>
      <option value="errata">Errata</option>
      <option value="docs">Documentation</option>
      </select><input name="search_string" maxlength="40" size="20" type="text" accesskey="4" autofocus="autofocus">

      <input name="submitted" value="true" type="hidden">
      <input class="button" name="image-1" value="Search" type="submit" align="top"></form>
  </div>
</div>

<div id="navWrap">
<div id="mainNavWrap">


<ul>
<li id="mainFirst-active"><a href="/">Sign In</a></li>

<li id="mainLast"><a href="/help/about.pxt" class="mainLastLink">About</a></li>
</ul>
</div><!-- end mainNavWrap -->
</div><!-- end navWrap -->
<div id="bar">
</div>
<!-- close bar -->
    </div>
    <div class="wrap" id="bottom-wrap">
  <div id="content">
    <table width="100%" cellspacing="0">
      <tbody><tr>
        <td class="sidebar">
<div id="sidenavp"><ul></ul>
</div>
</td>
        <td class="page-content" width="100%">
      <h1>500 Error - Internal Server Error</h1>
<p>You may have reached this page in one of the following ways:</p>
          <ol>
            <li>You've found an error in the site.  Please report this error
            to your local administrator with details of how you received this
            message.</li>
          </ol>
        </td>
      </tr>
    </tbody></table>

  <div id="footer">
    Copyright (c) 2002&#x2012;12 Red Hat, Inc. All rights reserved. <a href="https://www.redhat.com/legal/privacy_statement.html">Privacy statement</a> : <a href="http://www.redhat.com/legal/legal_statement.html">Legal statement</a> : <a href="http://www.redhat.com/">redhat.com<http://redhat.com></a>
  </div>

  </div> <!-- close content -->
  </div> <!-- close wrap -->

  </body></html>

--------------------------------------------------------------------------------------------------------------------------------------------------------

Not too much appears in the logs files in relation to this.  I have snapshotted spacewalk 2.1 and upgraded to the latest nightly build but the result is the same.

Thanks,

This email (including any attachments) may contain confidential and/or legally privileged information and is intended only to be read or used by the addressee(s). If you have received this email in error, please notify the sender by return email, delete this email and destroy any copy. Any use, distribution, disclosure or copying of this email by a person who is not the intended recipient is not authorised.

Views expressed in this email are those of the individual sender, and are not necessarily the views of Transport for NSW, Department of Transport or any other NSW government agency. Transport for NSW and the Department of Transport assume no liability for any loss, damage or other consequence which may arise from opening or using an email or attachment.
Please visit us at http://www.transport.nsw.gov.au or http://www.transportnsw.info


_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list


________________________________
This email (including any attachments) may contain confidential and/or legally privileged information and is intended only to be read or used by the addressee(s). If you have received this email in error, please notify the sender by return email, delete this email and destroy any copy. Any use, distribution, disclosure or copying of this email by a person who is not the intended recipient is not authorised.

Views expressed in this email are those of the individual sender, and are not necessarily the views of Transport for NSW, Department of Transport or any other NSW government agency. Transport for NSW and the Department of Transport assume no liability for any loss, damage or other consequence which may arise from opening or using an email or attachment.
Please visit us at http://www.transport.nsw.gov.au or http://www.transportnsw.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20140428/053cc379/attachment.htm>


More information about the Spacewalk-list mailing list