Skip to content

Unnecessary job console log output, e.g. "Failed to set SSH environment variable" #97

@gschwienbacher

Description

@gschwienbacher

When executing a Job that has dispatch to node activated and executes a bash command (ansible ad-hoc command behind, but I don't know if that makes a difference), the console log is full of "unnecessary / unneded" output:

Job log:

SLF4J(E): A service provider failed to instantiate:
org.slf4j.spi.SLF4JServiceProvider: org.apache.logging.slf4j.SLF4JServiceProvider not a subtype
SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_ID for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_GROUP for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_USERNAME for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_NODE_HOSTNAME for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_OUTPUTFILEPATH for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_ISREMOTEFILEPATH for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_USER_EMAIL for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_URL for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_PROJECT for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_NAME for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_NODE_OS_ARCH for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_NODE_OS_VERSION for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_NODE_NAME for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_THREADCOUNT for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_RETRYATTEMPT for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_USER_NAME for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_LOGLEVEL for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_NODE_OS_NAME for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_SERVERUUID for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_NODE_OS_FAMILY for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_JOB_EXECID for host: <ip address of host>. Exception: ConnectionException: Request failed
[sshj-ssh] Failed to set SSH environment variable: RD_NODE_USERNAME for host: <ip address of host>. Exception: ConnectionException: Request failed

=> only from here "normal" job log output

(see also screenshot)

Image

Installed versions:
Rundeck 7.0.1
Hercules coral bell

Latest Release
v5.20.0-20260402

sshj-ssh Plugin:
SSHJ-SSH | Node Executor | Author: Rundeck, Inc. | 1.0.1

Job Dispatch Config:

Image

Step script:
Image

How can this log output be avoided? Are there some special env settings?
Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions