[Spacewalk-list] Problems with packages_cleanup.sh

Reed, Steven Steven.Reed at transport.nsw.gov.au
Wed Sep 9 09:07:43 UTC 2015


Don't use that shell script, it's really old and slow.

This python script works well on 2.2+ (Sorry I don't have a url for it right now)

------

# usage: spacewalk-remove-old-packages.py [options]
#
# options:
#   -h, --help            show this help message and exit
#   -s SPW_SERVER, --spw-server=SPW_SERVER
#                         Spacewalk Server
#   -u SPW_USER, --spw-user=SPW_USER
#                         Spacewalk User
#   -p SPW_PASS, --spw-pass=SPW_PASS
#                         Spacewalk Password
#   -f CFG_FILE, --config-file=CFG_FILE
#                         Config file for servers, users, passwords
#   -c CHANNEL, --channel=CHANNEL
#                         Channel Label: ie."myown-rhel-6-x86_64"
#   -w, --without-channels
#                         Delete packages without channel. Overwrites the
#                         channel option
#   -n, --dryrun          No Change is actually made, only print what would be
#                         done

#
#
# The configuration file must be parseable bei ConfigParser:
# Example:
#
# [Spacewalk]
# spw_server = spacewalk.example.com
# spw_user   = api_user_1
# spw_pass   = api_password_1

import xmlrpclib
import datetime
import ConfigParser
import sys
import os

from subprocess import *
from optparse import OptionParser


def parse_args():
    parser = OptionParser()
    parser.add_option("-s", "--spw-server", type="string", dest="spw_server",
            help="Spacewalk Server")
    parser.add_option("-u", "--spw-user", type="string", dest="spw_user",
            help="Spacewalk User")
    parser.add_option("-p", "--spw-pass", type="string", dest="spw_pass",
            help="Spacewalk Password")
    parser.add_option("-f", "--config-file", type="string", dest="cfg_file",
            help="Config file for servers, users, passwords")
    parser.add_option("-c", "--channel", type="string", dest="channel",
            help="Channel Label: ie.\"lhm-rhel-6-x86_64\"")
    parser.add_option("-w", "--without-channels", action="store_true", dest="wo_channel",
            help="Delete packages without channel. Overwrites the channel option")
    parser.add_option("-l", "--with-lucene-search", type="string", dest="lucene",
            help="Search packages with the lucene search syntax (see the spacewalk/satellite documentation - API - packages.search - advanced) and tries to delete them")
    parser.add_option("-m", "--max", type="int",
            help="Limit number of packages removed to MAX. Default: no limit.")
    parser.add_option("-n", "--dryrun", action="store_true", dest="dryrun",
            help="No Change is actually made, only print what would be done")
    (options,args) = parser.parse_args()
    return options


def cmp_dictarray(pkgs, id):
    for pkg in pkgs:
        for (key,val) in pkg.iteritems():
            if val == id:
                return True
    return False



def main():

    # Get the options
    options = parse_args()
    # read the config
    if options.cfg_file:
        config = ConfigParser.ConfigParser()
        config.read (options.cfg_file)
        if options.spw_server is None:
            options.spw_server = config.get ('Spacewalk', 'spw_server')
        if options.spw_user is None:
            options.spw_user = config.get ('Spacewalk', 'spw_user')
        if options.spw_pass is None:
            options.spw_pass = config.get ('Spacewalk', 'spw_pass')

    if options.channel is None and options.wo_channel is None and options.lucene is None:
        print "Channel not given, aborting"
        sys.exit(2)

    spacewalk = xmlrpclib.Server("https://%s/rpc/api" % options.spw_server, verbose=0, allow_none=True)
    spacekey = spacewalk.auth.login(options.spw_user, options.spw_pass)

    to_delete=[]
    to_delete_ids=[]
    # get all packages
    if options.wo_channel is None and options.lucene is None:
        print "Getting all packages"
        allpkgs = spacewalk.channel.software.listAllPackages(spacekey, options.channel)
        print " - Amount: %d" % len(allpkgs)
        # get newest packages
        print "Getting newest packages"
        newpkgs = spacewalk.channel.software.listLatestPackages(spacekey, options.channel)
        print " - Amount: %d" % len(newpkgs)
        for pkg in allpkgs:
            if not cmp_dictarray(newpkgs, pkg['id']):
                print "Marked:  %s-%s-%s (id %s)" % (pkg['name'], pkg['version'], pkg['release'], pkg['id'])
                to_delete.append(pkg)
                to_delete_ids.append(pkg['id'])
        print "Removing packages from channel..."

    if options.wo_channel is not None:
        print "Getting all packages without channel"
        to_delete = spacewalk.channel.software.listPackagesWithoutChannel(spacekey)

    if options.lucene is not None:
        print "Getting all packages which match %s" % options.lucene
        to_delete = spacewalk.packages.search.advanced(spacekey, options.lucene)

    if options.max:
        if len(to_delete) > options.max:
            to_delete = to_delete[:options.max]
        if len(to_delete_ids) > options.max:
            to_delete_ids = to_delete_ids[:options.max]


    print "Packages to remove: %s" % len(to_delete)

    if len(to_delete) > 0:
        if options.dryrun is None:
            if options.wo_channel is None:
                print "Removing %d packages from channel %s" % (len(to_delete_ids), options.channel)
                ret = spacewalk.channel.software.removePackages(spacekey, options.channel, to_delete_ids)
        elif options.wo_channel is None:
            print "Dryrun: Removing %d packages from channel %s" % (len(to_delete_ids), options.channel)
        print "Deleting packages from spacewalk (if packages could not be removed they are maybe in another channel too)"
        for pkg in to_delete:
            if options.dryrun is not None:
                print "Dryrun: - Delete package %s-%s-%s (ID: %s)" % (pkg['name'], pkg['version'], pkg['release'], pkg['id'])
            else:
                print "Deleting package %s-%s-%s (ID: %s)" % (pkg['name'], pkg['version'], pkg['release'],pkg['id'])
                try:
                    ret = spacewalk.packages.removePackage(spacekey, pkg['id'])
                except:
                    print "  - Could not delete package from spacewalk"
                if ret != 1:
                    print " - Could not delete package %s-%s-%s (ID: %s)" % (pkg['name'], pkg['version'], pkg['release'],pkg['id'])




## MAIN
if __name__ == "__main__":
    main()

--------

then remember to spacewalk-data-fsck afterwards

then also remember to sync your channel repos with the latest whatever and also sync the kickstarts distrubtion files to the http/rsync iso (with no packages of course, see my pervious post) and finally sync cobbler




From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Ricardo Esteves
Sent: Wednesday, 9 September 2015 12:32 AM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Problems with packages_cleanup.sh

Hi, this definitely as something to do with permissions on the api, enabling the debug option of spacecmd when i try do delete one of these packages i get "You do not have permissions to perform this action":

[root at spacewalk bin]# spacecmd -s 127.0.0.1 -u admin -p ************ -d -y softwarechannel_removepackages epel7-centos7-x86_64 blacs-common-1.1-52.el7.x86_64

DEBUG: : False
DEBUG: Read configuration from /root/.spacecmd/config
DEBUG: Loading configuration section [spacecmd]
DEBUG: Current Configuration: {'username': 'admin', 'password': '***************', 'server': '127.0.0.1'}
DEBUG: Configuration section [127.0.0.1] does not exist
DEBUG: Connecting to https://127.0.0.1/rpc/api
DEBUG: Server API Version = 16
INFO: Spacewalk Username: admin
DEBUG: Loading cache from /root/.spacecmd/127.0.0.1/ssm
DEBUG: /root/.spacecmd/127.0.0.1/ssm does not exist
DEBUG: : False
DEBUG: Loading cache from /root/.spacecmd/127.0.0.1/systems
DEBUG: /root/.spacecmd/127.0.0.1/systems does not exist
DEBUG: Loading cache from /root/.spacecmd/127.0.0.1/errata
DEBUG: /root/.spacecmd/127.0.0.1/errata does not exist
DEBUG: Loading cache from /root/.spacecmd/127.0.0.1/packages_short
DEBUG: Loading cache from /root/.spacecmd/127.0.0.1/packages_long
DEBUG: Loading cache from /root/.spacecmd/127.0.0.1/packages_by_id
INFO: Connected to https://127.0.0.1/rpc/api as admin
Packages
--------
blacs-common-1.1-52.el7.x86_64
ERROR: redstone.xmlrpc.XmlRpcFault: You do not have permissions to perform this action.
Traceback (most recent call last):
  File "/usr/bin/spacecmd", line 145, in <module>
    shell.print_result(shell.onecmd(precmd), precmd)
  File "/usr/lib64/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
  File "/usr/lib/python2.7/site-packages/spacecmd/softwarechannel.py", line 1184, in do_softwarechannel_removepackages
    package_ids)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib64/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
