Failed request: runJobInline . Result: Internal Server Error

110 views
Skip to first unread message

jerom...@gmail.com

unread,
Sep 4, 2013, 9:35:15 AM9/4/13
to rundeck...@googlegroups.com
Hello,

I'm testing RUNDESK which I want to use to run tasks on multiple nodes, remotely.

I've created a job, associated to my localhost node (where rundesk is installed).

When I try to run that job (remote command: "uname -a"), I get an error "Failed request: runJobInline . Result: Internal Server Error"

The detailled log found in $RDEC_BASE//var/log/service.log follows:

2013-09-02 18:51:10,324 ERROR GrailsExceptionResolver - Exception occurred when processing request: [POST] /job/runJobInline
Stacktrace follows:
java.lang.NullPointerException: Cannot get property 'argString' on null object
        at rundeck.services.ExecutionService.selectSecureOptionInput(ExecutionService.groovy:1188)
        at rundeck.services.ExecutionService.selectSecureOptionInput(ExecutionService.groovy)
        at rundeck.services.ExecutionService$selectSecureOptionInput.callCurrent(Unknown Source)
        at rundeck.services.ExecutionService$selectSecureOptionInput.callCurrent(Unknown Source)
        at rundeck.services.ExecutionService.executeScheduledExecution(ExecutionService.groovy:1078)
        at rundeck.services.ExecutionService$$FastClassByCGLIB$$ffb73873.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
        at rundeck.services.ExecutionService$$EnhancerByCGLIB$$e636f2d0.executeScheduledExecution(<generated>)
        at rundeck.services.ExecutionService$executeScheduledExecution.call(Unknown Source)
        at rundeck.controllers.ScheduledExecutionController.runJob(ScheduledExecutionController.groovy:1633)
        at rundeck.controllers.ScheduledExecutionController.this$2$runJob(ScheduledExecutionController.groovy)
        at rundeck.controllers.ScheduledExecutionController$_closure28.doCall(ScheduledExecutionController.groovy:1570)
        at rundeck.controllers.ScheduledExecutionController$_closure28.doCall(ScheduledExecutionController.groovy)

Please note that, when I try to run a command (not a JOB), by using the form in the "Nodes" tab, it just works fine.
The output shows: "Linux localhost.localdomain 2.6.32-358.18.1.el6.i686 #1 SMP Wed Aug 28 14:27:42 UTC 2013 i686 i686 i386 GNU/Linux"

Some useful information (I hope):

- tried a .jar / RPM install
- now running the 1.6.0.1 version.
- also tried the 1.6.1 version

These actions did not help me.

could you give me some help ?

Thanks by advance

Best regards
Jérôme



jerom...@gmail.com

unread,
Sep 4, 2013, 10:25:40 AM9/4/13
to rundeck...@googlegroups.com


Le mercredi 4 septembre 2013 15:35:15 UTC+2, jerom...@gmail.com a écrit :
Hello,

I'm testing RUNDESK which I want to use to run tasks on multiple nodes, remotely.

I've created a job, associated to my localhost node (where rundesk is installed).

When I try to run that job (remote command: "uname -a"), I get an error "Cannot get property 'argString' on null object"


The detailled log found in $RDEC_BASE//var/log/service.log follows:

2013-09-02 18:51:10,324 ERROR GrailsExceptionResolver - Exception occurred when processing request: [POST] /job/runJobInline
Stacktrace follows:
java.lang.NullPointerException: Cannot get property 'argString' on null object
        at rundeck.services.ExecutionService.selectSecureOptionInput(ExecutionService.groovy:1188)
        at rundeck.services.ExecutionService.selectSecureOptionInput(ExecutionService.groovy)
        at rundeck.services.ExecutionService$selectSecureOptionInput.callCurrent(Unknown Source)
        at rundeck.services.ExecutionService$selectSecureOptionInput.callCurrent(Unknown Source)
        at rundeck.services.ExecutionService.executeScheduledExecution(ExecutionService.groovy:1078)
        at rundeck.services.ExecutionService$$FastClassByCGLIB$$ffb73873.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
        at rundeck.services.ExecutionService$$EnhancerByCGLIB$$e636f2d0.executeScheduledExecution(<generated>)
        at rundeck.services.ExecutionService$executeScheduledExecution.call(Unknown Source)
        at rundeck.controllers.ScheduledExecutionController.runJob(ScheduledExecutionController.groovy:1633)
        at rundeck.controllers.ScheduledExecutionController.this$2$runJob(ScheduledExecutionController.groovy)
        at rundeck.controllers.ScheduledExecutionController$_closure28.doCall(ScheduledExecutionController.groovy:1570)
        at rundeck.controllers.ScheduledExecutionController$_closure28.doCall(ScheduledExecutionController.groovy)

Please note that, when I try to run a command (not a JOB), by using the form in the "Nodes" tab, it just works fine.
The output shows: "Linux localhost.localdomain 2.6.32-358.18.1.el6.i686 #1 SMP Wed Aug 28 14:27:42 UTC 2013 i686 i686 i386 GNU/Linux"

Some useful information (I hope):

- tried a .jar / RPM install
- now running the 1.6.0.1 version.
- also tried the 1.6.1 version
   - also tried java 1.6 (curreltly I am on 1.7)

Alex Honor

unread,
Sep 4, 2013, 10:51:02 AM9/4/13
to rundeck...@googlegroups.com
Hi Jerome,

That looks like a bug. As a work around, you might try mlei's suggestion to specify the command using bash -c 'uname -a'. Would you mind logging this as an issue? No matter what, a NullPointerException should not be thrown.

Thanks


--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--

Alex Honor

[SimplifyOps, Inc | a...@simplifyops.com ]

Be sure to comment and vote on Rundeck Feature Development!

jerom...@gmail.com

unread,
Sep 5, 2013, 2:59:36 AM9/5/13
to rundeck...@googlegroups.com

Hi Alex,
Thanks for the reply.

I've just tried that:

Edited the job and changed the command for:

- /bin/bash -c 'uname -a'
- bash -c 'uname -a'

The same error still occurs :-(

I don't know I it can help: I'm using a Virtualbox VM with a Centos 6.4 x86

May I ask you how I can log it as an issue ?

Thanks by advance
Regards
Jérôme

Reply all
Reply to author
Forward
0 new messages