-
Notifications
You must be signed in to change notification settings - Fork 18
Services fail to stop, but say success - fail to start saying that the name can't be found. #48
Comments
If you set a variable called: system.debug to true and rerun you should get a better log. As for the service not releasing in use files, it’s typically a bug in the service. All threads need to be stopped before returning control to the service handler. https://stackoverflow.com/questions/5801147/service-is-stopped-but-process-remains-for-a-minute If you don’t own the source code you can but a 2-3 minute delay in after the stop but before they copy. |
Agree on the hung files, we can't seem to stop services in the release tasks. We have no rights to alter our VSTS instance online nor see production server services, logs or details. Here's the debug: 2019-06-26T02:24:36.6162445Z ##[debug]Evaluating succeeded: |
Bump |
Sorry, the script is pretty straight forward. For some reason https://github.com/jabbera/my-vsts-tasks/blob/master/Extensions/WindowsServiceReleaseTasks/Src/Tasks/StopWindowsService/StopWindowsServiceIntern.ps1#L16 Is not returning anything. It could be due to access or the service not existing. Without access to the server you are likely going to have a hard time resolving the issue. |
I have 2 services to stop, then do a deployment and start them back. The stop task, says it has stopped with a success. But the deployment fails saying "files in use". Presumably because the services are not actually stopped. I have no access to the servers to prove that. On stopping the same named services, it fails telling me that the services are not found.
Ideas?
The service names have been confirmed with server admins. I am using the Group deployment option.
Log for starting:
No services match the name: KenticoCMSScheduler(staging.xxxxxxxx.com)
Log for stopping:
2019-06-26T00:15:01.1693392Z ##[section]Starting: Stop Windows Service: KenticoCMSScheduler(preprod.xxxxxxxx.com)
2019-06-26T00:15:01.1894694Z ==============================================================================
2019-06-26T00:15:01.1894783Z Task : Stop Windows Service
2019-06-26T00:15:01.1894814Z Description : Stop a windows service.
2019-06-26T00:15:01.1894841Z Version : 8.0.0
2019-06-26T00:15:01.1894890Z Author : Michael Barry
2019-06-26T00:15:01.1894917Z Help : More Information
2019-06-26T00:15:01.1894966Z ==============================================================================
2019-06-26T00:15:02.7991974Z Stopping Windows Service: and setting startup type to: Disabled. Kill: true
2019-06-26T00:15:02.9336119Z ##[section]Finishing: Stop Windows Service: KenticoCMSScheduler(preprod.xxxxxxxx.com)
The text was updated successfully, but these errors were encountered: