V6 startup takes ~5 hours repeatedly due to VDR history processing after restart (ACI + Azure File Share)

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

Maintainer thường phản hồi trong vòng 1 ngày

@reinkrul đang làm issue này rồi.

Từ ngày 16/4/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Summary

Our Nuts Node v6.1.5 startup regularly takes about 5 hours after deployment/restart.
The delay appears during VDR migration/history processing and repeated VC processing from the network.

Environment

  • Nuts Node version: 6.1.5
  • Deployment: Azure Container Instance (ACI)
  • Storage:
    • SQL configured (storage.sql.connection is set)
    • BBolt data on mounted Azure File Share (/opt/nuts/data)
  • TLS:
    • tls.certfile, tls.certkeyfile, tls.truststorefile configured and readable
  • Network:
    • bootstrap node configured (nuts.test.kikstarter.nl:5555)
    • node connects/discovers peers successfully

Observed behavior

After deploy/restart, startup phase takes very long (~5 hours), especially around:

  • Migrating VDR
  • processing historical network/VDR data
  • log pattern similar to Processing VC received from Nuts Network

We also see:

  • Completed 0 migrations for SQL storage (so SQL schema migrations themselves are not the bottleneck)
  • gRPC starts and peer discovery works

Expected behavior

  • Startup should complete in reasonable time
  • VDR history/migration should not repeatedly take hours on normal restarts
  • Idempotent migration should be fast after first successful completion

Relevant startup logs

time="2026-04-15T10:24:05Z" level=debug msg="Running database migrations..." module=Storage
time="2026-04-15T10:24:05Z" level=info msg="Completed 0 migrations" module=Storage
...
time="2026-04-15T10:25:07Z" level=debug msg="Migrating VDR" module=core
time="2026-04-15T10:25:07Z" level=info msg="Running did:nuts migration: 'remove controller'" module=VDR
time="2026-04-15T10:25:07Z" level=info msg="Running did:nuts migration: 'document history'" module=VDR
time="2026-04-15T10:25:07Z" level=info msg="Running did:nuts migration: 'add did:web to subject'" module=VDR
...
time="2026-04-15T10:25:07Z" level=debug msg="Starting gRPC server on :5555" module=Network
time="2026-04-15T10:25:07Z" level=info msg="gRPC server started on :5555" module=Network
time="2026-04-15T10:25:07Z" level=debug msg="Discovered Nuts node" did="did:nuts:..." module=Network nodeAddr="grpc.****.test.***-v-da*******tion.nl:443"
Ngôn ngữ chính
Go
Star
29
Fork
24
Merge trung bình
2 ngày 5 giờ
Pull request đã merge (30 ngày)
37

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 nuts-foundation/nuts-node

Tất cả issue của nuts-foundation/nuts-node

Issue tương tự

Thêm issue về Go

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.