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

wait for redis to be ready on startup #667

Open
rafaelcr opened this issue Oct 25, 2024 · 0 comments
Open

wait for redis to be ready on startup #667

rafaelcr opened this issue Oct 25, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@rafaelcr
Copy link
Collaborator

chainhook currently exits with code 1 if a Redis connection cannot be established on bootup

Oct 25 15:15:29.117 INFO Starting service...
Oct 25 15:15:29.119 ERRO Failed loading predicate from storage: unable to connect to redis: Connection refused (os error 61)
Oct 25 15:15:29.123 INFO Listening on port 20456 for chainhook predicate registrations
Oct 25 15:15:29.130 INFO Listening on port 20455 for Stacks chain events
Oct 25 15:15:29.130 INFO Observing Bitcoin chain events via Stacks node
Oct 25 15:15:29.131 INFO Seeding block pool with 0 blocks
Oct 25 15:15:29.132 CRIT Stacks scan runloop stopped.
Oct 25 15:15:29.132 INFO Handling Termination command
Oct 25 15:15:29.132 CRIT Bitcoin scan runloop stopped.
Oct 25 15:15:29.134 CRIT unable to connect to db: Connection refused (os error 61)

it should instead retry its connection every second or something until Redis is ready to make this process more reliable

@rafaelcr rafaelcr added enhancement New feature or request good first issue Good for newcomers labels Oct 25, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in DevTools Oct 25, 2024
@smcclellan smcclellan moved this from 🆕 New to 📋 Backlog in DevTools Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant