ADO_Server_Diagnostics_2025 cannot be run as published: missing Common.psm1 and two analyzers incompatible with Elasticsearch 8
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
Piste de recherche
Start with ADO_Server_Diagnostics_2025/Common.psm1 and Troubleshooting/Utils/Common.psm1, then inspect Analyzers/Test-ElasticsearchHealth.psm1 and Test-IndicesHaveUnsupportedMappings.psm1 against Elasticsearch 8.14.1. Read Troubleshooting/readme.txt and locate every Invoke-Sqlcmd call before running Repair-Search.ps1. Done means a published 25H2 run completes all analyzers, documents the actual parameters, and handles the stated SQL TLS condition.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
-
ADO_Server_Diagnostics_2025/Common.psm1is missing from the repository. The scripts in the root of that folder import it and fail. We had to copy the file fromAzure_DevOps_Server_2022. -
ADO_Server_Diagnostics_2025/Troubleshooting/Utils/Common.psm1is also missing. TheUtilsfolder in that path contains onlyAlgorithms.ps1, while the 2022 equivalent contains both files.Repair-Search.ps1cannot start without it. -
Analyzers/Test-ElasticsearchHealth.psm1crashes on Elasticsearch 8. Line 109 throwsIndexOutOfRangeException. The aggregation built earlier in the function groups by the_typefield, which was removed in Elasticsearch 8, somappings.bucketscomes back empty and$mappings[0]is out of bounds. Azure DevOps Server 25H2 installs Elasticsearch 8.14.1, so this analyzer can never complete on a supported 25H2 deployment. -
Analyzers/Test-IndicesHaveUnsupportedMappings.psm1throws on Elasticsearch 8. Line 78 raisesGET _mapping/<type> failed with status code [400] unexpectedly. The_mapping/{type}endpoint was removed in Elasticsearch 8 and now returns HTTP 400 (no handler found for uri) instead of the HTTP 404 the script expects. Suggested fix: treat 400 the same as 404, or skip this analyzer entirely on Elasticsearch 8, since the function's own comment notes there is only one mapping per index in current releases.Because analyzers 3 and 4 run in the middle of the sequence, their exceptions abort
Repair-Search.ps1before the remaining analyzers execute. We had to patch both files locally to get a complete run. -
Troubleshooting/readme.txtdocuments parameter names that do not exist. The actual parameters ofRepair-Search.ps1are-SQLServerInstance,-ConfigurationDatabaseName,-CollectionDatabaseName,-CollectionName,-ElasticsearchServiceUrl,-ElasticsearchServiceCredentialand-EntityType. -
Invoke-Sqlcmdcalls fail against SQL Server instances without a trusted TLS certificate. Version 22.x of theSqlServerPowerShell module encrypts connections by default, so every call fails withThe certificate chain was issued by an authority that is not trusted. Setting$PSDefaultParameterValuesin the caller's session does not help, because the calls are made from inside the module scope. We had to add-TrustServerCertificateto everyInvoke-Sqlcmdcall in the scripts.
- Langage dominant
- PowerShell
- Étoiles
- 57
- Forks
- 68
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de microsoft/Code-Search
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
microsoft/Code-Search#122 ·
-
Azure_DevOps_Server_2025 missingOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
microsoft/Code-Search#98 · 2 commentaires · 2 réactions ·
-
Code Search extensionOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 15/100
microsoft/Code-Search#97 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
microsoft/Code-Search#96 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 30/100
microsoft/Code-Search#95 · 1 commentaire ·
Toutes les issues de microsoft/Code-Search
Issues similaires
-
Add: Mooz RetroOuvertechannels:add check:passed
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 2 jours
-
doctor integrity sample scans soft-deleted pages on Postgres (batch path has no deleted_at filter)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
Les mainteneurs répondent en général sous 1 jour
-
bug Technical Debt
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
avniproject/avni-server#1080 ·
-
area/ysql kind/bug priority/medium status/awaiting-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
yugabyte/yugabyte-db#34415 ·
Les mainteneurs répondent en général sous 1 jour