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:
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`Recommended threads
- Function domain not available
Hello, even tho in docs you clearly describe that every function has its domain, I can not see it anywhere in any of my projects. How do I reveal the url of th...
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?