Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

SHEXec/SHCall in BuildMaster 6.2.10 broken ?



  • Hello

    I am trying to run SHExec/SHCall on Linux in a Pipeline Script.

    Shell script was working on 6.1.X

    I always have the error no such file or directory, no matter I tried (command SHExec or SHCall a bash file from an Asset)

    I have seen that the temporary folder are not removed after the BuildMaster Script

    Here is my test script (I also tried as a shell script store in an Asset and called using SHCall)

    ##AH:UseTextMode
    # Try/Catch
    try
    {
        SHExec pwd;
    }
    

    The result 😕

    DEBUG: 2020-04-13 20:01:09Z - Using SshAgent agent on VM111011
    ERROR: 2020-04-13 20:01:09Z - bash: scripts/e457a6d9cd8744d2bd49c833849b7f67: No such file or directory
    DEBUG: 2020-04-13 20:01:09Z - Cleaning up...
    DEBUG: 2020-04-13 20:01:09Z - Deleting _E171158 on VM111011...
    DEBUG: 2020-04-13 20:01:09Z - _E171158 on VM111011 deleted.
    DEBUG: 2020-04-13 20:01:09Z - Cleanup complete.
    

    Is it broken ?


  • inedo-engineer

    Hello, these still function in the same manner, so I think it's configuration related.

    Can you check to make sure the agent's temp directory is...

    1. set to an actual filesystem location and not something accidentally entered into the field
    2. owned/writable by the user the SSH agent logs in as
    3. (if it's in /tmp or something like that) the mount settings don't forbid executing files

    Thanks



  • I will check and let you know.



  • Hello @atripp
    You were right.

    • In Otter Define the agent's temp directory as it should be by default /tmp/otter.
    • In BuildMaster Force a sync Infrastructure

    The pb is gone 😊

    I will now implant my ansible function on buildMaster 😀

    Best Regards
    PhilippeC.


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation