Skip to content
Back

Error: Error handler had an error: Pool 'console' is empty

  • 1
  • Self Hosted
  • Databases
jesus
3 Jan, 2025, 18:58

I'm playing with appwrite selfhosted, and tried to stress test it and overload it and got this error when trying to access the console:

{"message":"Error: Error handler had an error: Pool 'console' is empty (size 10)","code":500,"file":"\/usr\/src\/code\/vendor\/utopia-php\/framework\/src\/App.php","line":574,"trace":[{"file":"\/usr\/src\/code\/vendor\/utopia-php\/framework\/src\/App.php","line":705,"function":"execute","class":"Utopia\\App","type":"->","args":[{},{},{}]},{"file":"\/usr\/src\/code\/app\/http.php","line":255,"function":"run","class":"Utopia\\App","type":"->","args":[{},{}]},{"function":"{closure}","args":[{"fd":214,"streamId":0,"header":{"host":"192.168.1.3","user-agent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/131.0.0.0 Safari\/537.36","accept":"*\/*","accept-encoding":"gzip, deflate","accept-language":"en-US,en","content-type":"application\/json","referer":"http:\/\/192.168.1.3\/console\/project-675cb72f00285bae7cf4\/overview\/platforms","sec-gpc":"1","x-appwrite-project":"console","x-appwrite-response-format":"1.6.0","x-fallback-cookies":"{\"a_session_console\":\"xxxxxxxxxxxxxxxx\"}","x-forwarded-for":"10.0.0.2","x-forwarded-host":"192.168.1.3","x-forwarded-port":"80","x-forwarded-proto":"http","x-forwarded-server":"6f099860a213","x-real-ip":"10.0.0.2","x-sdk-language":"web","x-sdk-name":"Console","x-sdk-platform":"console","x-sdk-version":"1.1.0"},"server":{"request_method":"GET","request_uri":"\/v1\/teams\/675cb72c00000883fbf0","path_info":"\/v1\/teams\/675cb72c00000883fbf0","request_time":1735929495,"request_time_float":1735929495.137188,"server_protocol":"HTTP\/1.1","server_port":80,"remote_port":41216,"remote_addr":"10.0.2.14","master_time":1735929495},"cookie":{"a_session_console_legacy":"xxxxxxxxxx"},"get":null,"files":null,"post":null,"tmpfiles":null},{"fd":214,"socket":null,"header":null,"cookie":null,"trailer":null}]}],"version":"1.6.0"}

TL;DR
Error handler encountered an error with empty 'console' pool size after a migration to 1.8.0 in Appwrite self-hosted. API stops responding, crashes, and needs container restart. Try increasing the DB pool via environment variable or Docker compose file. Stress testing caused the issue; restarting the Appwrite container may help temporarily.
jesus
4 Jan, 2025, 10:31

🧐

Darshan Pandya
4 Jan, 2025, 10:41

does restarting appwrite container help?

D5
4 Jan, 2025, 16:53

What were you stress testing?

jesus
4 Jan, 2025, 21:46

Yes

jesus
4 Jan, 2025, 21:46

But it will come back if i did the test another time

jesus
4 Jan, 2025, 21:47

And it won't go until i restart the containers

jesus
4 Jan, 2025, 21:48

Just a simple k6 stress test with 4 stages of 500, 1000, 1500, 0 vu's creating random documents in a collection.

jesus
4 Jan, 2025, 21:53

It says pool 'console' is empty (size 10) what does that mean ? And also the api stops responding.

D5
4 Jan, 2025, 21:53

You mean it goes unresponsive?

jesus
4 Jan, 2025, 21:54

Yes it crashes and won't respond until i restart the containers

jesus
6 Jan, 2025, 09:23

🧐

D5
7 Jan, 2025, 10:04

It could be related to DB pool. What if you increase it by changing the en variable or docker compose file?

jesus
7 Jan, 2025, 23:59

No, i already did that i also increased the db max connections.

Nothing worked.

jesus
13 Jan, 2025, 00:31

@Steven sorry for the ping but no one have any clues on what is happening.

Steven
13 Jan, 2025, 04:10

It's related to database connections. When self hosting, it's on you to scale and tune Appwrite. If you want help, you can sign up for support

whataboutno13
3 Nov, 2025, 09:28

Hi @jesus, did you get any support/insights on this? 🙂 Im running into the same issue

pgk1124
7 Nov, 2025, 09:55

I would like to know as well. We have been facing this issue since we moved to 1.8.0. Nothing else in the worfklow has changed, so it must be linked to the migration 1.8

D5
8 Nov, 2025, 21:38

@pgk1124 @whataboutno13 Pls create new post

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more