Невозможно удалить службу поиска elasti c во время обновления Azure DevOps Server - PullRequest
0 голосов
/ 20 апреля 2020

Попытка обновить TFS 2018 до DevOps Server 2019. Застрял на экране проверки готовности. Он хочет, чтобы я удалил Службу эластичного поиска

installer stuck at readiness check

Служба остановлена.

И путь, указанный в свойствах службы, в частности, Папка поиска , не существует C:\Program Files\Microsoft Team Foundation Server 2018\Search\ES\elasticsearchv5\bin\elasticsearch-service-x64.exe //RS//elasticsearch-service-x64 не существует .

Нет способа запустить service -remove из папки с корзиной.

elasticsearch service properties

command prompt shows search folder does not exist

Соответствующий журнал:

[Info   @07:49:10.510] +-+-+-+-+-| Running Service Not Installed: Verifying the following Windows service is not installed: elasticsearch-service-x64 |+-+-+-+-+-
[Info   @07:49:10.511] 
[Info   @07:49:10.511] +-+-+-+-+-| Verifying the following Windows service is not installed: elasticsearch-service-x64 |+-+-+-+-+-
[Info   @07:49:10.511] Starting Node: VSEARCHSERVICENOTINSTALLED
[Info   @07:49:10.511] NodePath : VINPUTS/Conditional/Progress/Conditional/VSEARCHSERVICENOTINSTALLED
[Info   @07:49:10.511] Verifying that the following service is NOT installed: elasticsearch-service-x64. Machine: ..
[Info   @07:49:10.512] Node returned: Error
[Error  @07:49:10.512] The following Windows service is installed on your computer: elasticsearch-service-x64. Remove elasticsearch-service-x64 to continue. Read the troubleshooting guide (https://go.microsoft.com/fwlink/?linkid=828578) for more details.
[Info   @07:49:10.512] Completed Service Not Installed: Error
[Info   @07:49:10.512] -----------------------------------------------------
[Info   @07:49:10.512] 
[Info   @07:49:10.512] +-+-+-+-+-| Running VerifySearchIndexLocation: Verifying that the search index location path is valid. |+-+-+-+-+-
[Info   @07:49:10.512] 
[Info   @07:49:10.512] +-+-+-+-+-| Verifying that the search index location path is valid. |+-+-+-+-+-
[Info   @07:49:10.512] Starting Node: VSEARCHINDEXLOCATIONVERIFIER
[Info   @07:49:10.512] NodePath : VINPUTS/Conditional/Progress/Conditional/VSEARCHINDEXLOCATIONVERIFIER
[Info   @07:49:10.513] Node returned: Success
[Info   @07:49:10.513] Completed VerifySearchIndexLocation: Success
[Info   @07:49:10.513] -----------------------------------------------------
[Info   @07:49:10.513] 
[Info   @07:49:10.513] +-+-+-+-+-| Running Verify ElasticSearch port is available: Verifying that a port is available in range 9200-9299 |+-+-+-+-+-
[Info   @07:49:10.513] 
[Info   @07:49:10.513] +-+-+-+-+-| Verifying that a port is available in range 9200-9299 |+-+-+-+-+-
[Info   @07:49:10.513] Starting Node: VSEARCHESPORTAVAILABLE
[Info   @07:49:10.513] NodePath : VINPUTS/Conditional/Progress/Conditional/VSEARCHESPORTAVAILABLE
[Info   @07:49:10.514] Port: 9200 is available for configuring elasticsearch
[Info   @07:49:10.514] Node returned: Success
[Info   @07:49:10.514] Completed Verify ElasticSearch port is available: Success
[Info   @07:49:10.514] -----------------------------------------------------
[Info   @07:49:10.514] 
[Info   @07:49:10.514] +-+-+-+-+-| Running VerifySearchServiceAccount: Verifying that the search service account name and password is valid. |+-+-+-+-+-
[Info   @07:49:10.514] 
[Info   @07:49:10.515] +-+-+-+-+-| Verifying that the search service account name and password is valid. |+-+-+-+-+-
[Info   @07:49:10.515] Starting Node: VSEARCHACCOUNTVALID
[Info   @07:49:10.515] NodePath : VINPUTS/Conditional/Progress/Conditional/VSEARCHACCOUNTVALID
[Info   @07:49:10.515] Node returned: Success
[Info   @07:49:10.515] Completed VerifySearchServiceAccount: Success
[Info   @07:49:10.515] -----------------------------------------------------

1 Ответ

0 голосов
/ 21 апреля 2020

В этом случае просто запустите команду в cmd от имени администратора sc delete elasticsearch-service-x64

Согласно документации Microsoft , команда sc delete удаляет службу из реестра без необходимости для исполняемого файла по указанному пути.

После этой команды закройте все windows, относящиеся к службе windows, и запросите новую регистрацию в Azure DevOps Server 2019

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...