Back

Trying to Deploy new Appwrite Stack

  • 0
  • Self Hosted
  • General
Zeke(Jafesu)
28 Jul, 2023, 21:37

Hello,

I am trying to deploy a new Appwrite Stack, when i deploy I get this in the console:

TypeScript

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')

}
  thrown in @swoole-src/library/core/Database/PDOConfig.php on line 82```

My compose is attached
TL;DR
The user is trying to deploy a new Appwrite Stack but encounters a fatal error related to the Swoole database configuration. The error message indicates that the provided port argument must be an integer but a string was given instead. Changing the container names or using multiple SMTP configurations for multiple organizations may cause unexpected behavior and should be avoided. The user asks if there is a better way to deploy multiple Appwrite instances on a single server. Solution: The error is caused by providing a string instead of an integer for the port argument in the .env file. Ensure that the port value is an integer.
Drake
28 Jul, 2023, 21:56

and how about the _APP_DB_PORT in your .env file?

Drake
28 Jul, 2023, 21:57

hmm you might run into some unexpected behavior from changing the container names like you did

Zeke(Jafesu)
28 Jul, 2023, 22:05

Is there a better way to deploy multiple appwrite instances on a single server?

Drake
28 Jul, 2023, 22:10

i don't recommend that because it can be difficult to maintain. why do you need to do this?

Zeke(Jafesu)
28 Jul, 2023, 22:10

Simply because I need multiple SMTP configs for multiple orgs within my appwrite which is not yet a capability

Zeke(Jafesu)
28 Jul, 2023, 22:11

If I could have org based SMTP this wouldn't be a problem

Drake
28 Jul, 2023, 22:12

ah ya...well the good news is this is coming in our next release

Zeke(Jafesu)
28 Jul, 2023, 22:12

Do we have a release date on that?

Drake
28 Jul, 2023, 22:12

soon 😉

Zeke(Jafesu)
28 Jul, 2023, 22:12

Lol alright I'll put a hold on this for now then. Thank you for your help

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