Ticket #1100 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

bcfg2-build-reports is generating "Cannot resolve URI"

Reported by: Owned by: desai
Priority: major Milestone: Bcfg2 1.2.2 Release (Bugfix)
Component: bcfg2-reports Version: 1.0
Keywords: Cc:


I am running a hand packaged version of bcfg2-1.2.1.tar.gz, trying to use the Statistics plugin. I have also had to include a etc/report-configuration.xml (loosely based on this: to be able to run the bcfg2-build-reports tool.

But running "bcfg2-build-reports -N" yields the following:

# bcfg2-build-reports -N
bcfg2-build-reports: invalid XSLT transform file.
Traceback (most recent call last):
  File "/usr/sbin/bcfg2-build-reports", line 277, in <module>
    stylesheet = XSLT(parse(transformpath + transform))
  File "xslt.pxi", line 395, in lxml.etree.XSLT.__init__ (src/lxml/lxml.etree.c:107850)
  File "lxml.etree.pyx", line 228, in lxml.etree._ExceptionContext._raise_if_stored (src/lxml/lxml.etree.c:6786)
lxml.etree.XSLTParseError: Cannot resolve URI /usr/share/bcfg2/xsl-transforms/xsl-transform-includes/html-templates.xsl

The path it is complaining about is present though:

# head /usr/share/bcfg2/xsl-transforms/xsl-transform-includes/html-templates.xsl
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="" version="1.0" xmlns="">
      <xsl:template match="Node">
        <xsl:if test="count(Statistics/Good)+count(Statistics/Bad)+count(Statistics/Extra)+count(Statistics/Modified)+count(Statistics/Stale) > 0">
        <a name="{Client/@name}}"></a>
        <div class="nodebox"">
            <span class="notebox">Time Ran: <xsl:value-of select="Statistics/@time" /></span>
              <span class="configbox">(<xsl:value-of select="Client/@profile" />)</span>


Change History

comment:1 Changed 11 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.