Hello all, my appwrite stack no longer starts up and the appwrite container spits out the following error when spinning up workers and then reboots: [2023-02-21 21:26:10 #1.4] ERROR php_swoole_server_rshutdown() (ERRNO 503): Fatal error: Uncaught TypeError: Swoole\Database\PDOConfig::withPort(): Argument #1 ($port) must be of type int, string given, called in /usr/src/code/app/init.php on line 510 and defined in @swoole-src/library/core/Database/PDOConfig.php:82 Stack trace: #0 /usr/src/code/app/init.php(510): Swoole\Database\PDOConfig->withPort('') #1 /usr/src/code/vendor/utopia-php/registry/src/Registry/Registry.php(75): {closure}() #2 /usr/src/code/app/http.php(70): Utopia\Registry\Registry->get('dbPool') #3 {main} thrown in @swoole-src/library/core/Database/PDOConfig.php on line 82
Appwrite version: appwrite/appwrite:1.1.2
any assistance will be greatly appreciated.
Seems like the DB port might be missing. Do you have _APP_DB_PORT
set in your .env file?
more than that, the entire ENV file went missing somehow
i restored from backup and now its working, thank you for pointing me in the correct direction.
[SOLVED] Fatal Error on appwrite stack
Remember to have backups! And don't track this file in Git!
Recommended threads
- Custom Domains
Hi All, Should be a quick config issue. I'm setting up custom domains on the hosted version. I have verified the domain with the CNAME but appwrite isn't gene...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...