Red Hat Bugzilla – Bug 527548
setroubleshoot: [xml.ERROR] read_xml_file() libxml2.parserError: xmlParseFile() failed
Last modified: 2012-04-27 23:30:44 EDT
Description of problem:
In today's boot logs:
Oct 6 23:44:53 restorecond: Unable to watch (/home/nim/public_html/*) No such file or directory
Oct 6 23:44:57 setroubleshoot: [xml.ERROR] read_xml_file() libxml2.parserError: xmlParseFile() failed
Version-Release number of selected component (if applicable):
The first one is not a bug as restorecond is supposed to watch for content in public_html and you don't have that directory.
Not sure what causes the second. Could you attach the /var/lib/setroubleshoot/audit_listener_database.xml
File, there is something in there that is causing a problem. If you zero out this file, setroubleshoot should start working again.
You will loose all of your setroubleshoot data.
Created attachment 364333 [details]
What did you compress this file with?
It's an xz file
Never heard of it.
I moved your xml file into /var/lib/setroubleshoot/audit_listener_database.xml
And my setroubleshoot had no problem reading the file.
Created attachment 467348 [details]
This problem still occurs in F13. I don't know about F14.
Obviously, localized message is truncated without respecting UTF-8
Note: My /etc/sysconfig/i18n is LANG="ja_JP.UTF-8"
*: XML is fragile, at least for critical logging purpose.
*: At the time of logging (to disk), english diag message(and/or diag#) is enough.
Localization should be a matter of its Viewer.
I had same problem,and I change the file's code from ansi to utf-8,it's seems to be ok.
cnfixit, I do not understand what you did?
(In reply to comment #9)
> cnfixit, I do not understand what you did?
the attachment's encoding is ansi,and xml file's head:
<?xml version="1.0" encoding="utf-8"?>
I change the file's encoding from ansi to utf-8,it's seems
to be ok.
# uname -a
Linux localhost.localdomain 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 EDT 2010 i686 i686 i386 GNU/Linux
# cat /etc/sysconfig/i18n