Suddenly server down while im sleeping. Got an alert about SSL certificate. Restarted appwrite self hosted v1.5.7 and started to work again.
then started to investigate..
certificate container logs
TypeScript
2024-07-08T20:36:35.164766460Z [Worker] Worker 0 is ready!
2024-07-08T20:36:35.164799236Z Worker certificates  started
2024-07-08T20:36:35.171054174Z
2024-07-08T20:36:35.171073497Z Fatal error: Uncaught RedisException: Connection refused in /usr/src/code/vendor/utopia-php/queue/src/Queue/Connection/Redis.php:180
2024-07-08T20:36:35.171090061Z Stack trace:
2024-07-08T20:36:35.171093432Z #0 /usr/src/code/vendor/utopia-php/queue/src/Queue/Connection/Redis.php(180): Redis->connect('redis', 6379)
2024-07-08T20:36:35.171096961Z #1 /usr/src/code/vendor/utopia-php/queue/src/Queue/Connection/Redis.php(76): Utopia\Queue\Connection\Redis->getRedis()
2024-07-08T20:36:35.171100556Z #2 /usr/src/code/vendor/utopia-php/queue/src/Queue/Connection/Redis.php(65): Utopia\Queue\Connection\Redis->rightPop('utopia-queue.qu...', 5)
2024-07-08T20:36:35.171103958Z #3 /usr/src/code/vendor/utopia-php/queue/src/Queue/Server.php(199): Utopia\Queue\Connection\Redis->rightPopArray('utopia-queue.qu...', 5)
2024-07-08T20:36:35.171107439Z #4 [internal function]: Utopia\Queue\Server->Utopia\Queue\{closure}('0')
2024-07-08T20:36:35.171110885Z #5 /usr/src/code/vendor/utopia-php/queue/src/Queue/Adapter/Swoole.php(37): call_user_func(Object(Closure), '0')
2024-07-08T20:36:35.171114169Z #6 [internal function]: Utopia\Queue\Adapter\Swoole->Utopia\Queue\Adapter\{closure}(Object(Swoole\Process\Pool), '0')
2024-07-08T20:36:35.171117797Z #7 {main}
2024-07-08T20:36:35.171120835Z   thrown in /usr/src/code/vendor/utopia-php/queue/src/Queue/Connection/Redis.php on line 180
2024-07-08T20:36:35.254358830Z [Worker] Worker 0 is ready!
2024-07-08T20:36:35.254452629Z Worker certificates  started
then
TypeScript
root@appwrite:~/appwrite# docker compose exec appwrite ssl --domain="db.langx.io"
Scheduling a job to issue a TLS certificate for domain: db.langx.io
logs tail..
TypeScript
appwrite-worker-certificates  | 2024-07-08T20:36:35.254358830Z [Worker] Worker 0 is ready!
appwrite-worker-certificates  | 2024-07-08T20:36:35.254452629Z Worker certificates  started
appwrite-worker-certificates  | 2024-07-08T20:54:05.481458274Z [Job] Received Job (668c51ed750fd8.31231690).
appwrite-worker-certificates  | 2024-07-08T20:54:10.574504001Z [Job] (668c51ed750fd8.31231690) successfully run.
TL;DR
 Certificate container cannot connect to the Redis container causing a fatal error. Restarting the app fixed the issue temporarily. To resolve this, execute a TLS certificate issuance job using a specific domain as shown in the logs.Recommended threads
- dart appwrite 16.2.0 throws errors
Hi there, I just updated to 1.7.4 and also wanted to update the dart appwrite sdk to fit the appwrite version I am using now. So I updated to 16.2.0 and get th...
 - Server error on multiple requests
Hi there, I've updated from 1.5.7 to 1.7.4. I am using meilisearch for indexing and have therefore a dart script which syncs the appwrite data to meilisearch in...
 - server error github after upgrade to 1.8...
I got the error Error 500 Server Error general_unknown can not connect to github