Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restoring data dump in rosetta container fails #10196

Open
xin-hedera opened this issue Jan 21, 2025 · 1 comment
Open

Restoring data dump in rosetta container fails #10196

xin-hedera opened this issue Jan 21, 2025 · 1 comment
Labels
bug Type: Something isn't working rosetta Area: Rosetta API

Comments

@xin-hedera
Copy link
Collaborator

Description

When trying to restore a data dump for rosetta using restorein the entrypoint script, it fails.

At one point, it failed since pg_restore can't create temporary schema as it already exists. On another count, it failed as the user mirror_node doesn't have privilege to create btree_gist extension.

With some tricky workaround, a dump to get around the schema and extension issue made it work. We need to create a runbook and note the workarounds.

Steps to reproduce

create a db dump using pg_dump and try to restore it with the rosetta container.

Additional context

No response

Hedera network

other

Version

v0.116.0

Operating system

None

@xin-hedera xin-hedera added documentation Type: Improvements or additions to documentation rosetta Area: Rosetta API labels Jan 21, 2025
@xin-hedera
Copy link
Collaborator Author

for the record, this is the command to workaround the issues

$ pg_dump -F d -f data_dump -N temporary -e plpgsql -h localhost -U mirror_node mirror_node
  • skips the temporary schema
  • only dump plpgsql extension which turns out with no extensions dumped

@steven-sheehy steven-sheehy added bug Type: Something isn't working and removed documentation Type: Improvements or additions to documentation labels Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working rosetta Area: Rosetta API
Projects
None yet
Development

No branches or pull requests

2 participants