ADO_Server_Diagnostics_2025 cannot be run as published: missing Common.psm1 and two analyzers incompatible with Elasticsearch 8
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
-
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.
- Ngôn ngữ chính
- PowerShell
- Star
- 57
- Fork
- 68
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/Code-Search
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
microsoft/Code-Search#122 ·
-
Azure_DevOps_Server_2025 missingĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
microsoft/Code-Search#98 · 2 bình luận · 2 reaction ·
-
Code Search extensionĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 15/100
microsoft/Code-Search#97 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
microsoft/Code-Search#96 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 30/100
microsoft/Code-Search#95 · 1 bình luận ·
Tất cả issue của microsoft/Code-Search
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Add: Prima Sport 5 LogoĐang mởcheck:passed logos:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
request-theme
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
LizardByte/ThemerrDB#8693 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
rohitg00/agentmemory#1428 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày