Back

Failed to connect to exc1 port 80

  • 0
  • Self Hosted
  • Functions
Cl3tus
24 Jul, 2024, 13:14

Hi. First, I try to find my answer in this Discord, no solution found/works.

I’m using appwrite with self hosted solution on my VPS. I change the 808080 and 4438083. this works fine.

But for functions, I get an error when I want to deploy:

TypeScript
Failed to connect to exc1 port 80 after 2 ms: Couldn't connect to server with status code 0
/usr/src/code/src/Executor/Executor.php:336
#0 /usr/src/code/src/Executor/Executor.php(92): Executor\Executor->call('POST', '/runtimes', Array, Array, true, 900)
#1 /usr/src/code/src/Appwrite/Platform/Workers/Builds.php(407): Executor\Executor->createRuntime('66a0fd36d370764...', '66a0f9280000a29...', '/storage/functi...', 'openruntimes/no...', 'v3', true, 'src/main.js', '/storage/builds...', Array, 'tar -zxf /tmp/c...')
#2 [internal function]: Appwrite\Platform\Workers\Builds->Appwrite\Platform\Workers\{closure}()
#3 {main}

Is there something I missed in the config / env ?

env file:

TypeScript
...
_APP_DOMAIN=appwrite.cl3tus.com
_APP_DOMAIN_FUNCTIONS=appwrite.cl3tus.com
_APP_DOMAIN_TARGET=appwrite.cl3tus.com
...
_APP_EXECUTOR_HOST=http://exc1/v1
_APP_EXECUTOR_RUNTIME_NETWORK=appwrite_runtimes
...
TL;DR
Issue: Failed to connect to exc1 port 80 when deploying functions using Appwrite on a self-hosted VPS. Solution: Update the `_APP_EXECUTOR_HOST` variable in the env file to reflect the correct port (8080) where Appwrite is hosted. Example: `_APP_EXECUTOR_HOST=http://exc1:8080/v1`
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