Hello fellow Rundeck users,
I get the following exception when
running and following a long running job from the CLI using this
command: run -f -p <my-project-name> -j my-group/my-job -- <my
parameters>
The same job works when I run it from the rundeck UI. In fact even
when kicked off via the CLI and it crashes, the job carries on running
fine. It is just the CLI follow that is crashing.
ERROR WebserviceHttpClientChannel: Unable to parse result document: Error on line 1 of document : An invalid XML character (Unicode: 0x8) was found in the element content of the document. Nested exception: An invalid XML character (Unicode: 0x8) was found in the element content of the document.
org.dom4j.DocumentException: Error on line 1 of document : An invalid XML character (Unicode: 0x8) was found in the element content of the document. Nested exception: An invalid XML character (Unicode: 0x8) was found in the element content of the document.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:343)
at com.dtolabs.client.utils.WebserviceHttpClientChannel.postMakeRequest(WebserviceHttpClientChannel.java:283)
at com.dtolabs.client.utils.HttpClientChannel.makeRequest(HttpClientChannel.java:396)
at com.dtolabs.client.services.ServerService.makeRundeckRequest(ServerService.java:182)
at com.dtolabs.client.services.ServerService.makeRundeckRequest(ServerService.java:134)
at com.dtolabs.client.services.ServerService.makeRundeckRequest(ServerService.java:97)
at com.dtolabs.client.services.RundeckAPICentralDispatcher.followDispatcherExecution(RundeckAPICentralDispatcher.java:819)
at com.dtolabs.rundeck.core.cli.queue.QueueTool.followAction(QueueTool.java:484)
at com.dtolabs.rundeck.core.cli.run.RunTool.followOutput(RunTool.java:504)
at com.dtolabs.rundeck.core.cli.run.RunTool.jobrunAction(RunTool.java:489)
at com.dtolabs.rundeck.core.cli.run.RunTool.go(RunTool.java:392)
at com.dtolabs.rundeck.core.cli.BaseTool.run(BaseTool.java:107)
at com.dtolabs.rundeck.core.cli.run.RunTool.main(RunTool.java:124)
Nested exception:
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 5841; An invalid XML character (Unicode: 0x8) was found in the element content of the document.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.dom4j.io.SAXReader.read(SAXReader.java:343)
at com.dtolabs.client.utils.WebserviceHttpClientChannel.postMakeRequest(WebserviceHttpClientChannel.java:283)
at com.dtolabs.client.utils.HttpClientChannel.makeRequest(HttpClientChannel.java:396)
at com.dtolabs.client.services.ServerService.makeRundeckRequest(ServerService.java:182)
at com.dtolabs.client.services.ServerService.makeRundeckRequest(ServerService.java:134)
at com.dtolabs.client.services.ServerService.makeRundeckRequest(ServerService.java:97)
at com.dtolabs.client.services.RundeckAPICentralDispatcher.followDispatcherExecution(RundeckAPICentralDispatcher.java:819)
at com.dtolabs.rundeck.core.cli.queue.QueueTool.followAction(QueueTool.java:484)
at com.dtolabs.rundeck.core.cli.run.RunTool.followOutput(RunTool.java:504)
at com.dtolabs.rundeck.core.cli.run.RunTool.jobrunAction(RunTool.java:489)
at com.dtolabs.rundeck.core.cli.run.RunTool.go(RunTool.java:392)
at com.dtolabs.rundeck.core.cli.BaseTool.run(BaseTool.java:107)
at com.dtolabs.rundeck.core.cli.run.RunTool.main(RunTool.java:124)
Error: Failed following output for execution: 2548
Looking in this file: ./logs/rundeck/ProjName/
bootstrap/bootstrap-hap/2548.txt
I can see the last line which comes out before the crash, and the first line which doesn't sitting side by side:
^^^08:54:26|INFO|root||3-rundeck-jobref:3-rundeck-jobref:1-exec|FTSJG5J-pxe||INFO: Creating new partitions on disks^^^
^^^08:54:28|INFO|root||3-rundeck-jobref:3-rundeck-jobref:1-exec|FTSJG5J-pxe||INFO: Setting LVM flags^^^
I understand the special char 0x8 to be the backspace key - not sure how that could be coming.
I
am making this call from Jenkins as I have refactored a series of
Jenkins jobs into a single, multi-step rundeck job. Much neater, except
for this issue. I am specifically not using the Rundeck plug-in for
Jenkins because it does not follow the jobs output.
Any help or suggestions would be much appreciated.
Many thanks,
Andy