Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed to remove remote file" when killing an inline-script job #66

Open
MegaDrive68k opened this issue Oct 2, 2020 · 3 comments
Open

Comments

@MegaDrive68k
Copy link

If you kill a job with an inline-script always appears "Failed to remove remote file". I reproduced the issue with the following Job Definition:

<joblist>
  <job>
    <defaultTab>nodes</defaultTab>
    <description></description>
    <dispatch>
      <excludePrecedence>true</excludePrecedence>
      <keepgoing>false</keepgoing>
      <rankOrder>ascending</rankOrder>
      <successOnEmptyNodeFilter>false</successOnEmptyNodeFilter>
      <threadcount>1</threadcount>
    </dispatch>
    <executionEnabled>true</executionEnabled>
    <id>2cdcadd1-b975-4600-9dcd-837440f3534e</id>
    <loglevel>INFO</loglevel>
    <name>HelloWorldPY</name>
    <nodeFilterEditable>false</nodeFilterEditable>
    <nodefilters>
      <filter>name: windows</filter>
    </nodefilters>
    <nodesSelectedByDefault>true</nodesSelectedByDefault>
    <plugins />
    <scheduleEnabled>true</scheduleEnabled>
    <sequence keepgoing='false' strategy='node-first'>
      <command>
        <fileExtension>.py</fileExtension>
        <script><![CDATA[import time

time.sleep(5)
print("Hello World")]]></script>
        <scriptargs />
        <scriptinterpreter>C:\Users\user\AppData\Local\Programs\Python\Python38\python.exe</scriptinterpreter>
      </command>
    </sequence>
    <uuid>2cdcadd1-b975-4600-9dcd-837440f3534e</uuid>
  </job>
</joblist>

Screenshot:

Screenshot_1

Original issue: https://groups.google.com/g/rundeck-discuss/c/fL5hmE84njk

@oj43085
Copy link

oj43085 commented Nov 3, 2020

Hello,

@MegaDrive68k Is there any progress on this issue? The problem is not just a visual bug, the file may or may not get removed from the endpoint but the process continues to run if you check services.msc on windows node and have to manually kill the process.

@smaddock
Copy link

We're running into this a lot with one particular node. We're not manually killing it but after the inline script finishes executing, the job hangs for 6.5 minutes exactly then we get the "Failed to remove remote file" message.

@LevonW-IIS
Copy link

I've encountered this as well and is a super frustrating bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants