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!

Restarting Linux / SSH agents correctly



  • Hi!, we just upgraded to buildmaster 7 and found the Restart_Server() command which looked very interesting. However when trying it out we get the following error:

    "ERROR: 2022-10-11 09:27:02Z - Unhandled exception: System.NotSupportedException: SSH agents cannot currently be restarted."

    Im guessing based on that error statement that this particular command was not designed to work on linux servers?, so what is the best or most correct way to restart a linux server using buildmaster?,

    the way we currently have it configured is basically just doing a shexec reboot within a try/catch, this however generates an exception as this will cut the ssh connection short and we catch it, however we have had some issues with this in the past as it has sometimes broke the buildmaster service mid deployment (on buildmaster6.1, havent tried it on 7 yet), but perhaps there is better ways to do linux reboots, is there a recommended way?, will perhaps the Restart_Server() command support linux reboots in the future?


  • inedo-engineer

    Hi @fkarlsson_2176 ,

    Linux servers need to be restarted? 😜

    Yes - it's a bit tricky to do the reboot in OtterScript, due to the connection being lost like that. That operation has some special handling for that.

    Anyways - we'll add support for this via BM-3793 -- I think that never made its way over from Otter. We hope to ship that in the October 21 maintenance release, but it might be delayed if it's complex or sisues during testing.

    Cheers,
    Steve



  • Hi @stevedennis ,

    haha yes unfortunately we have to restart them sometimes 😆

    very nice, I look forward on testing that out, thank you


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation