LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-30-2016, 08:42 AM   #1
pradeepspa
Member
 
Registered: Oct 2015
Posts: 79

Rep: Reputation: Disabled
Rhn_check - xml.parsers.expat.ExpatError


Fols,

I am trying to install some packages through yum where i got below error.
Code:
Loaded plugins: dellsysid, fastestmirror, rhnplugin
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 157, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
    self.conf
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 254, in _getConfig
    self.plugins.run('init')
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/share/yum-plugins/rhnplugin.py", line 121, in init_hook
    login_info = up2dateAuth.getLoginInfo(timeout=timeout)
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 227, in getLoginInfo
    login(timeout=timeout)
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 194, in login
    li = server.up2date.login(systemId)
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 63, in __call__
    return rpcServer.doCall(method, *args, **kwargs)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 203, in doCall
    ret = method(*args, **kwargs)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 37, in _request1
    ret = self._request(methodname, params)
  File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 384, in _request
    self._handler, request, verbose=self._verbose)
  File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 187, in request
    return self._process_response(fd, connection)
  File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 215, in _process_response
    return self.parse_response(fd)
  File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 235, in parse_response
    p.feed(response)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 527, in feed
    self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: mismatched tag: line 158, column 2

when i do rhn_check,

Code:
[root@dev rhn]# rhn_check -vvvv
D: opening  db environment /var/lib/rpm/Packages joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
An error has occurred:
xml.parsers.expat.ExpatError
See /var/log/up2date for more information
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
D: May free Score board((nil))

I have done some research on internet where itseems like communication between client and RHN serverbut nowhere the fix has been mentioned.

Could someone shed light on this please?
 
Old 08-30-2016, 08:49 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by pradeepspa View Post
Fols,
I am trying to install some packages through yum where i got below error.
Code:
xml.parsers.expat.ExpatError: mismatched tag: line 158, column 2
when i do rhn_check,
Code:
[root@dev rhn]# rhn_check -vvvv
D: opening  db environment /var/lib/rpm/Packages joinenv
An error has occurred:
xml.parsers.expat.ExpatError
See /var/log/up2date for more information
I have done some research on internet where itseems like communication between client and RHN serverbut nowhere the fix has been mentioned.Could someone shed light on this please?
Well, the error tells you to check the log for more information...DID YOU? What did it say? And since you're having a problem with a registered RHEL system, why don't you call Red Hat support for assistance???

The log file should give you hints...we don't know what it says unless you post it.
 
Old 08-30-2016, 09:03 AM   #3
pradeepspa
Member
 
Registered: Oct 2015
Posts: 79

Original Poster
Rep: Reputation: Disabled
Below is the message I am getting.

Quote:
[Tue Aug 30 14:02:10 2016] up2date logging into up2date server
[Tue Aug 30 14:02:22 2016] up2date
Traceback (most recent call last):
File "/usr/sbin/rhn_check", line 396, in ?
cli.run()
File "/usr/share/rhn/up2date_client/rhncli.py", line 96, in run
sys.exit(self.main() or 0)
File "/usr/sbin/rhn_check", line 91, in main
self.__run_remote_actions()
File "/usr/sbin/rhn_check", line 185, in __run_remote_actions
action = self.__get_action(status_report)
File "/usr/sbin/rhn_check", line 103, in __get_action
ACTION_VERSION, status_report)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 37, in _request1
ret = self._request(methodname, params)
File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 384, in _request
self._handler, request, verbose=self._verbose)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 187, in request
return self._process_response(fd, connection)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 215, in _process_response
return self.parse_response(fd)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 235, in parse_response
p.feed(response)
File "/usr/lib64/python2.4/xmlrpclib.py", line 527, in feed
self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: mismatched tag: line 158, column 2
 
Old 08-30-2016, 09:16 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by pradeepspa View Post
Below is the message I am getting.
Right...so AGAIN:
  • Did you actually look into the log file the error tells you about????
  • Why have you not contacted Red Hat support for an error with the updater mechanism on a registered RHEL system????
Just telling us the same error a second time doesn't give us anything new to go on.
 
