Upgrade over 26.9.0 not possible due to REINDEX
Maintainer thường phản hồi trong vòng 2 ngày
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
- 28/100
Hướng nghiên cứu
Start by reading the linked issues 4516 and 4520 and checking how the upgrade script handles the REINDEX step. The report identifies duplicates in sentry_stringindexer and sentry_perfstringindexer during an upgrade from 26.7.0 to 26.11.0. Done means establishing a safe resolution for these duplicate rows and confirming the upgrade succeeds; the issue provides no test or code entry point.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Self-Hosted Version
26.7.0
CPU Architecture
x86_64
Docker Version
29.10.0
Docker Compose Version
5.8.0
Machine Specification
- My system meets the minimum system requirements of Sentry
Installation Type
Upgrade from 26.7.0 to 26.11.0
Steps to Reproduce
- git checkout 26.11.0
- .\install.sh
Expected Result
Successful upgrade
Actual Result
I updated both files for sentry.conf.py and config.yml as well as .env.
Upgrading from 26.7 to 26.11 fails:
- Run .\install.sh
- Cancels at the REINDEX step with the following error:
sentry ERROR: could not create unique index "unique_org_string"
DETAIL: Key (string, organization_id)=(ZGQ4eP63k56V1T-ZsOkYe, 1) is duplicated.
I know I should use the AI or the Issues to find a solution, but I don't get the exact solution for this.
What I did:
- Connect to the DB using docker compose exec postgres psql -U postgres -d postgres
- Run the script:
SELECT string, organization_id, COUNT() as dup_count
FROM sentry_stringindexer
GROUP BY string, organization_id
HAVING COUNT() > 1;
-> returns 124 records with 2 entries each, but with different IDs! (also the one shown above)
Also the script for sentry_perfstringindexer (from issue 4516) returns 1 result.
Shall I delete the records from both tables anyway following issue 4520 (although having different IDs) and 4516?
Can I do this while Sentry is running or shall the other containers be stopped?
Event ID
No response
- Ngôn ngữ chính
- Shell
- Star
- 9.7k
- Fork
- 2k
- Merge trung bình
- 3 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 getsentry/self-hosted
-
Waiting for: Product Owner
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
getsentry/self-hosted#4644 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
getsentry/self-hosted#4518 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Waiting for: Product Owner
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 73/100
getsentry/self-hosted#4642 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Waiting for: Product Owner
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
getsentry/self-hosted#4634 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Waiting for: Product Owner
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
getsentry/self-hosted#4629 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của getsentry/self-hosted
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
ajithakdev/claude-desktop-rpm#43 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws/aws-networking-best-practices#256 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:terraform source:reader type:content-error
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
stephrobert/blog-roadmap#268 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
fossi-foundation/globalfoundries-pdk-libs-gf180mcu_fd_pv#61 ·
-
ChatGPT directory is behind mainĐang mởopenai-directory
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100