Connectin to Windows node

38 views
Skip to first unread message

Peter Lorimer

unread,
Jul 30, 2025, 9:04:35 AMJul 30
to rundeck-discuss
Hi

I have this inline script being executed on a Windows11 Pro node

mkdir CodeBase
cd CodeBase
fsutil.exe file SetCaseSensitiveInfo "C:\Users\peter\CodeBase" enable
git clone https://github.com/scothost/AspBlog.git


When I check in Winows it was 100% successful but the rundeck job fail with 

C:\Users\peter\CodeBase>git clone https://github.com/scothost/AspBlog.git
[ERROR ] Execution finished with the following error (winrm-exec.py:378)[root]
[ERROR ] A subdirectory or file CodeBase already exists.
Cloning into 'AspBlog'...
(winrm-exec.py:379)[root]

Does anyone know how to resolve this? 

rac...@rundeck.com

unread,
Jul 30, 2025, 9:35:50 AMJul 30
to rundeck-discuss
Hi Peter,

Could you share a basic job definition example to take a look? Also, what rundeck version are you using?

Regards.

Peter Lorimer

unread,
Jul 30, 2025, 10:46:27 AMJul 30
to rundeck...@googlegroups.com
Hi

The version is 5.13

rundeck

apiversion : 52
base : /var/lib/rundeck
build : 5.13.0-20250625
buildGit : v5.13.0-0-gff71e27
serverUUID : d922772b-fcd2-47a2-bdf5-14a187e81764
version : 5.13.0-20250625                                                    


Here is my job definition 

- defaultTab: nodes
  description: ''
  executionEnabled: true
  id: a671a356-57aa-47a9-a3d7-2145a8e3bc85
  loglevel: INFO
  name: test
  nodeFilterEditable: false
  nodefilters:
    dispatch:
      excludePrecedence: true
      keepgoing: false
      rankOrder: ascending
      successOnEmptyNodeFilter: false
      threadcount: '1'
    filter: mywindows
  nodesSelectedByDefault: true
  plugins:
    ExecutionLifecycle: {}
  scheduleEnabled: true
  sequence:
    commands:
    - autoSecureInput: 'false'
      passSecureInput: 'false'
      script: "mkdir C:\\Users\\peter\\CodeBase\ncd C:\\Users\\peter\\CodeBase\nfsutil.exe\
        \ file SetCaseSensitiveInfo \"C:\\Users\\peter\\CodeBase\" enable\ngit init\n\
        ::git  clone https://github.com/scothost/AspBlog.git AspBlog "
    keepgoing: false
    strategy: node-first
  uuid: a671a356-57aa-47a9-a3d7-2145a8e3bc85

--
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.
To view this discussion visit https://groups.google.com/d/msgid/rundeck-discuss/7ad6874e-adc5-48c4-8790-c9d1e9ef9369n%40googlegroups.com.


--
Kind Regards

Peter Lorimer

rac...@rundeck.com

unread,
Jul 31, 2025, 9:38:07 AMJul 31
to rundeck-discuss
Hi Peter,

I tested your job, and it ran perfectly the first time. However, it fails on subsequent attempts because the script tries to create a directory that already exists. This is the root cause of the issue.

Please consider either adding a step to clean up the existing directory before recreating it or adjusting the script to skip creation if the directory already exists.

Regards.

Peter Lorimer

unread,
Jul 31, 2025, 10:57:37 AMJul 31
to rundeck...@googlegroups.com
Hi

It so filed first time for me. We're you using Windows 11? 

I haver it working with SSH as the default node executor, I gave up on the pyrwm plugin

Kind Regards

Peter Lorimer

Peter Lorimer

unread,
Aug 4, 2025, 11:51:24 AMAug 4
to rundeck-discuss
My assumption is pywrm does not work when rundeck is installed on Debian12 deploying to Windows 11. Both ssh and open- ssh node executers work perfectly 
Reply all
Reply to author
Forward
0 new messages