Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-12114

Bamboo 4.2 ProcessService error - Unable to find executable at

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.3
    • 4.2
    • Plugins, Tasks, Windows
    • None
    • Bamboo 4.2, Tomcat7, Maven3.0.4, jdk1.6.0_34

      I have a plugin for Bamboo which uses ProcessService in order to execute a specific custom task,
      Here is the command I'm trying to execute:
      List<String> command = Lists.newArrayList();
      command.add("cmd.exe");
      command.add("/c");
      command.add("call");
      command.add("\"C:
      Program Files\\Java\\jdk1.6.0_34\\bin\\java.exe\"");

      I'm also adding error lines to my logger:
      final ErrorMemorisingInterceptor errorLines = new ErrorMemorisingInterceptor();
      logger.getInterceptorStack().add(errorLines);

      And when I try to start a build I'm getting a red warning:
      Unable to find executable at "cmd,exe"

      The exact same code worked prior to Bamboo 4.2, only when I've upgraded my instance i got this.

            [BAM-12114] Bamboo 4.2 ProcessService error - Unable to find executable at

            The only problem is incorrect error message and that has been fixed already

            Marcin Gardias added a comment - The only problem is incorrect error message and that has been fixed already

            Hi, I have the same problem. I set an executable "label:command - path:cmd /c" in the bamboo agent, when I run a build has the error:

            Unable to find executable at cmd /c

            but the task running ok, and the build was successful.

            Federico Soria Galvarro added a comment - Hi, I have the same problem. I set an executable "label:command - path:cmd /c" in the bamboo agent, when I run a build has the error: Unable to find executable at cmd /c but the task running ok, and the build was successful.

            Yes, it is executed.

            Shay Yaakov added a comment - Yes, it is executed.

            shayke does your process end up getting executed even when this error message is printed?

            James Dumay added a comment - shayke does your process end up getting executed even when this error message is printed?

            Sinead O'Neill added a comment - See similar issue: https://jira.atlassian.com/browse/BAM-12124

            No problems Shay. Ill pass this along to the dev team to see if they have any ideas with what might be wrong here.

            James Dumay added a comment - No problems Shay. Ill pass this along to the dev team to see if they have any ideas with what might be wrong here.

            Thank you so much fo the quick replies, Indeed the java.exe exists (Running under windows 7).
            I'll try downloading the sources again, but regarding for this problem I hardly think that it is something with the plugin
            since It's code did not change, furthermore, this warning message is presented to all my users which are using the plugin (so the OS doesn't actually matter since I've tried also with Ubuntu and OSX).

            Shay Yaakov added a comment - Thank you so much fo the quick replies, Indeed the java.exe exists (Running under windows 7). I'll try downloading the sources again, but regarding for this problem I hardly think that it is something with the plugin since It's code did not change, furthermore, this warning message is presented to all my users which are using the plugin (so the OS doesn't actually matter since I've tried also with Ubuntu and OSX).

            There was a problem with the Bamboo 4.2 sources that should be fixed in 4.2.1. Could you download the source for 4.2.1 instead?

            James Dumay added a comment - There was a problem with the Bamboo 4.2 sources that should be fixed in 4.2.1. Could you download the source for 4.2.1 instead?

            James Dumay added a comment - - edited

            As a sanity check, could you verify that the path you have specified actually exists? What operating system are you on?

            James Dumay added a comment - - edited As a sanity check, could you verify that the path you have specified actually exists? What operating system are you on?

            Actually I did try doing that but I got instead:

            Unable to find executable at "C:\\Program Files\\Java\\jdk1.6.0_34\\bin\\java.exe"

            Another thing unrelated, I've tried downloading the Bamboo 4.2 sources (I have an open source license)
            But the zip is only 46MB, when I tried unzipping it the atlassian-bamboo sources folder is empty so I couldn't search for this error.

            Shay Yaakov added a comment - Actually I did try doing that but I got instead: Unable to find executable at "C:\\Program Files\\Java\\jdk1.6.0_34\\bin\\java.exe" Another thing unrelated, I've tried downloading the Bamboo 4.2 sources (I have an open source license) But the zip is only 46MB, when I tried unzipping it the atlassian-bamboo sources folder is empty so I couldn't search for this error.

              Unassigned Unassigned
              0aed5ba6f7bc Shay Yaakov
              Affected customers:
              1 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: