[JIRA] (JENKINS-53560) "Cannot stop sshd service" when provisioning Azure Windows nodes

2019-05-14 Thread median...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nick Jones commented on  JENKINS-53560  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Cannot stop sshd service" when provisioning Azure Windows nodes   
 

  
 
 
 
 

 
 I've installed the plugin built from that PR (0.9.1-SNAPSHOT (private-446b84e7-jenkins) and have done some initial successful testing with it, but will keep it in place for a few weeks to see if I get any recurrences of the "cannot stop..." error.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.194040.1536849004000.223.1557833520184%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-53560) "Cannot stop sshd service" when provisioning Azure Windows nodes

2019-05-07 Thread jie...@microsoft.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jie Shen commented on  JENKINS-53560  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Cannot stop sshd service" when provisioning Azure Windows nodes   
 

  
 
 
 
 

 
 Nick Jones PR created https://github.com/jenkinsci/azure-vm-agents-plugin/pull/146 .   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.194040.1536849004000.19568.1557222180216%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-53560) "Cannot stop sshd service" when provisioning Azure Windows nodes

2019-05-06 Thread median...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nick Jones commented on  JENKINS-53560  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Cannot stop sshd service" when provisioning Azure Windows nodes   
 

  
 
 
 
 

 
 Jie Shen I’d be happy to test a PR for a few days or weeks, if that would help. I can’t reproduce it consistently — it seems entirely random — so it would need to run for a little while to see if it solved the problem.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-53560) "Cannot stop sshd service" when provisioning Azure Windows nodes

2019-05-06 Thread jie...@microsoft.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jie Shen commented on  JENKINS-53560  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Cannot stop sshd service" when provisioning Azure Windows nodes   
 

  
 
 
 
 

 
 Nick Jones I can draft a PR to add simple retry strategy for this. But I am not sure whether running the command "powershell -ExecutionPolicy Bypass Restart-Service sshd" several times would mitigate this issue.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-53560) "Cannot stop sshd service" when provisioning Azure Windows nodes

2019-05-06 Thread median...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nick Jones commented on  JENKINS-53560  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Cannot stop sshd service" when provisioning Azure Windows nodes   
 

  
 
 
 
 

 
 Jie Shen could I get an update on this? We still get it every few days when provisioning Azure nodes. Thanks!  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-53560) "Cannot stop sshd service" when provisioning Azure Windows nodes

2018-09-13 Thread jie...@microsoft.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jie Shen started work on  JENKINS-53560  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
Change By: 
 Jie Shen  
 
 
Status: 
 Open In Progress  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-53560) "Cannot stop sshd service" when provisioning Azure Windows nodes

2018-09-13 Thread jie...@microsoft.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jie Shen commented on  JENKINS-53560  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "Cannot stop sshd service" when provisioning Azure Windows nodes   
 

  
 
 
 
 

 
 Thank you for reporting this issue, I will investigate and find out what we can do to improve it.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-53560) "Cannot stop sshd service" when provisioning Azure Windows nodes

2018-09-13 Thread jie...@microsoft.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jie Shen assigned an issue to Jie Shen  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-53560  
 
 
  "Cannot stop sshd service" when provisioning Azure Windows nodes   
 

  
 
 
 
 

 
Change By: 
 Jie Shen  
 
 
Assignee: 
 Azure DevOps Jie Shen  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-53560) "Cannot stop sshd service" when provisioning Azure Windows nodes

2018-09-13 Thread median...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nick Jones created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-53560  
 
 
  "Cannot stop sshd service" when provisioning Azure Windows nodes   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Azure DevOps  
 
 
Components: 
 azure-vm-agents-plugin  
 
 
Created: 
 2018-09-13 14:30  
 
 
Environment: 
 Azure VM Agents plugin 0.7.3, custom Windows Server 2016-based images for Azure agent VMs.  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Nick Jones  
 

  
 
 
 
 

 
 Occasionally – maybe 10% of the time we provision Azure agents – the agent setup fails with the following error: 

 
Restart-Service : Service 'sshd (sshd)' cannot be stopped due to the following 
error: Cannot stop sshd service on computer '.'.
At line:1 char:1
+ Restart-Service sshd
+ 
+ CategoryInfo  : CloseError: (System.ServiceProcess.ServiceContro 
   ller:ServiceController) [Restart-Service], ServiceCommandException
+ FullyQualifiedErrorId : CouldNotStopService,Microsoft.PowerShell.Command 
   s.RestartServiceCommand
 

 I understand that restarting sshd is necessary in order to pick up new environment variables, but perhaps there could be a longer attempt, or more than one? Eventually the agent is detected to have failed to provision, and a new one is spawned automatically – so no manual intervention is necessary – but with the 10-15 minute provisioning time for our Azure Windows Server 2016 agents, that causes quite a wait. Can anything more be done here?