Back with the issue mentioned here a while ago:
3 out of my 5 Ghost sites crashed this morning again (most probably after Amazon RDS backup/maintenance window). Checking the logs I got the issue below:
[2018-07-13 07:10:22] INFO “HEAD /” 200 59999ms
[2018-07-13 07:10:22] ERROR
MESSAGE: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
TimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
at /srv/www/plimbalandala.ro/versions/1.24.8/node_modules/knex/lib/client.js:340:13
at tryCatcher (/srv/www/plimbalandala.ro/versions/1.24.8/node_modules/bluebird/js/release/util.js:16:23)
at /srv/www/plimbalandala.ro/versions/1.24.8/node_modules/bluebird/js/release/catch_filter.js:17:41
at tryCatcher (/srv/www/plimbalandala.ro/versions/1.24.8/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/srv/www/plimbalandala.ro/versions/1.24.8/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/srv/www/plimbalandala.ro/versions/1.24.8/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/srv/www/plimbalandala.ro/versions/1.24.8/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/srv/www/plimbalandala.ro/versions/1.24.8/node_modules/bluebird/js/release/promise.js:689:18)
at Async._drainQueue (/srv/www/plimbalandala.ro/versions/1.24.8/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/srv/www/plimbalandala.ro/versions/1.24.8/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/srv/www/plimbalandala.ro/versions/1.24.8/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
The weird thing is that the crash only happens to 3 out of 5 sites and those are the first 3 installed in the order of their deployment. The error above appeared in the latest deployed Ghost site as well (a blog migrated from Wordpress), but the site was still up.
Any ideas what it could be? I know it’s most probably a very weird and hard to reproduce instance, but maybe the error above provides some hints I’m missing.
If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you. Try to always mention:
- What’s your URL? This is the easiest way for others to debug your issue
- What version of Ghost are you using? 1.24.8
- What configuration? AWS ec2 Ubuntu 16.04 LTS + Nginx + RDS MariaDB
- What browser? Chrome
- What errors or information do you see in the console? Log above
- What steps could someone else take to reproduce the issue you’re having? Hard to reproduce. Only happens in some days and it only happens to some of the Ghost sites.