Quantcast
Channel: Zammad - Community - Latest posts
Viewing all articles
Browse latest Browse all 6760

Scheduler fails with "ActiveRecord::ConnectionTimeoutError: could not obtain a connection from the pool within 5.000 seconds (waited 5.000 seconds); all pooled connections were in use>"

$
0
0

Am I right settings from database.yml do not seem to propagate?

Pool size seems to be set to the default value of 5 in runtime, rather than 50 as was configured in database.yml

$ docker compose run --rm zammad-scheduler rails r "p ActiveRecord::Base.connection_pool.stat"
[+] Creating 3/0
 ✔ Container docker_zammad-zammad-memcached-1   Running                                                                                            0.0s
 ✔ Container docker_zammad-zammad-redis-1       Running                                                                                            0.0s
 ✔ Container docker_zammad-zammad-postgresql-1  Running                                                                                            0.0s
I, [2024-05-17T08:31:11.773981 #1]  INFO -- : ActionCable is using the redis instance at redis://zammad-redis:6379.
I, [2024-05-17T08:31:11.824991#1-6060]  INFO -- : Using memcached as Rails cache store.
I, [2024-05-17T08:31:11.825266#1-6060]  INFO -- : Using the Redis back end for Zammad's web socket session store.
{:size=>5, :connections=>0, :busy=>0, :dead=>0, :idle=>0, :waiting=>0, :checkout_timeout=>5.0}
$ docker exec -it  docker_zammad_zammad-scheduler_1 /bin/bash
$ cat /opt/zammad/config/database/database.yml | grep pool
  pool: 50
$ cat /opt/zammad/config/database.yml | grep pool
cat: /opt/zammad/config/database.yml: No such file or directory

In the docker container database.yml is only in ~/config/databases/database.yml and no symlink in ~/config/database.yml


Viewing all articles
Browse latest Browse all 6760

Trending Articles