Upgrading from 26.8 to 26.9 failed (could not create unique index "perf_unique_org_string_usecase")
Maintainer thường phản hồi trong vòng 1 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
- 48/100
Hướng nghiên cứu
Bắt đầu với install/upgrade-postgres.sh ở dòng 53 và install.sh ở dòng 41, sau đó xem lại các lệnh upgrade và reindex PostgreSQL được hiển thị trong lỗi. Tái hiện quá trình upgrade từ 26.8 lên 26.9 với dữ liệu có khóa trùng lặp, xác định việc migration chỉ mục duy nhất nên xử lý trường hợp đó như thế nào và xác minh rằng upgrade hoàn tất thành công.
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.9
CPU Architecture
x86_64
Docker Version
26.1.4
Docker Compose Version
2.27.1
Machine Specification
- My system meets the minimum system requirements of Sentry
Installation Type
Upgrade from 26.8 to 26.9
Steps to Reproduce
▶ Ensuring proper PostgreSQL version ...
Container sentry-self-hosted-postgres-1 Creating
Container sentry-self-hosted-postgres-1 Created
Container sentry-self-hosted-postgres-1 Starting
Container sentry-self-hosted-postgres-1 Started
Container sentry-self-hosted-postgres-1 Waiting
Container sentry-self-hosted-postgres-1 Healthy
Re-indexing due to glibc change, this may take a while...
ERROR: could not create unique index "perf_unique_org_string_usecase"
DETAIL: Key (string, organization_id, use_case_id)=(d:transactions/measurements.cls@ratio, 1, transactions) is duplicated.
Error in install/upgrade-postgres.sh:53.
'$dc exec postgres psql -U postgres -v ON_ERROR_STOP=1 -c "REINDEX DATABASE postgres;"' exited with status 1
-> ./install.sh:main:41
--> install/upgrade-postgres.sh:source:53
Cleaning up...
Expected Result
I should be able to upgrade from 26.8 to 26.9.
Actual Result
I cannot upgrade from 26.8 to 26.9
Event ID
No response
- Ngôn ngữ chính
- Shell
- Star
- 9.6k
- Fork
- 2k
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 25
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
-
Uptime "Test Monitor" always fails with an empty HTTP 400 (uptime-checker API endpoint not configured)Có thể đã có người làm @ayoubjemai đã nhận 1 ngày trước. Đang mởWaiting for: Product Owner
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
getsentry/self-hosted#4582 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Waiting for: Product Owner
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/self-hosted#4577 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Waiting for: Product Owner
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/self-hosted#4567 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Stale Waiting for: Community
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/self-hosted#4527 · 4 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 84/100
getsentry/self-hosted#4518 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/self-hosted
Issue tương tự
-
[Request] Add BBportĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
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 68/100
Leonxlnx/taste-skill#164 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
reproduced
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
anomalyco/opencode#58651 · 2 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 78/100
-
使用脚本 DD 腾讯云 报错Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100