a2x: ERROR: "xsltproc" ... returned non-zero exit status 5 during Debian package build
Debian package builds of foreman-installer have started failing with a2x errors on all OSes. I don't think they export parameters at all, so can't think that a change to a Puppet module is causing it.
00:02:58.919 cp man/foreman-installer.8.asciidoc /var/lib/workspace/workspace/packaging_build_deb_coreproject/label/debian/os/wheezy/debian/wheezy/build-foreman-installer/foreman-installer-1.9.0-RC2/_build/foreman-installer.8.asciidoc 00:02:58.919 ** Execute /var/lib/workspace/workspace/packaging_build_deb_coreproject/label/debian/os/wheezy/debian/wheezy/build-foreman-installer/foreman-installer-1.9.0-RC2/_build/foreman-installer.8 00:02:58.919 a2x -d manpage -f manpage /var/lib/workspace/workspace/packaging_build_deb_coreproject/label/debian/os/wheezy/debian/wheezy/build-foreman-installer/foreman-installer-1.9.0-RC2/_build/foreman-installer.8.asciidoc -L 00:02:58.927 WARNING: kafo exporter not found - not generating extended manual page 00:02:59.673 a2x: ERROR: "xsltproc" --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 "/etc/asciidoc/docbook-xsl/manpage.xsl" "/var/lib/workspace/workspace/packaging_build_deb_coreproject/label/debian/os/wheezy/debian/wheezy/build-foreman-installer/foreman-installer-1.9.0-RC2/_build/foreman-installer.8.xml" returned non-zero exit status 5 00:02:59.682 rake aborted! 00:02:59.682 Command failed with status (1): [a2x -d manpage -f manpage /var/lib/workspa...]
I tried to reproduce the error with the same command on a 14.04 VM and couldn't.
#2 Updated by Aaron Stone over 5 years ago
I was able to produce this error from xsltproc:
Erro: no refentry: No refentry elements found in "foreman\-insta foreman\-installer(8)
Edit: but actually, this did not cause the process to exit non-zero. Also I see no recent changes to the man page in a while.
xsltproc exit code 5 means:
5: error in the stylesheet
Maybe that helps narrow it down?
Possibly worth a separate ticket, but in http://ci.theforeman.org/job/packaging_build_deb_coreproject/2198/label=debian,os=precise/console the failure is
03:27:26 a2x: ERROR: xsltproc --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 /etc/asciidoc/docbook-xsl/manpage.xsl /var/lib/workspace/workspace/packaging_build_deb_coreproject/label/debian/os/precise/debian/precise/build-foreman-installer/foreman-installer-1.10.0/_build/foreman-installer.8.xml returned non-zero exit status 9
xsltproc exit code 9 means:
9: internal processing error
Not much help there :(
#3 Updated by Dominic Cleal over 5 years ago
Interesting, I hadn't noticed that the exit code was changing, even stranger.
Indeed, the man page hasn't changed for a long time. It hasn't changed at all when it's broken or fixed, and I can't see any pattern to it. Our RPM man page contains Puppet class parameter documentation, but the Debian one never got that functionality added, so it's static.
My only thoughts have been, a) the date generated at the bottom changes, b) possibly some OOM type of condition on our builders. I just checked dmesg on the builder that threw the exit code 9 linked from your comment and there's not been a single OOM.
#4 Updated by Dominic Cleal over 5 years ago
Apart from the one instance you linked to of the exit code 9 on Ubuntu 12.04/precise, all other failures have been on all four OSes too, and all four start working at the same time. Usually builds run across both physical hosts simultaneously, two OSes on each (each has two slots allocated).
#6 Updated by Dominic Cleal about 5 years ago
00:03:25.190 a2x: ERROR: "xsltproc" --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 "/etc/asciidoc/docbook-xsl/manpage.xsl" "/var/lib/workspace/workspace/packaging_build_deb_coreproject/label/debian/os/wheezy/debian/wheezy/build-foreman-installer/foreman-installer-1.10.0/_build/foreman-installer.8.xml" returned non-zero exit status 5 00:03:25.199 rake aborted! 00:03:25.199 Command failed with status (1): [a2x -d manpage -f manpage /var/lib/workspa...]