Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Upgrading from 26.8 to 26.9 failed (could not create unique index "perf_unique_org_string_usecase")

Đang mở
#4,516 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, docker-compose, postgresql, shell
Lĩnh vực
database, release

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/self-hosted

Tất cả issue của getsentry/self-hosted

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.