Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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 ?

    Scheduled Pinned Locked Moved Support
    buildmaster
    4 Posts 3 Posters 9 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      philippe.camelio_3885
      last edited by

      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 ?

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        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

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          PhilippeC. @atripp
          last edited by

          I will check and let you know.

          1 Reply Last reply Reply Quote 0
          • P Offline
            philippe.camelio_3885
            last edited by philippe.camelio_3885

            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.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation