Bug 786870 - ..kickstart/CreateProfileWizard.do resutls in internal server error
Summary: ..kickstart/CreateProfileWizard.do resutls in internal server error
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.6
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Pazdziora
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space17
TreeView+ depends on / blocked
 
Reported: 2012-02-02 16:04 UTC by schuler.philipp
Modified: 2012-05-06 13:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 16:45:12 UTC


Attachments (Terms of Use)

Description schuler.philipp 2012-02-02 16:04:43 UTC
Description of problem:
Creating a kickstart profile results in internal server error. Even spacewalk-service restart does not help. Need to reboot server to get back into WebUI

Version-Release number of selected component (if applicable):
1.6 with postgresql

How reproducible:
Create a kickstart profile

Steps to Reproduce:
1. select base channel+kickstartable tree
2. leave default download location (/ks/dist/org/1/centos-6-x86_64 )
3. set a random root password
  
Actual results:
internal server error, completly messes up the installation, only reboot helps, not service restart

Expected results:
should create kickstart profile flawlessly


Additional info:
Couldnt find any related errors in the tomcat log

Comment 1 schuler.philipp 2012-02-02 16:09:34 UTC
"upload new kickstart file"->enter script manually works fine btw..

Comment 2 Tomas Lestach 2012-02-17 10:37:41 UTC
I just created a kickstart profile on Spacewalk 1.6 on postgresql with synced rhel-x86_64-server-6. Successfully. No issues.

If you got an ISE, there shall be definitely some traceback in /var/log/tomcat[56]/catalina.out. Could you at least attach WEB TRACEBACK e-mail, that was sent to the predefined e-mail address notifying about the error?

Comment 3 schuler.philipp 2012-02-17 10:52:03 UTC
I did try it again. Same behavior. Results in internal error. Then after "spacewalk-service restart" I get a "Service Temporarily Unavailable". Only reboot of the server helps. 
I again checked the logs. There is no trace of this. No traceback email, not catalina log for the timeframe..

Comment 4 Tomas Lestach 2012-02-21 10:47:57 UTC
Philipp, if you're getting an ISE on a *.do page

(I suppose it's https://<spacewalk>/rhn/kickstart/CreateProfileWizard.do),

there has to be a traceback in catalina.out file. If there's not, I'm afraid, I cannot help.

Cannot you hit https://bugzilla.redhat.com/show_bug.cgi?id=634863 or some other tomcat bug? What OS do you use?

Comment 5 schuler.philipp 2012-02-22 09:33:56 UTC
I am using CentOS6 x64

Tomcat is running fine. 

I know this is weird and catalina and other logs were the first thing I checked.

I guess something fails that badly that it even does not produce catalina output. As I told you, even a spacewalk-service restart doesnt help! I have to reboot the whole system!

Comment 6 Jan Pazdziora 2012-02-24 16:45:12 UTC
You say that after the operation you cannot do anything with the WebUI, and then you say that tomcat is running fine. Which one is it?

If you get an Internal Server Error from the Java stack, tomcat is supposed to write the traceback to the catalina.log. If it does not, it's not working properly and you need to investigate the tomcat first.

We cannot fix a problem which does not leave any traceback on your machine and which we cannot reproduce here. I'm going to close as CANTFIX now, please reopen if you find out more evidence about problem in the Spacewalk code base.

Comment 7 schuler.philipp 2012-02-24 16:53:18 UTC
I meant that tomcat is "usually" running fine. not in that particular case of course.

I am sorry that I cant provide logs. I was confused too that there is not traceback anywhere. 

I can however reproduce this over and over again. If you like I can show you on teamview, otherwise close this and I will re-check this after 1.7 release.

Comment 8 Moritz Baumann 2012-05-06 13:49:05 UTC
Hi I am running into Internal server error with spacewalk-1.7 installed on chentos6.

I'm getting the error description via mail:

Date: Sun,  6 May 2012 15:44:47 +0200 (CEST)
From: Spacewalk <dev-null>
To: root
Subject: WEB TRACEBACK from spacewalk.local (5/6/12 3:44:47 PM CEST)

The following exception occurred while executing this request:
POST /rhn/kickstart/CreateProfileWizard.do

Date:5/6/12 3:44:47 PM CEST
Headers:
  host: 192.168.101.254
  user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.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
  DNT: 1
  connection: keep-alive
  referer: https://192.168.101.254/rhn/kickstart/CreateProfileWizard.do
  cookie: JSESSIONID=051BFCBFB471194555519EF584C9BAE9; pxt-session-cookie=92x5aa064bc3a1781840c049ab43db61843
  content-type: application/x-www-form-urlencoded
  content-length: 263

Request:
Local Name = 192.168.101.254
Server Name = 192.168.101.254
Requested Session Id came from Cookie
Requested Session Valid = true
Session = org.apache.catalina.session.StandardSessionFacade@6c0f7339[session=StandardSession[051BFCBFB471194555519EF584C9BAE9]]
Protocol = https
Request Locale = en_US
Request Character Encoding = UTF-8
Attribute Names = rhnActiveLang, javax.servlet.request.ssl_session, org.apache.struts.action.MESSAGE, javax.servlet.jsp.jstl.fmt.timeZone.request, session, javax.servlet.request.key_size,
+javax.servlet.request.cipher_suite, requestedUri, kickstartCreateWizardForm, org.apache.struts.action.mapping.instance, org.apache.struts.action.MODULE,

Form Variables:
  prevStep: second
  rootPasswordConfirm: qwertzASD+
  rootPassword: qwertzASD+
  defaultDownload: true
  virtualizationTypeLabel: none
  nextStep: complete
  kickstartLabel: testit
  kstreeId: 8
  userDefinedDownload:
  submitted: true
  csrf_token: -1897952377159795391
  wizardStep: complete


User Information:
User admin (id 1, org_id 1)
Exception:
javax.servlet.ServletException: java.lang.reflect.InvocationTargetException
        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:99)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        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:91)
       	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:108)
        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:55)
       	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:679)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at com.redhat.rhn.frontend.struts.wizard.WizardStep.invoke(WizardStep.java:116)
        at com.redhat.rhn.frontend.struts.wizard.RhnWizardAction.dispatch(RhnWizardAction.java:103)
        at com.redhat.rhn.frontend.struts.wizard.RhnWizardAction.execute(RhnWizardAction.java:89)
        at com.redhat.rhn.frontend.action.kickstart.CreateProfileWizardAction.execute(CreateProfileWizardAction.java:104)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
        ... 40 more
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Double
        at org.cobbler.CobblerConnection.getVersion(CobblerConnection.java:174)
        at com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.getCobblerVersion(CobblerXMLRPCHelper.java:123)
        at com.redhat.rhn.manager.kickstart.KickstartFormatter.getFileData(KickstartFormatter.java:252)
        at com.redhat.rhn.domain.kickstart.KickstartFactory.saveKickstartData(KickstartFactory.java:359)
        at com.redhat.rhn.domain.kickstart.KickstartFactory.saveKickstartData(KickstartFactory.java:393)
        at com.redhat.rhn.manager.kickstart.KickstartWizardHelper.store(KickstartWizardHelper.java:189)
        at com.redhat.rhn.domain.kickstart.builder.KickstartBuilder.create(KickstartBuilder.java:545)
        at com.redhat.rhn.frontend.action.kickstart.CreateProfileWizardAction.runComplete(CreateProfileWizardAction.java:283)
        ... 49 more


Note You need to log in before you can comment on or make changes to this bug.