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!

    Capture-HtmlDirectoryReport error

    Scheduled Pinned Locked Moved Support
    agentsbuildmaster
    5 Posts 2 Posters 16 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.
    • S Offline
      simon.mercenier_5879
      last edited by

      Hello,

      In the end of a deployment, I need to retrieve an html-report generated by gauge. In this report I have an index.html which uses files in different folder like css, fonts, images, js and spec (everything is in the folder html-report).

      I tried the module called "Capture Report from file" just to see the result and it works. But like I said before, I need to retrieve my whole folder and when I try to capture all HTML files from a directory, I have an error. Can you help me ?

      Unhandled exception: System.NotSupportedException: The SshAgent agent does not support the IRemoteMethodExecuter interface.
      at Inedo.Extensibility.Agents.Agent.GetServiceTService
      at Inedo.BuildMaster.Extensibility.Operations.Reporting.ReportFromDirectoryOperation.<GetReportBase64Async>d__13.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at Inedo.BuildMaster.Extensibility.Operations.Reporting.ReportFromDirectoryOperation.<ExecuteAsync>d__12.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at Inedo.BuildMaster.Windows.ServiceApplication.Executions.PlanExecuter.BuildMasterExecuter.<ExecuteActionAsync>d__44.MoveNext()

      Product: BuildMaster
      Version: 6.1.6

      1 Reply Last reply Reply Quote 0
      • jjonesJ Offline
        jjones inedo-engineer
        last edited by

        Hi Simon,

        I need a bit more information. Can you send the portion of your OtterScript plan that is causing the exception? (You can obfuscate any sensitive urls).. My initial thought is that the remote server has directory browsing disabled.. But we can look further into this.

        Thanks,
        Jason

        1 Reply Last reply Reply Quote 0
        • S Offline
          simon.mercenier_5879
          last edited by

          This is my buildmaster plan:

          ##AH:UseTextMode

          Capture-HtmlDirectoryReport
          (
          FromDirectory: /tmp/buildmaster/html-report,
          Index: index.html,
          Name: GaugeReport
          );

          And this all the log output:

          INFO: Capturing "GaugeReport" report into current build...
          DEBUG: Using SshAgent agent on server-A
          DEBUG: Attaching report from files in directory: /tmp/buildmaster/html-report
          ERROR: Unhandled exception: System.NotSupportedException: The SshAgent agent does not support the IRemoteMethodExecuter interface.
          at Inedo.Extensibility.Agents.Agent.GetServiceTService
          at Inedo.BuildMaster.Extensibility.Operations.Reporting.ReportFromDirectoryOperation.<GetReportBase64Async>d__13.MoveNext()
          --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
          at Inedo.BuildMaster.Extensibility.Operations.Reporting.ReportFromDirectoryOperation.<ExecuteAsync>d__12.MoveNext()
          --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
          at Inedo.BuildMaster.Windows.ServiceApplication.Executions.PlanExecuter.BuildMasterExecuter.<ExecuteActionAsync>d__44.MoveNext()
          DEBUG: Cleaning up...
          DEBUG: Deleting /tmp/buildmaster/_E2077 on server-A...
          DEBUG: /tmp/buildmaster/_E2077 on server-A deleted.
          DEBUG: Cleanup complete.

          1 Reply Last reply Reply Quote 0
          • jjonesJ Offline
            jjones inedo-engineer
            last edited by

            Hi Simon,

            Thank you for this information, I am going to try and replicate this issue and see where to go from there.

            Thanks,
            Jason

            1 Reply Last reply Reply Quote 0
            • jjonesJ Offline
              jjones inedo-engineer
              last edited by

              Hi Simon,

              I am unable to recreate this issue. Please check to make sure the path exists at run-time and that the buildmaster agent has permissions to it. You can try to test this with a different path like c:\Buildmaster\rpt\

              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