Red Hat Bugzilla – Bug 854772
publican builds fail silently
Last modified: 2014-10-19 19:01:26 EDT
No error message reported when using csprocessor assemble:
Content Specification build unzipped to /home/sitapati/Ubuntu One/books/Messaging_Programming_Reference/assembly/publican
Starting the publican build...
and an exit code of 255:
$ echo $?
However, manually running publican reveals an error condition:
$ publican build --formats=en-US --langs=en-US
Failed to load brand file: /usr/share/publican/Common_Content/redhat-video/publican.cfg at /usr/bin/publican line 647
and an exit code of 2 from publican:
$ echo $?
Does an exit code of 255 from csprocessor signify a specific error condition?
Is it possible to propagate the publican error message or error condition, or at least report that publican exited with an error?
CSProcessor client version: 0.26.5
JAVA: java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1)
OpenJDK Client VM (build 20.0-b12, mixed mode, sharing)
Fixed in 0.26.7
This fix consists of two parts.
The first is to fix the output so that it is printed to the screen. This was caused by a timing issue when using threads to display the output. I've added checks in to ensure that the output is always printed before destroying the threads and moving on.
The second is to report the error code from publican in some form. Since there is overlap between the existing error codes and publican I've gone with adding the error code to the output (after the errors printed by publican). eg new error message:
Unable to assemble the Content Specification because an error occured while running Publican. (exit code 12)
Closing and setting as current release as no QA was performed by the original reporter. If there is still an issue with this bug still than please re-open it.