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
- TOO_MANY_REDIRECTS after temporarily ena...
I am losing my mind over this, I enabled this setting because I was having issues with sites not making links with https. I enabled it, ran into issues, so I di...
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...