-
Notifications
You must be signed in to change notification settings - Fork 727
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
database.yml is in the wrong location for docker containers #5179
Comments
So basically this function seems to be missing in docker entry point: zammad/contrib/packager.io/functions Line 172 in 0a0935d
|
Can confirm that this happened on our 6.3.1 deployment, too. Adding a bind mount with a correct database.yml file to /opt/zammad/config/database.yml fixes the symptoms. |
Please update your https://github.com/zammad/zammad-docker-compose/blob/master/.env |
Used Zammad Version
6.3.1
Environment
Actual behaviour
Scheduler container's log shows errors causing scheduled jobs to fail if using default docker-compose setup:
ConnectionTimeoutError: could not obtain a connection from the pool within 5.000 seconds (waited 5.000 seconds); all pooled connections were in use.
Runtime pool size of
5
isn't equal to value of50
configured in default rails database.yml:When copying the default rails database.yml and mounting it in docker as such, problem is solved:
I think the fix should be something like
contrib/docker/docker-entrypoint.sh
checking for existing~/config/database.yml
symlink to~/config/database/database.yml
and creating it if it doesnt exist. Or movedatabase.yml
from its subdirectory to/config/
directly.More info here:
https://community.zammad.org/t/scheduler-fails-with-activerecord-could-not-obtain-a-connection-from-the-pool-within-5-000-seconds-waited-5-000-seconds-all-pooled-connections-were-in-use/14320/7
Expected behaviour
Scheduled jobs finish without problems
Steps to reproduce the behaviour
$ docker-compose up -d
Support Ticket
No response
I'm sure this is a bug and no feature request or a general question.
yes
The text was updated successfully, but these errors were encountered: