Bug 854772 - publican builds fail silently
Summary: publican builds fail silently
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CSProcessor
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Lee Newson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-05 23:31 UTC by Joshua Wulf
Modified: 2014-10-19 23:01 UTC (History)
3 users (show)

Fixed In Version: 0.26.7
Clone Of:
Environment:
Last Closed: 2013-06-07 01:30:11 UTC
Embargoed:


Attachments (Terms of Use)

Description Joshua Wulf 2012-09-05 23:31:31 UTC
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...
sitapati@ubuntu:~/Ubuntu One/books/Messaging_Programming_Reference$ 

and an exit code of 255:
$ echo $?
255

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 $?
2


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?

==============================
Generated Details:

CSProcessor client version: 0.26.5


OS: unknown
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)

Comment 1 Lee Newson 2012-09-10 03:49:35 UTC
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)

Comment 2 Lee Newson 2013-06-07 01:30:11 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.