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



  • 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



  • 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.



  • 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.



  • 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?



  • 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.



  • 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?



  • 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?



  • 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.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation