[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Spacewalk-list] error creating new kickstart profile



Dale,

That happened to me, too, until I set SELinux to 'Permissive' instead of 
'Enforcing'.

Jonathan DeHaan
Linux Systems Engineer


On 03/29/2011 04:25 PM, Dale Bewley wrote:
> I'm setting up a new spacewalk server for the first time (v1.3 on F14),
> and following along in the documentation until I get more oriented. I'm
> on to the directions at
> https://fedorahosted.org/spacewalk/wiki/HowToKickstartCobbler
>
> Creating a cobbler distro went fine, but I hit a snag while creating the
> kickstart profile for the distro. My steps are below.
>
>
> * Create new channel and load with spacewalk tools. (I think this might better be suffixed "-spacewalk"?)
>
>   Channels ->  Manage Software Channels ->  create new channel
>      Channel Name: Fedora 14 64bit with Tools
>      Channel Label: fedora-14-x86_64-tools
>      Parent Channel: Fedora 14 64bit
>      (TODO - use create_channel.py-1.3 instead)
>
>   Download the following packages from the client repo
>
>   mkdir /tmp/14
>
>   yumdownloader \
>      --archlist=x86_64 \
>      --releasever=14 \
>      --destdir=/tmp/14 \
>       pyOpenSSL \
>       rhnlib \
>       libxml2-python \
>       spacewalk-koan
>
>   rhnpush --server localhost --username=user --password=pass \
>      --channel fedora-14-x86_64-tools /tmp/14/*.rpm
>
>
> * Create a new distribution
>
>   mkdir /var/iso-images
>   #wget the iso to /var/iso-images
>   mkdir -p /var/distro-trees/fedora-14
>   mount -o loop /var/iso-images/Fedora-14-x86_64-DVD.iso /var/distro-trees/fedora-14
>
>   Systems ->  Kickstart ->  Distributions ->  create new distribution
>      Distribution Label: fedora-14
>      # Directions say  "Base channel" should be "Fedora 14 with Tools"
>      # but it's not in the menu
>      Base Channel: Fedora 14 64bit
>      Tree Path: /var/distro-trees/fedora-14
>      Installer Generation: Fedora
>
> This will populate the tftpboot in
>      /var/lib/tftpboot/images/fedora-14:1:SpacewalkDefaultOrganization/
>
> See /var/log/cobber/cobbler.log and check distro list:
>
> [root spacewalk lib]# cobbler distro list
>     fedora-14:1:SpacewalkDefaultOrganization
>
>
> * Create Spacewalk kickstart profile
>
> Systems ->  Kickstart ->  Profiles ->  create new kickstart profile
>      Label: Fedora-14-No-Tools
>      Base Channel: Fedora 14 64bit
>      Kickstartable Tree: fedora-14
>      Virtualization Type: KVM
>
> Click "Next", and on the next screen just accept the "Default Download Location" and click "Next"
> Give your new machine a root password, and then click "Finish"
>
> After I put in a password and click Finish I get an "Internal Server Error". I've also tried setting virtualization type to None.
>
> The catalina.out is below:
>
>
> 2011-03-29 13:57:59,999 [TP-Processor2] WARN  org.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: 2F005
> 2011-03-29 13:58:00,000 [TP-Processor2] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: control reached end of trigger procedure without RETURN
>    Where: PL/pgSQL function "rhn_ks_session_history_trigger_fun"
> 2011-03-29 13:58:00,000 [TP-Processor2] ERROR org.hibernate.event.def.AbstractFlushingEventListener - Could not synchronize database state with session
> org.hibernate.exception.GenericJDBCException: could not insert: [com.redhat.rhn.domain.kickstart.KickstartSession]
> 	at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
> 	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
> 	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
> 	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2267)
> 	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2660)
> 	at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:56)
> 	at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
> 	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
> 	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
> 	at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
> 	at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
> 	at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
> 	at com.redhat.rhn.common.db.datasource.CachedStatement.stealConnection(CachedStatement.java:857)
> 	at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:440)
> 	at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:430)
> 	at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:336)
> 	at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:341)
> 	at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:281)
> 	at com.redhat.rhn.common.db.datasource.SelectMode.execute(SelectMode.java:109)
> 	at com.redhat.rhn.manager.channel.ChannelManager.listLatestPackagesLike(ChannelManager.java:1433)
> 	at com.redhat.rhn.manager.channel.ChannelManager.getToolsChannel(ChannelManager.java:1846)
> 	at com.redhat.rhn.manager.kickstart.KickstartScheduleCommand.getToolsChannel(KickstartScheduleCommand.java:1041)
> 	at com.redhat.rhn.manager.kickstart.KickstartSessionCreateCommand.<init>(KickstartSessionCreateCommand.java:94)
> 	at com.redhat.rhn.manager.kickstart.KickstartSessionCreateCommand.<init>(KickstartSessionCreateCommand.java:53)
> 	at com.redhat.rhn.manager.kickstart.KickstartWizardHelper.store(KickstartWizardHelper.java:181)
> 	at com.redhat.rhn.domain.kickstart.builder.KickstartBuilder.create(KickstartBuilder.java:545)
> 	at com.redhat.rhn.frontend.action.kickstart.CreateProfileWizardAction.runComplete(CreateProfileWizardAction.java:288)
> 	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)
> 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
> 	at com.redhat.rhn.frontend.struts.RhnRequestProcessor.process(RhnRequestProcessor.java:82)
> 	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:101)
> 	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:636)
> Caused by: org.postgresql.util.PSQLException: ERROR: control reached end of trigger procedure without RETURN
>    Where: PL/pgSQL function "rhn_ks_session_history_trigger_fun"
> 	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
> 	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
> 	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
> 	at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
> 	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:367)
> 	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:321)
> 	at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:469)
> 	at org.hibernate.jdbc.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:23)
> 	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2247)
> 	... 72 more
> 2011-03-29 13:58:00,008 [TP-Processor2] WARN  org.apache.struts.action.RequestProcessor - Unhandled Exception thrown: class java.lang.reflect.InvocationTargetException
> 2011-03-29 13:58:00,009 [TP-Processor2] ERROR com.redhat.rhn.frontend.servlets.SessionFilter - Error during transaction. Rolling back
> 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:82)
> 	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:101)
> 	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:636)
> 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: com.redhat.rhn.common.hibernate.HibernateRuntimeException: HibernateException executing CachedStatement
> 	at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:468)
> 	at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:430)
> 	at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:336)
> 	at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:341)
> 	at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:281)
> 	at com.redhat.rhn.common.db.datasource.SelectMode.execute(SelectMode.java:109)
> 	at com.redhat.rhn.manager.channel.ChannelManager.listLatestPackagesLike(ChannelManager.java:1433)
> 	at com.redhat.rhn.manager.channel.ChannelManager.getToolsChannel(ChannelManager.java:1846)
> 	at com.redhat.rhn.manager.kickstart.KickstartScheduleCommand.getToolsChannel(KickstartScheduleCommand.java:1041)
> 	at com.redhat.rhn.manager.kickstart.KickstartSessionCreateCommand.<init>(KickstartSessionCreateCommand.java:94)
> 	at com.redhat.rhn.manager.kickstart.KickstartSessionCreateCommand.<init>(KickstartSessionCreateCommand.java:53)
> 	at com.redhat.rhn.manager.kickstart.KickstartWizardHelper.store(KickstartWizardHelper.java:181)
> 	at com.redhat.rhn.domain.kickstart.builder.KickstartBuilder.create(KickstartBuilder.java:545)
> 	at com.redhat.rhn.frontend.action.kickstart.CreateProfileWizardAction.runComplete(CreateProfileWizardAction.java:288)
> 	... 49 more
> Caused by: org.hibernate.exception.GenericJDBCException: could not insert: [com.redhat.rhn.domain.kickstart.KickstartSession]
> 	at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
> 	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
> 	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
> 	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2267)
> 	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2660)
> 	at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:56)
> 	at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
> 	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
> 	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
> 	at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
> 	at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
> 	at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
> 	at com.redhat.rhn.common.db.datasource.CachedStatement.stealConnection(CachedStatement.java:857)
> 	at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:440)
> 	... 62 more
> Caused by: org.postgresql.util.PSQLException: ERROR: control reached end of trigger procedure without RETURN
>    Where: PL/pgSQL function "rhn_ks_session_history_trigger_fun"
> 	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
> 	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
> 	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
> 	at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
> 	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:367)
> 	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:321)
> 	at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:469)
> 	at org.hibernate.jdbc.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:23)
> 	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2247)
> 	... 72 more
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list redhat com
> https://www.redhat.com/mailman/listinfo/spacewalk-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]