[Spacewalk-list] Problems with packages_cleanup.sh

Snyder, Chris Chris_Snyder at sra.com
Thu Sep 3 13:18:17 UTC 2015


The only recommendations I have for you is to try running orphan clean up and data-fsck manually then try the entire package_cleanup.sh script again:

Specifically (obviously, replace the variables as needed):

spacecmd -s $SRV -u $LOGIN -p $PASS -q -y package_removeorphans
spacewalk-data-fsck -r -S -C –O

after that,  if things still fail you’re going to have to check out the appropriate logs under /var/log/rhn and /var/log/tomcat6 to try and narrow down what’s going on.

The only other option I can recommend – and I’ve had to do this myself – is to drop all channels and delete all packages from the database and re-create the channels and re-load the packages. I’ve had to do this once when I seriously screwed up the database (and I still have no idea what I did).   But that is the extreme solution and should only be done if you have no other choice as it’s a real pain to complete.

Good luck.

From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Philipp Wehling
Sent: Thursday, September 03, 2015 8:53 AM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Problems with packages_cleanup.sh

Hello,

having the same problems here.

Any suggestions?


kind regards,
Philipp

________________________________
From: "Ricardo Esteves" <ricardo.m.esteves at gmail.com<mailto:ricardo.m.esteves at gmail.com>>
To: spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
Sent: Monday, August 31, 2015 4:25:49 PM
Subject: Re: [Spacewalk-list] Problems with packages_cleanup.sh

Hi,

No, there is only one organization, the default, and i can see the
package details in the UI with the user admin.

Best regards,
Ricardo Esteves.

