Windows Execution Permissions

25 views
Skip to first unread message

Todd Bryant

unread,
Oct 22, 2021, 3:09:30 PM10/22/21
to rundeck-discuss
When I try to run a task, I get environment and permissions issues.   How can I fix this issue?

Thanks

rac...@rundeck.com

unread,
Oct 22, 2021, 3:12:28 PM10/22/21
to rundeck-discuss
Hi Todd,

Could you elaborate? Operating System? Rundeck version? Kind of installation? `service.log` output? Configuration?

Thanks!

Todd Bryant

unread,
Oct 23, 2021, 2:55:54 PM10/23/21
to rundeck-discuss
I am running Windows 2019 and when I configure a command to run, I get permissions issues.   Here is the debug log file:


[workflow] Begin execution: node-first
preparing for sequential execution on 1 nodes
Executing command on node: localhost, NodeEntryImpl{tags=[], attributes={nodename=localhost, hostname=localhost, osVersion=10.0, osFamily=windows, osArch=amd64, description=Rundeck server node, osName=Windows 10}, project='null'}
[wf:8fe973f7-48cf-42ae-a817-33f5fcad6cbb] Start EngineWorkflowExecutor
[wf:8fe973f7-48cf-42ae-a817-33f5fcad6cbb] Update conditional state: {before.step.1=true, after.step.1=false}
[wf:8fe973f7-48cf-42ae-a817-33f5fcad6cbb] start conditions for step [1]: []
[wf:8fe973f7-48cf-42ae-a817-33f5fcad6cbb] skip conditions for step [1]: [(step.1.completed == 'true')]
[wf:8fe973f7-48cf-42ae-a817-33f5fcad6cbb] Create rule engine with rules: RuleEngine{ruleSet=[Rule: Conditions([(step.any.flowcontrol.halt == 'true')]) => DataState{state={workflow.done=true}}, Rule: Conditions([(workflow.keepgoing == 'false'), (step.any.state.failed == 'true')]) => DataState{state={workflow.done=true}}, Rule: Conditions([]) => DataState{state={step.1.start=true}}, Rule: Conditions([java.util.function.Predicate$$Lambda$852/0x00000008010fe840@7a27338d]) => DataState{state={step.1.skip=true}}]}
[wf:8fe973f7-48cf-42ae-a817-33f5fcad6cbb] Create workflow engine with state: StateLogger{state=DataState{state={job.url=http://localhost:4440/project/ProLic/execution/follow/42, job.id=2f02f33e-929f-4fdc-9359-f8ae90576782, job.retryPrevExecId=0, job.loglevel=DEBUG, node.os-name=Windows 10, after.step.1=false, job.retryInitialExecId=0, node.hostname=localhost, node.os-family=windows, job.user.name=admin, node.tags=, node.description=Rundeck server node, node.username=, job.name=Professional Licenses , job.successOnEmptyNodeFilter=false, job.executionType=user, job.serverUUID=6cfd305b-1ca6-40b2-8645-0d9f6993582d, job.wasRetry=false, job.project=ProLic, before.step.1=true, job.username=admin, node.os-arch=amd64, job.retryAttempt=0, workflow.id=8fe973f7-48cf-42ae-a817-33f5fcad6cbb, node.os-version=10.0, workflow.keepgoing=false, job.execid=42, node.name=localhost, job.serverUrl=http://localhost:4440/, job.threadcount=1}}}
[wf:8fe973f7-48cf-42ae-a817-33f5fcad6cbb] Begin: Workflow begin
[wf:8fe973f7-48cf-42ae-a817-33f5fcad6cbb] WillProcessStateChange: state changes: init
[wf:8fe973f7-48cf-42ae-a817-33f5fcad6cbb] Update conditional state: {workflow.state=started}
[wf:8fe973f7-48cf-42ae-a817-33f5fcad6cbb] Update conditional state: {step.1.start=true}
[wf:8fe973f7-48cf-42ae-a817-33f5fcad6cbb] DidProcessStateChange: applied state changes and rules (changed? true): init - StateLogger{state=DataState{state={job.url=http://localhost:4440/project/ProLic/execution/follow/42, job.id=2f02f33e-929f-4fdc-9359-f8ae90576782, job.retryPrevExecId=0, job.loglevel=DEBUG, node.os-name=Windows 10, after.step.1=false, workflow.state=started, job.retryInitialExecId=0, node.hostname=localhost, node.os-family=windows, job.user.name=admin, node.tags=, node.description=Rundeck server node, node.username=, job.name=Professional Licenses , job.successOnEmptyNodeFilter=false, job.executionType=user, job.serverUUID=6cfd305b-1ca6-40b2-8645-0d9f6993582d, job.wasRetry=false, job.project=ProLic, before.step.1=true, step.1.start=true, job.username=admin, node.os-arch=amd64, job.retryAttempt=0, workflow.id=8fe973f7-48cf-42ae-a817-33f5fcad6cbb, node.os-version=10.0, workflow.keepgoing=false, job.execid=42, node.name=localhost, job.serverUrl=http://localhost:4440/, job.threadcount=1}}}
[wf:8fe973f7-48cf-42ae-a817-33f5fcad6cbb] WillRunOperation: operation starting: Step{stepNum=1, label='Launcher'}
[wf:8fe973f7-48cf-42ae-a817-33f5fcad6cbb] LoopProgress: Pending(1) => run(1), skip(0), remain(0)
[workflow] Begin step: 1,NodeDispatch
1: Workflow step executing: StepExecutionItem{type='NodeDispatch', keepgoingOnSuccess=false, hasFailureHandler=false}
preparing for sequential execution on 1 nodes
Executing command on node: localhost, NodeEntryImpl{tags=[], attributes={nodename=localhost, hostname=localhost, osVersion=10.0, osFamily=windows, osArch=amd64, description=Rundeck server node, osName=Windows 10}, project='null'}
[workflow] beginExecuteNodeStep(localhost): NodeDispatch: StepExecutionItem{type='NodeDispatch', keepgoingOnSuccess=false, hasFailureHandler=false}
LocalExecNodeStepPlugin, running command (5): 'C:\Program''Files''(x86)\QL2\WebQL''Enterprise\bin\webql''c:\svn\death\launcher.wql'
[ERR 30006] Licensing error: Could not read license file: [ERR 14024] Path not found
[workflow] finishExecuteNodeStep(localhost): NodeDispatch: Step successful

rac...@rundeck.com

unread,
Oct 24, 2021, 6:55:49 PM10/24/21
to rundeck-discuss

Hi Todd,

I assume that you’re using Rundeck under Windows and executing commands in the localhost.

  1. Make sure that the command works natively (test it directly in your node).
  2. Try using a script-step (as PowerShell script), define `powershell.exe` in “Invocation String” and `.ps1` in “File Extension” (these options are available clicking on the script step “Advanced” button).

Greetings.

Reply all
Reply to author
Forward
0 new messages