Old 08-30-2016, 09:18 AM   #5
pradeepspa
Member
 
Registered: Oct 2015
Posts: 79

Original Poster
Rep: Reputation: Disabled
The one I have provide above is from the log file. I will contact Red-Hat. Thanks
 
Old 08-30-2016, 01:37 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
up2date

just how old is this install ??
rhel4 used up2date , and rhel4 is UNSUPPORTED .
rhel4.9 went end of life this spring
 
Old 08-30-2016, 02:02 PM   #7
pradeepspa
Member
 
Registered: Oct 2015
Posts: 79

Original Poster
Rep: Reputation: Disabled
Its a centos 5.11 box.
 
Old 08-30-2016, 02:48 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by pradeepspa View Post
Its a centos 5.11 box.
Sorry, but you're not making ANY sense at all. CentOS is not, and never was, supported by Red Hat. You posted RHEL commands, and didn't provide details. You didn't post the log file contents (despite what you said), but posted the output of the "up2date" command.

Either ask a CLEAR question, and provide details, or there isn't anything we can do to help you.
 
Old 08-30-2016, 02:54 PM   #9
pradeepspa
Member
 
Registered: Oct 2015
Posts: 79

Original Poster
Rep: Reputation: Disabled
Okay sorry for posting RHEL command. I hope yum will be considered as centos command. when I give "yum repolist"

Quote:
[root@dev ~]# yum repolist
Loaded plugins: dellsysid, fastestmirror, rhnplugin
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 157, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
self.conf
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in <lambda>
conf = property(fget=lambda self: self._getConfig(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 254, in _getConfig
self.plugins.run('init')
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/share/yum-plugins/rhnplugin.py", line 121, in init_hook
login_info = up2dateAuth.getLoginInfo(timeout=timeout)
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 227, in getLoginInfo
login(timeout=timeout)
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 194, in login
li = server.up2date.login(systemId)
File "/usr/share/rhn/up2date_client/rhnserver.py", line 63, in __call__
return rpcServer.doCall(method, *args, **kwargs)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 203, in doCall
ret = method(*args, **kwargs)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 37, in _request1
ret = self._request(methodname, params)
File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 384, in _request
self._handler, request, verbose=self._verbose)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 187, in request
return self._process_response(fd, connection)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 215, in _process_response
return self.parse_response(fd)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 235, in parse_response
p.feed(response)
File "/usr/lib64/python2.4/xmlrpclib.py", line 527, in feed
self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: mismatched tag: line 158, column 2

I am getting above messages. You have mentioned , i didnt post log file content. If you see the error message,
Quote:
[root@dev rhn]# rhn_check -vvvv
D: opening db environment /var/lib/rpm/Packages joinenv
An error has occurred:
xml.parsers.expat.ExpatError
See /var/log/up2date for more information
I went into /var/log/up2date folder and posted the output. So you mean thats not the log file content you were referring? if so i am very well happy to provide the log file which you need.

Apologize again for not asking clear question before. Let me know if you need more details.
 
Old 08-30-2016, 03:03 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
cent uses rpm numbering that is DIFFERENT!!!! than redhat the versions are a bit higher so that migrating is easy

you can not use the redhat base and update repos on cent

your best option is to reformat and reinstall RHEL 5.11
but the 5 series is getting old and will be in level3 support only soon
security updates only
 
Old 08-31-2016, 12:38 PM   #11
pradeepspa
Member
 
Registered: Oct 2015
Posts: 79

Original Poster
Rep: Reputation: Disabled
Thanks for the information.I will probably decommision that host as its too old.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
up2date and rhn_check sang_froid Linux - Server 1 06-23-2009 12:48 AM
XML Schemas and Java XML Parsers manolakis Programming 1 03-20-2009 08:51 PM
Expat XML Parser not working itsmilesdavis Linux - Software 6 11-18-2007 12:17 PM
trouble parsing xml encoded in ISO-8859-1 with expat skails22 Programming 2 09-07-2007 05:27 PM
fontconfig expat xml parse PROBLEMS!! OrganicOrange84 Linux - Software 0 08-18-2004 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration