microsoft / microsoft/Code-Search
Code search Extension is not getting installed correctly on ADO Server 2022.1 Patch 3.
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 57
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
Issue Definition:
=================
The extension itself when we checked, it is not showing the current version number and install history data.
When we search for code, it automatically switching to work item search
It appears the code search extension is not installed. (even if we remove it and reinstalled, the issue remains the same
Code search is not working after Azure DevOps Server Upgrade to 2022.1 patch 3
We have an issue with the Elastic Search Service after the upgrade of Azure DevOps Server:
Old version Azure DevOps Server 2020 Update 1 RC1
new version Azure DevOps Server 2022 Update 1 Patch 3
The Code, Work Item and Wiki Search was not working. We deleted the extensions from the server. Afterwards we installed it again, but the extensions are installed but the version is not visible if we open the admin page.
The Elastic Search itself is installed on a separate server and was updated with the new zip file from the Application Tier. The service is online and running and the link between Azure DevOps Server Administration Console to the Elastic Search Server worked without any issue.
Customer can install the Code Search Extension without any errors, but it is not really installed.
Customer has recently upgraded their ADO server to 2022 Update 1 Patch 3 from ADO server 2020 Update 1 RC1. After the upgrade, the search Code, Work Item and Wiki Search were not working.
Environment:
============
OS versions AT(s), DT(s), & SQL: AT
TFS Version (w\ patch lvl): Azure DevOps 2022 Update 1 Patch 3
product version: 19.225.34705.2
SQL Always On Y/N: No
of ATs: 2
of DTs: 1
Load Balancer Y/N: No
VM or Physical: VM
Installed on Azure IaaS or other cloud VM host? No
Troubleshooting:
===============
1.Uninstall the Azure DevOps Server 2022.1 with comes with Patch 3.
Update the patch version inside the registry of Windows because this was not removed automatically by the installation process.
Install Azure Devops Server 2022.1.. proceed to test that ADO2022.1 is working, along with Search. Might have to reindex.
Install Patch 1 -> Reboot
Install Patch 2 -> Reboot
Install Patch 3
-
we have followed the triggercollectionindexing is executed
After the reindexing of the collection Work Item search and Wiki search are working fine.
The extension itself when we checked, it is not showing the current version number and install history data.
However, the same thing works well in their pre-production or test environment.
We tried removing the extension and adding it back - captured Har trace
we also created new project collections (xml and inherited), the creation of the project collections resulted with some warnings.
The warnings are given below:
14:58:21.273] [Warning] ms.vss-workitem-searchonprem extension install failed with exception Microsoft.VisualStudio.Services.Gallery.WebApi.ExtensionDoesNotExistException: The requested extension 'ms.vss-workitem-searchonprem' doesn't exist.
[14:58:21.273] at Microsoft.VisualStudio.Services.Gallery.Server.Components.PublishedExtensionComponent.QueryExtension(String publisherName, String extensionName, String version, Guid validationId, ExtensionQueryFlags flags)
[14:58:21.273] at Microsoft.VisualStudio.Services.Gallery.Server.PublishedExtensionService.QueryExtension(IVssRequestContext requestContext, String publisherName, String extensionName, String version, ExtensionQueryFlags flags, String accountToken, Boolean useCache)
[14:58:21.273] at Microsoft.VisualStudio.Services.Gallery.Server.PlatformGalleryService.GetExtension(IVssRequestContext requestContext, String publisherName, String extensionName, String version, ExtensionQueryFlags flags, String accountToken)
[14:58:21.273] at Microsoft.VisualStudio.Services.ExtensionManagement.Server.InstalledExtensionService.InstallExtension(IVssRequestContext requestContext, String publisherName, String extensionName, String version)
[14:58:21.273] at Microsoft.VisualStudio.Services.ExtensionManagement.Extensions.ExtensionOperationStepPerformer.Install(IVssRequestContext requestContext, ServicingContext servicingContext, InstallExtenstensionStepData stepData)
[14:58:21.273] Installing extension ms.vss-wiki-searchonprem.
[14:58:21.290] [Warning] ms.vss-wiki-searchonprem extension install failed with exception Microsoft.VisualStudio.Services.Gallery.WebApi.ExtensionDoesNotExistException: The requested extension 'ms.vss-wiki-searchonprem' doesn't exist.
[14:58:21.290] at Microsoft.VisualStudio.Services.Gallery.Server.Components.PublishedExtensionComponent.QueryExtension(String publisherName, String extensionName, String version, Guid validationId, ExtensionQueryFlags flags)
[14:58:21.290] at Microsoft.VisualStudio.Services.Gallery.Server.PublishedExtensionService.QueryExtension(IVssRequestContext requestContext, String publisherName, String extensionName, String version, ExtensionQueryFlags flags, String accountToken, Boolean useCache)
[14:58:21.290] at Microsoft.VisualStudio.Services.Gallery.Server.PlatformGalleryService.GetExtension(IVssRequestContext requestContext, String publisherName, String extensionName, String version, ExtensionQueryFlags flags, String accountToken)
[14:58:21.290] at Microsoft.VisualStudio.Services.ExtensionManagement.Server.InstalledExtensionService.InstallExtension(IVssRequestContext requestContext, String publisherName, String extensionName, String version)
[14:58:21.290] at Microsoft.VisualStudio.Services.ExtensionManagement.Extensions.ExtensionOperationStepPerformer.Install(IVssRequestContext requestContext, ServicingContext servicingContext, InstallExtenstensionStepData stepData)
[14:58:21.290] Installing extension ms.vss-code-search.
[14:58:21.303] Step passed (with warnings): Install Feed Extension. Execution time: 46 milliseconds.
[14:58:21.303] [StepDuration] 0,0333
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Azure_DevOps_Server_2022/TriggerCollectionIndexing.ps1 and the collection-servicing log entries showing failed installs for the search extensions. Reproduce the upgrade state on Azure DevOps Server 2022.1 Patch 3 and verify that the Code Search extension shows its version and install history and that code search works after indexing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elasticsearch, powershell
- Domain
- devops, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100