On Wednesday 09 May 2012 18:42:09 Jeremy Davis wrote: > On Wed, May 9, 2012 at 10:08 AM, Milan Zazrivec <[email protected]>wrote: > > On Friday 04 May 2012 18:40:11 Jeremy Davis wrote: > > > Hello List, > > > > > > I recently upgraded to 1.6 and it seems once I did this I am unable to > > > creation new activation keys using the API. I get the following error > > > > logs > > > > > in the /var/log/rhn/rhn_web_api.log. Any ideas as to what is causing > > > this error? I am using perl with the Frontier::Client as given in the > > > example for perl scirpt using the API in the help section of > > > Spacewalk. > > > > > > [2012-05-04 09:31:31,091] ERROR - REQUESTED FROM: 172.19.65.71 CALL: > > > activationkey.create(8068925xf9968a1ceae350e2b98b16bf0b968dec, <removed > > > > for > > > > > security>, <removed for security>, <removed for security>, > > > [monitoring_entitled, provisioning_entitled], false) CALLER: (<removed > > > > for > > > > > security>) TIME: 0.028 seconds > > > redstone.xmlrpc.XmlRpcFault: Invalid entitlement > > > > > > at > > > > > > com.redhat.rhn.frontend.xmlrpc.BaseHandler.invoke(BaseHandler.java:124) > > > > > > at > > > > > > redstone.xmlrpc.XmlRpcDispatcher.dispatch(XmlRpcDispatcher.java:123) > > > > > > at > > > > com.redhat.rhn.frontend.xmlrpc.RhnXmlRpcServer.execute(RhnXmlRpcServer.ja > > va > > > > > :54) at > > > > com.redhat.rhn.frontend.xmlrpc.XmlRpcServlet.doPost(XmlRpcServlet.java:16 > > 2) > > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat > > io > > > > > nFilterChain.java:269) at > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte > > rC > > > > > hain.java:188) at > > > > com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.j > > av > > > > > a:142) at > > > > com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.ja > > va > > > > > :58) at > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat > > io > > > > > nFilterChain.java:215) at > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte > > rC > > > > > hain.java:188) at > > > > com.redhat.rhn.frontend.servlets.LocalizedEnvironmentFilter.doFilter(Loca > > li > > > > > zedEnvironmentFilter.java:67) at > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat > > io > > > > > nFilterChain.java:215) at > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte > > rC > > > > > hain.java:188) at > > > > com.redhat.rhn.frontend.servlets.EnvironmentFilter.doFilter(EnvironmentFi > > lt > > > > > er.java:108) at > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat > > io > > > > > nFilterChain.java:215) at > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte > > rC > > > > > hain.java:188) at > > > > com.redhat.rhn.frontend.servlets.SessionFilter.doFilter(SessionFilter.java: > > > 55) at > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat > > io > > > > > nFilterChain.java:215) at > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte > > rC > > > > > hain.java:188) at > > > > com.redhat.rhn.frontend.servlets.SetCharacterEncodingFilter.doFilter(SetC > > ha > > > > > racterEncodingFilter.java:97) at > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat > > io > > > > > nFilterChain.java:215) at > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte > > rC > > > > > hain.java:188) at > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve > > .j > > > > > ava:210) at > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve > > .j > > > > > ava:172) at > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: > > 12 > > > > > 7) at > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: > > 11 > > > > > 7) at > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j > > av > > > > > a:108) at > > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:15 > > 1) > > > > > at > > > > > > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) > > > > > > at > > > > > > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) > > > > > > at > > > > > > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:775) at > > > > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:7 > > 04 > > > > > ) at > > > > org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.j > > av > > > > > a:897) at > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool. > > ja > > > > > va:685) at java.lang.Thread.run(Thread.java:679) > > > > > > Thank you for your time and have a great day! > > > > Just by reading our code, I'm unable to tell why you would -- in your > > particular case -- get the exception you're seeing. > > > > Could you please: > > 1. run the problematic api again > > 2. capture the whole output from catalina.out while doing step 1 (what > > we see above is not the whole traceback) > > 3. paste the traceback here > > > > ? > > > > Thank you > > -MZ > > Thank you Milian for your reply. I feel really bad now. I went to try > another API call without changing a thing and it works now. The only thing > I did was tail -f the catalina.out log and everything just worked. I am not > sure how this happened I have not touched it for a couple of days as I was > waiting on a reply. It seems to be working now so I guess we can call this > one resolved. Sorry that I have sent so many emails regarding this. Thank > you for your time and have a great day! Again sorry about all this.
No problem, thank you for the confirmation :-) -MZ _______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
