Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

SSH Permission denied when passing commands between servers after period of time

#346

I'm attempting a command over SSH:

ssh USER@HOSTNAME "uname -a"

I'm getting permission denied errors.

I have keys setup between the rundeck host and the remote server. I can terminal ssh between machines without issue and without a password.

Rundeck appears to be able to do this intermittently. I notice I am usually able to run the command successfully with rundeck so after bouncing the rundeck application, but after several attempts (or a certain period of time like an hour or so) I no longer can.

Log output:

07:33:08 [USER@HOSTNAME ][CONFIG] NodeSet: NodeSet{}
07:33:08 [USER@HOSTNAME ][CONFIG] Workflow: WorkflowImpl{commands=[command( exec: ssh USER@REMOTENODE "uname -a")], threadcount=1, keepgoing=false, strategy=node-first}
07:33:08 [USER@HOSTNAME ][CONFIG] data context: {job={project=Project, username=USER, name=test, group=test}, option=null}
07:33:08 [USER@HOSTNAME ][CONFIG] 1: command( exec: ssh USER@REMOTENODE "uname -a")
07:33:08 [USER@HOSTNAME ][CONFIG] ExecutionItem created, executing: dscript: com.dtolabs.rundeck.execution.BaseWorkflowStrategy$3@730d4fcf
07:33:08 [USER@HOSTNAME ][CONFIG] added build listener
07:33:08 [USER@HOSTNAME ][FINEST] Adding reference: com.dtolabs.rundeck.core.cli.DefaultNodeDispatcher:node.name
07:33:08 [USER@HOSTNAME ][FINEST] Adding reference: com.dtolabs.rundeck.core.cli.DefaultNodeDispatcher:node.user
07:33:08 [USER@HOSTNAME ][FINEST] executeNodeDispatch: number of nodes to dispatch to: 1, (threadcount=1)
07:33:08 [USER@HOSTNAME ][FINEST] preparing for sequential execution...
07:33:08 [USER@HOSTNAME ][FINEST] Executing command on node: HOSTNAME, NodeEntryImpl{nodename=HOSTNAME,hostname=HOSTNAME,type=Node,osName=Linux,osArch=amd64,osFamily=unix,osVersion=2.6.18-238.9.1.el5xen,username=USER,tags=[],attributes={remoteUrl=, editUrl=}}
07:33:08 [USER@HOSTNAME ][CONFIG] preparing for local execution ...
07:33:08 [USER@HOSTNAME ][CONFIG] exectask
07:33:08 [USER@HOSTNAME ][CONFIG] command proxy instance of org.apache.tools.ant.taskdefs.Sequential
07:33:08 [USER@HOSTNAME ][FINEST] Adding reference: ant.LocalProperties
07:33:08 [USER@HOSTNAME ][CONFIG] Current OS is Linux
07:33:08 [USER@HOSTNAME ][CONFIG] Project base dir set to: /tls/shared/home/USER/rundeck
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_NODE_DESCRIPTION=Rundeck server node
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_NODE_OS_ARCH=amd64
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_JOB_NAME=test
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_NODE_HOSTNAME=HOSTNAME
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_NODE_TAGS=
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_NODE_NAME=HOSTNAME
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_JOB_PROJECT=Jetson
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_NODE_OS_VERSION=2.6.18-238.9.1.el5xen
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_NODE_USERNAME=USER
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_NODE_OS_FAMILY=unix
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_JOB_GROUP=test
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_JOB_USERNAME=USER
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_NODE_TYPE=Node
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable: RD_NODE_OS_NAME=Linux
07:33:08 [USER@HOSTNAME ][CONFIG] Executing '/bin/sh' with arguments:
'-c' 'ssh USER@REMOTENODE 'uname -a''

The ' characters around the executable and arguments are
not part of the command.
07:33:08 [USER@HOSTNAME ][FINEST] Execute:Java13CommandLauncher: Executing '/bin/sh' with arguments:
'-c' 'ssh USER@REMOTENODE 'uname -a''

Reported by Kevin Nash · June 20th, 2011 @ 07:39 PM

State: invalid
Milestone: none
Assigned to: Greg Schueler Greg Schueler

Activity

  1. Greg Schueler
    Greg Schueler

    so you are attempting to dispatch the entire command "ssh USER@REMOTENODE 'uname -a'" ?

    If you are trying to run "uname -a" on a remote node, simply set the command to "uname -a" and configure your node filter to include the remote node...

    June 21st, 2011 @ 03:43 PM

  2. Greg Schueler
    Greg Schueler
    • State changed from new to unconfirmed
    • Assigned user set to Greg Schueler

    June 22nd, 2012 @ 10:52 AM

  3. Greg Schueler
    Greg Schueler
    • State changed from unconfirmed to invalid

    June 22nd, 2012 @ 10:52 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.