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!

    Error when adding server via WMI

    Scheduled Pinned Locked Moved Support
    8 Posts 3 Posters 42 Views 1 Watching
    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.
    • J Offline
      jwest_6990
      last edited by

      I'm attempting to add a server to Otter via WMI, instead of the Inedo agent, but I'm running into an issue. Otter administration is showing this error:
      Error scanning PowerShell agent: Could not load file or assembly 'Microsoft.Management.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.

      Is there something I'm missing?

      1 Reply Last reply Reply Quote 0
      • stevedennisS Offline
        stevedennis inedo-engineer
        last edited by

        Hi @jwest_6990

        What Windows server version is Otter installed on? That might help us narrow this down.

        We have seen that error if RSAT is not enabled:
        https://learn.microsoft.com/en-us/troubleshoot/windows-server/system-management-components/remote-server-administration-tools

        Cheers,
        Steve

        1 Reply Last reply Reply Quote 0
        • J Offline
          jwest_6990
          last edited by

          Hi Steve,

          Thanks for the response. I'm running Windows Server 2019. Following your suggestion about RSAT, I installed every available RSAT, but had the same issue. After installation, I restarted the the Otter and web services, but the problem remained, so I rebooted the server, but still see the error.

          I've done some manual testing in PowerShell, and found that Test-WSMan, Enter-PSSession, and Invoke-Command all work without issue.

          1 Reply Last reply Reply Quote 0
          • rhessingerR Offline
            rhessinger inedo-engineer
            last edited by

            Hi @jwest_6990,

            Are you running Otter on Windows or on Linux (using Docker)?

            Thanks,
            Rich

            Products Engineer, Inedo

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jwest_6990 @rhessinger
              last edited by

              @rhessinger
              Hello Rich,

              Otter is running on Windows Server 2019, and I installed it via the Inedo Hub.

              Thanks

              1 Reply Last reply Reply Quote 0
              • rhessingerR Offline
                rhessinger inedo-engineer
                last edited by

                Hi @jwest_6990,

                I'm sorry, somehow I missed that in your previous response. I'm going to attempt to recreate this in our test lab and see if I can get the same error. I'll let you know what I find.

                Thanks,
                Rich

                Products Engineer, Inedo

                1 Reply Last reply Reply Quote 0
                • rhessingerR Offline
                  rhessinger inedo-engineer
                  last edited by

                  Hi @jwest_6990 ,

                  So I'm struggling to reproduce this error. For me, it just seems to work. I'm wondering if maybe a DLL got removed (possibly an antivirus false-positive) or conflict with something else installed on the host. Are you able to see a full stack trace? Do you have anything else installed on your Otter server?

                  Thanks,
                  Rich

                  Products Engineer, Inedo

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jwest_6990
                    last edited by jwest_6990

                    I hate to say this, but its working now. Without making any configuration changes, I uninstalled Otter via the Inedo hub, rebooted the server, then reinstalled Otter. I was then able to add an agentless server without issue.

                    I'm obviously happy that it's now working, but I'm sorry for making you look into this.

                    Thanks.

                    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