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
- how to access the value of account statu...
- Redirect from clicking team invite link ...
Hi all! Pretty new to app development in general so this might be something more generic than appwrite, but I've found (after reading the docs for the Teams API...
- Hosting Issues with Static IP not domain...
I have a machine with Static Public IP. I want to host Appwrite Site on it but I tried it but it doesn't allow IP addresses in Domain names. What should I do h...