Fault: <Fault -23: 'redstone.xmlrpc.XmlRpcFault: You do not have permissions to perform this action.'>


catalina.out :

Sep 08, 2015 2:27:55 PM redstone.xmlrpc.XmlRpcDispatcher writeError
WARNING: redstone.xmlrpc.XmlRpcFault: You do not have permissions to perform this action.


Then on spacewalk website i login with admin and i can delete the package without problems.

Best regards,
Ricardo Esteves.
On 04-09-2015 08:35, Philipp Wehling wrote:
Hello,

I tried your suggestions, but with no success.

Here the log output of one package failure:

/var/log/rhn/rhn_web_api.log

[2015-09-04 09:20:51,899] ERROR - REQUESTED FROM: 192.168.0.61 CALL: system.listSystemsWithPackage(admin, 47668) CALLER: (admin) TIME: 0.022 seconds
redstone.xmlrpc.XmlRpcFault: Invalid package: 47668
        at com.redhat.rhn.frontend.xmlrpc.BaseHandler.invoke(BaseHandler.java:201)
        at redstone.xmlrpc.XmlRpcDispatcher.dispatch(XmlRpcDispatcher.java:123)
        at com.redhat.rhn.frontend.xmlrpc.RhnXmlRpcServer.execute(RhnXmlRpcServer.java:54)
        at com.redhat.rhn.frontend.xmlrpc.XmlRpcServlet.doPost(XmlRpcServlet.java:162)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        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:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at com.redhat.rhn.frontend.servlets.LocalizedEnvironmentFilter.doFilter(LocalizedEnvironmentFilter.java:67)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at com.redhat.rhn.frontend.servlets.EnvironmentFilter.doFilter(EnvironmentFilter.java:100)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at com.redhat.rhn.frontend.servlets.SessionFilter.doFilter(SessionFilter.java:57)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at com.redhat.rhn.frontend.servlets.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:97)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:745)