On 31-08-2015 14:17, Tomas Lestach wrote:
> Is it possible the admin user does not have access to package with id 41081?
> In another words, the package is available only in another organization than
> the admin user lives in?
>
> Regards,
> --
> Tomas Lestach
> Red Hat Satellite Engineering, Red Hat
>
>
> ----- Original Message -----
>> From: "Ricardo Esteves" <ricardo.m.esteves at gmail.com<mailto:ricardo.m.esteves at gmail.com>>
>> To: spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
>> Sent: Monday, August 31, 2015 2:47:52 PM
>> Subject: Re: [Spacewalk-list] Problems with packages_cleanup.sh
>>
>> Hi,
>>
>> It seems the error comes when we execute the
>> "package_listinstalledsystems" operation with spacecmd :
>>
>> spacecmd -s 127.0.0.1 -u admin -p xxxxxx -q
>> package_listinstalledsystems
>> 389-ds-base-1.2.11.15-60.el6.x86_64
>> ERROR: redstone.xmlrpc.XmlRpcFault: Invalid package: 41081
>>
>> Best regards,
>> Ricardo Esteves.
>>
>> On 23-08-2015 11:53, Ricardo Esteves wrote:
>>> Hi,
>>>
>>> The errors are back!
>>>
>>> It was a coincidence changing the parameters and the run after that
>>> went
>>> ok, but now i have the same errors again :(
>>>
>>> -----Original Message-----
>>> From: Ricardo Esteves [mailto:ricardo.m.esteves at gmail.com]
>>> Sent: quarta-feira, 19 de Agosto de 2015 22:53
>>> To: 'spacewalk-list at redhat.com'
>>> Subject: RE: [Spacewalk-list] Problems with packages_cleanup.sh
>>>
>>> Hi,
>>>
>>> I changed the SRV from localhost to the fqdn and the DIR from /tmp
>>> to
>>> /var/satellite and now It's working fine.
>>>
>>> Thanks.
>>>
>>> -----Original Message-----
>>> From: spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>
>>> [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Dimitri
>>> Yioulos
>>> Sent: terça-feira, 18 de Agosto de 2015 22:06
>>> To: spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
>>> Subject: Re: [Spacewalk-list] Problems with packages_cleanup.sh
>>>
>>> Oops, sorry, the values should be as follow:
>>>
>>> LOGIN='admin'
>>> PASS=adminpass'
>>> SRV='spacewalk.mynet.com'
>>> DIR='/spacewalk/satellite'   <-- this one might be optional,
>>> location of
>>> satellite directory
>>>
>>> Give those a try.
>>>
>>>
>>> -----Original Message-----
>>> From: spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>
>>> [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Dimitri
>>> Yioulos
>>> Sent: Tuesday, August 18, 2015 4:55 PM
>>> To: spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
>>> Subject: Re: [Spacewalk-list] Problems with packages_cleanup.sh
>>>
>>> In the script, do you have the following values?
>>>
>>> LOGIN='admin'
>>> PASS=adminpass
>>> SRV='localhost'
>>>
>>> where LOGIN and PASS are specific to your spacewalk administrator
>>> account?
>>>
>>>
>>> -----Original Message-----
>>> From: spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>
>>> [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Ricardo
>>> Esteves
>>> Sent: Tuesday, August 18, 2015 4:36 PM
>>> To: spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
>>> Subject: [Spacewalk-list] Problems with packages_cleanup.sh
>>>
>>> Hi,
>>>
>>> The first times i executed packages_cleanup.sh
>>> (http://www.stankowic-development.net/?p=5684&lang=en) it was all
>>> ok, but
>>> since a few days now i'm getting a lot of these errors:
>>>
>>> Aug 18 21:16:11 spacewalk server: WARNING:
>>> redstone.xmlrpc.XmlRpcFault:
>>> Invalid package: 35124
>>> Aug 18 21:16:12 spacewalk server: 2015-08-18 21:16:12,774
>>> [ajp-bio-127.0.0.1-8009-exec-6] ERROR
>>> com.redhat.rhn.frontend.xmlrpc.BaseHandler - Error calling method:
>>> Aug 18 21:16:12 spacewalk server:
>>> java.lang.reflect.InvocationTargetException
>>> Aug 18 21:16:12 spacewalk server: at
>>> sun.reflect.GeneratedMethodAccessor1270.invoke(Unknown Source) Aug
>>> 18
>>> 21:16:12 spacewalk server: at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
>>> pl
>>> .java:43)
>>> Aug 18 21:16:12 spacewalk server: at
>>> java.lang.reflect.Method.invoke(Method.java:606)
>>> Aug 18 21:16:12 spacewalk server: at
>>> com.redhat.rhn.frontend.xmlrpc.BaseHandler.invoke(BaseHandler.java:172)
>>> Aug 18 21:16:12 spacewalk server: at
>>> redstone.xmlrpc.XmlRpcDispatcher.dispatch(XmlRpcDispatcher.java:123)
>>> Aug 18 21:16:12 spacewalk server: at
>>> com.redhat.rhn.frontend.xmlrpc.RhnXmlRpcServer.execute(RhnXmlRpcServer.jav
>>> a:
>>> 54)
>>> Aug 18 21:16:12 spacewalk server: at
>>> com.redhat.rhn.frontend.xmlrpc.XmlRpcServlet.doPost(XmlRpcServlet.java:162
>>> )
>>> Aug 18 21:16:12 spacewalk server: at
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>>> Aug 18 21:16:12 spacewalk server: at
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
>>> on
>>> FilterChain.java:303)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
>>> Ch
>>> ain.java:208)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
>>> on
>>> FilterChain.java:241)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
>>> Ch
>>> ain.java:208)
>>> Aug 18 21:16:12 spacewalk server: at
>>> com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilt
>>> er
>>> .java:129)
>>> Aug 18 21:16:12 spacewalk server: at
>>> com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.ja
>>> va
>>> :77)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
>>> on
>>> FilterChain.java:241)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
>>> Ch
>>> ain.java:208)
>>> Aug 18 21:16:12 spacewalk server: at
>>> com.redhat.rhn.frontend.servlets.LocalizedEnvironmentFilter.doFilter(Local
>>> iz
>>> edEnvironmentFilter.java:67)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
>>> on
>>> FilterChain.java:241)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
>>> Ch
>>> ain.java:208)
>>> Aug 18 21:16:12 spacewalk server: at
>>> com.redhat.rhn.frontend.servlets.EnvironmentFilter.doFilter(EnvironmentFil
>>> te
>>> r.java:100)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
>>> on
>>> FilterChain.java:241)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
>>> Ch
>>> ain.java:208)
>>> Aug 18 21:16:12 spacewalk server: at
>>> com.redhat.rhn.frontend.servlets.SessionFilter.doFilter(SessionFilter.java
>>> :5
>>> 7)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
>>> on
>>> FilterChain.java:241)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
>>> Ch
>>> ain.java:208)
>>> Aug 18 21:16:12 spacewalk server: at
>>> com.redhat.rhn.frontend.servlets.SetCharacterEncodingFilter.doFilter(SetCh
>>> ar
>>> acterEncodingFilter.java:97)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
>>> on
>>> FilterChain.java:241)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
>>> Ch
>>> ain.java:208)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
>>> ja
>>> va:220)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
>>> ja
>>> va:122)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBa
>>> se
>>> .java:501)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
>>> 71
>>> )
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
>>> 02
>>> )
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
>>> va
>>> :116)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408
>>> )
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstr
>>> ac
>>> tProtocol.java:607)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.jav
>>> a:
>>> 314)
>>> Aug 18 21:16:12 spacewalk server: at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
>>> 11
>>> 45)
>>> Aug 18 21:16:12 spacewalk server: at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
>>> :6
>>> 15)
>>> Aug 18 21:16:12 spacewalk server: at
>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.
>>> ja
>>> va:61)
>>> Aug 18 21:16:12 spacewalk server: at
>>> java.lang.Thread.run(Thread.java:745)
>>> Aug 18 21:16:12 spacewalk server: Caused by:
>>> com.redhat.rhn.frontend.xmlrpc.InvalidPackageException: Invalid
>>> package:
>>> 32677
>>> Aug 18 21:16:12 spacewalk server: at
>>> com.redhat.rhn.frontend.xmlrpc.system.SystemHandler.listSystemsWithPackage
>>> (S
>>> ystemHandler.java:4494)
>>>
>>> Anyone experienced this before? Anyone knows what this could be and
>>> how to
>>> fix?
>>>
>>> Best regards,
>>> Ricardo Esteves.
>>>
>>> _______________________________________________
>>> Spacewalk-list mailing list
>>> Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>>
>>> _______________________________________________
>>> Spacewalk-list mailing list
>>> Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>>
>>> _______________________________________________
>>> Spacewalk-list mailing list
>>> Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
> https://www.redhat.com/mailman/listinfo/spacewalk-list

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20150903/7ce313be/attachment.htm>


More information about the Spacewalk-list mailing list