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 browsing linux directories

    Scheduled Pinned Locked Moved Support
    buildmasterssh
    8 Posts 1 Posters 6 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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      When editing "Deploy artifact" I'm attempting to browse the directory. When I select any linux server I get the error:
      "ERROR: The type initializer for 'Inedo.Ssh.NativeMethods' threw an exception."

      The error is the same as described in this question:
      http://inedo.com/support/questions/5017

      I was using version 5.6.3 when I first saw this error. I've updated to 5.6.5 with the same result. I also tried to replace the lib files as suggested in the above question and had no luck

      Product: BuildMaster
      Version: 5.6.5

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        This message can occur if there is an error connecting to the server from the web application, for example server is unreachable, bad name/password, etc.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Deploys artifact operations to the same server, same config are working so it's not a matter of bad passwords. This is happening on all of my linux servers, none of my windows servers. Also tested on a local buildmaster installation of 5.6.5 with the same results.

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            ok; the error might then be something to do with an inability to load the native SSH library files. So, that's strange obviously...

            Is the application pool running in 32 bit mode, by chance?

            What if you run the web server interactively, and not via IIS?

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              I tested running the bmservice interactively and yes, I am able to browse files. IIS is not installed on the BM server so I'm not sure about the mode. It is running on 2008 R2 server, 64bit.

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                So, if I understand correctly... if you run the service interactively, then it's working OK? But, if you run as a service, then it's not?

                If that's the case... I'm guessing there's a permission error? There shouldn't be, but I can't think of anothe rreason why it works in one case but not the other. We can try to investigate it further, what account is service running under? Like NETWORK SERVICE or something?

                1 Reply Last reply Reply Quote 0
                • ? This user is from outside of this forum
                  Guest
                  last edited by

                  It is running under "Local System Account". I've tried changing to NETWORK SERVICE and a network User as well, no change.

                  Figuring the web server process may be having an issue loading libssl2 I moved the file {BM}\WebApp\bin\lib\win32\x64\libssh2.dll to {BM}\WebApp\bin, where the other buildmaster dlls are located. I restarted the web service and that worked. I'm now able to browse directories on all linux servers. Perhaps this is a difference in using the built in web server vs. using IIS?

                  1 Reply Last reply Reply Quote 0
                  • ? This user is from outside of this forum
                    Guest
                    last edited by

                    Ah, good find. The file browser is the only component of the web app that would use the SSH client directly, and it looks like those dlls just aren't getting packaged correctly in the installer. We'll put this on the list to fix.

                    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