Skip to content

Conversation

@ohko4711
Copy link

The current codebase is missing some DB migration SQL, causing errors:

time="2025-08-22T06:18:45Z" level=error msg="error getting validator data" _file=validator.go _function=github.com/gobitfly/eth2-beaconchain-explorer/handlers.Validator _line=1155 errType="*errors.errorString" error="error retrieving blocks_switch_to_compounding_requests of validator 51909: ERROR: relation \"blocks_switch_to_compounding_requests\" does not exist (SQLSTATE 42P01)"
time="2025-08-22T06:18:47Z" level=error msg="error executing template" error="error retrieving block deposit data: ERROR: relation \"blocks_exit_requests\" does not exist (SQLSTATE 42P01)" error type="*errors.errorString" file=slot.go function=Slot info=GetSlotPageData module=handlers route=/slot/126a32cb3e1722ec10129e1e0397e0e8f932abe62bf6293759a378540231f7c0
time="2025-08-22T06:18:48Z" level=error msg="error executing template" error="error retrieving block deposit data: ERROR: relation \"blocks_exit_requests\" does not exist (SQLSTATE 42P01)" error type="*errors.errorString" file=slot.go function=Slot info=GetSlotPageData module=handlers route=/slot/fc65376d438ca57d0532bbaccc138b25b98b42bcfdee30b25ddf831f3247b734
time="2025-08-22T06:18:48Z" level=error msg="error executing template" error="error retrieving block deposit data: ERROR: relation \"blocks_exit_requests\" does not exist (SQLSTATE 42P01)" error type="*errors.errorString" file=slot.go function=Slot info=GetSlotPageData module=handlers route=/slot/7742f576cfd51642dc75fce79934ce32cc3fce45af9208dcf9d654c856d873f9
time="2025-08-22T06:18:49Z" level=error msg="error executing template" error="error retrieving block deposit data: ERROR: relation \"blocks_exit_requests\" does not exist (SQLSTATE 42P01)" error type="*errors.errorString" file=slot.go function=Slot info=GetSlotPageData module=handlers route=/slot/3824057
time="2025-08-22T06:18:50Z" level=error msg="error executing template" error="error retrieving block deposit data: ERROR: relation \"blocks_exit_requests\" does not exist (SQLSTATE 42P01)" error type="*errors.errorString" file=slot.go function=Slot info=GetSlotPageData module=handlers route=/slot/7a34575c693c4056941e6a16fd45503c69aabd8781ffdc1cf4dfc18e775d6af4



@mxmar
Copy link
Contributor

mxmar commented Oct 23, 2025

The current codebase is missing some DB migration SQL, causing errors:

time="2025-08-22T06:18:45Z" level=error msg="error getting validator data" _file=validator.go _function=github.com/gobitfly/eth2-beaconchain-explorer/handlers.Validator _line=1155 errType="*errors.errorString" error="error retrieving blocks_switch_to_compounding_requests of validator 51909: ERROR: relation \"blocks_switch_to_compounding_requests\" does not exist (SQLSTATE 42P01)"
time="2025-08-22T06:18:47Z" level=error msg="error executing template" error="error retrieving block deposit data: ERROR: relation \"blocks_exit_requests\" does not exist (SQLSTATE 42P01)" error type="*errors.errorString" file=slot.go function=Slot info=GetSlotPageData module=handlers route=/slot/126a32cb3e1722ec10129e1e0397e0e8f932abe62bf6293759a378540231f7c0
time="2025-08-22T06:18:48Z" level=error msg="error executing template" error="error retrieving block deposit data: ERROR: relation \"blocks_exit_requests\" does not exist (SQLSTATE 42P01)" error type="*errors.errorString" file=slot.go function=Slot info=GetSlotPageData module=handlers route=/slot/fc65376d438ca57d0532bbaccc138b25b98b42bcfdee30b25ddf831f3247b734
time="2025-08-22T06:18:48Z" level=error msg="error executing template" error="error retrieving block deposit data: ERROR: relation \"blocks_exit_requests\" does not exist (SQLSTATE 42P01)" error type="*errors.errorString" file=slot.go function=Slot info=GetSlotPageData module=handlers route=/slot/7742f576cfd51642dc75fce79934ce32cc3fce45af9208dcf9d654c856d873f9
time="2025-08-22T06:18:49Z" level=error msg="error executing template" error="error retrieving block deposit data: ERROR: relation \"blocks_exit_requests\" does not exist (SQLSTATE 42P01)" error type="*errors.errorString" file=slot.go function=Slot info=GetSlotPageData module=handlers route=/slot/3824057
time="2025-08-22T06:18:50Z" level=error msg="error executing template" error="error retrieving block deposit data: ERROR: relation \"blocks_exit_requests\" does not exist (SQLSTATE 42P01)" error type="*errors.errorString" file=slot.go function=Slot info=GetSlotPageData module=handlers route=/slot/7a34575c693c4056941e6a16fd45503c69aabd8781ffdc1cf4dfc18e775d6af4

@ohko4711 I think that some goose migrations are available here: https://github.com/gobitfly/beaconchain/blob/staging/backend/pkg/commons/db/migrations/postgres/20240820111812_add_v2_tables.sql + https://github.com/gobitfly/beaconchain/blob/staging/backend/pkg/commons/db/migrations/postgres/20250131063102_pectra_tables.sql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants