Cl3tusOriginal post
Web Developer
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 80 → 8080 and 443 → 8083. this works fine.
But for functions, I get an error when I want to deploy:
Bash
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:
...
_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
...
Summary
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`