/var/log/tomcat/catalina.2015-09-04.log

Sep 04, 2015 9:20:51 AM redstone.xmlrpc.XmlRpcDispatcher writeError
WARNING: redstone.xmlrpc.XmlRpcFault: Invalid package: 47668

I really dont want to clean up all repositories because I did so a few weeks ago.


kind regards,
Philipp

________________________________________
From: "Chris Snyder" <Chris_Snyder at sra.com>
To: spacewalk-list at redhat.com
Sent: Thursday, September 3, 2015 3:18:17 PM
Subject: Re: [Spacewalk-list] Problems with packages_cleanup.sh

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>
To: 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>
>> To: 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] On Behalf Of Dimitri
>>> Yioulos
>>> Sent: terça-feira, 18 de Agosto de 2015 22:06
>>> To: 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] On Behalf Of Dimitri
>>> Yioulos
>>> Sent: Tuesday, August 18, 2015 4:55 PM
>>> To: 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] On Behalf Of Ricardo
>>> Esteves
>>> Sent: Tuesday, August 18, 2015 4:36 PM
>>> To: 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
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>>
>>> _______________________________________________
>>> Spacewalk-list mailing list
>>> Spacewalk-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>>
>>> _______________________________________________
>>> Spacewalk-list mailing list
>>> Spacewalk-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list

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


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




_______________________________________________
Spacewalk-list mailing list
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





More information about the Spacewalk-list mailing list