Repository navigation
Replies: 1 comment 1 reply
|
Error indicates sharing of database connection sockets between processes. Most likely, you need the following in your puma config: before_fork do
Sequel::DATABASES.each(&:disconnect)
end |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello again. 👋
So I've got a Hanami + Rodauth application and am able to register an account. Example:
Upon clicking on "Create Account", I end up with this error in the UI:
The closest I could find was this Stack Overflow question which leads to this Sequel fork safety discussion.
I can't tell if this is a Puma configuration issue or with my plugin configuration? Here's the source for each in case it helps:
Puma
Roda Middleware
Is this happening because of how I have Puma configured or is it because, in the middleware, I do this:
I would prefer to grab Hanami's connection (i.e.
Hanami.app["db.gateway].connection) but it isn't loaded yet.All reactions