#Appwrite 1.4.1: Function/executor

16 messages · Page 1 of 1 (latest)

gloomy sage
#

Good day!
Your support is highly appreciated!
I am running Appwrite behind Nginx reverse proxy keeping the native load balancer traefik with trusted ip set
--entryPoints.web.forwardedHeaders.trustedIPs=x.x.x.x
--entryPoints.websecure.forwardedHeaders.trustedIPs=x.x.x.x

All is working except for the functions, i went all the previous bugs and fixed the host issue and set my public domain with SSL on both ends Nginx/Traefik
I have deployed the function manually as for the CLI is broken and yet not fixed.
i have the following errors which i can not get rid off

hot swan
#
  • How are you trying to execute the function?
  • Have you added and verified the custom domain?
burnt heath
gloomy sage
# burnt heath what is your `_APP_EXECUTOR_HOST` env var set to?

_APP_FUNCTIONS_SIZE_LIMIT=30000000
_APP_FUNCTIONS_TIMEOUT=900
_APP_FUNCTIONS_BUILD_TIMEOUT=900
_APP_FUNCTIONS_CONTAINERS=10
_APP_FUNCTIONS_CPUS=0
_APP_FUNCTIONS_MEMORY=0
_APP_FUNCTIONS_MEMORY_SWAP=0
_APP_FUNCTIONS_RUNTIMES=node-16.0,php-8.0,python-3.9,ruby-3.0
_APP_EXECUTOR_SECRET=your-secret-key
_APP_EXECUTOR_HOST=http://executor/v1
_APP_EXECUTOR_RUNTIME_NETWORK=appwrite_runtimes
_APP_FUNCTIONS_ENVS=node-16.0,php-7.4,python-3.9,ruby-3.0
_APP_FUNCTIONS_INACTIVE_THRESHOLD=60
'''

gloomy sage
burnt heath
gloomy sage
gloomy sage
#

docker inspect runtimes
[
{
"Name": "runtimes",
"Id": "faacfed62139eb2e5f24e3c0fa58736fd9dbda8bf127b459b1a58c3d2e46fb3b",
"Created": "2023-09-06T06:57:13.006270185Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "192.168.112.0/20",
"Gateway": "192.168.112.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"6ee8f53e91aa71f10e072b56eeced55370ae5258999b1594506bae51fd00c89b": {
"Name": "openruntimes-executor",
"EndpointID": "986fe3665b6fdfec87ba7ed953ddbc0b3ea1dec4f3e79e1b0a457763ae8eaae7",
"MacAddress": "02:42:c0:a8:70:02",
"IPv4Address": "192.168.112.2/20",
"IPv6Address": ""
},
"dc7970c75545078eef2b7da7b41903460879dbbdf637ef954825b0109db112d9": {
"Name": "64f794266762c5bba5bd-64f81fd3c7f532b2fdce",
"EndpointID": "735512bdd89872ea6caf9d9a68dd33d7744beea5ac7fe6d56f03c6184e180a2a",
"MacAddress": "02:42:c0:a8:70:03",
"IPv4Address": "192.168.112.3/20",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {
"com.docker.compose.network": "runtimes",
"com.docker.compose.project": "app-13",
"com.docker.compose.version": "2.20.2"
}
}
]

#

shall i modify the network name

burnt heath
gloomy sage
#

for the executor and OPEN_RUNTIMES_NETWORK

gloomy sage
# burnt heath Ya let's try that

appwrite-worker-functions | [Job] (64f968eb196675.37204927) Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection refused
appwrite-worker-functions | [Error] Type: Exception
appwrite-worker-functions | [Error] Message: Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection refused
appwrite-worker-functions | [Error] File: /usr/src/code/app/workers/functions.php
appwrite-worker-functions | [Error] Line: 284
appwrite | [Error] Timestamp: 2023-09-07T06:09:01+00:00
appwrite | [Error] Method: GET
appwrite | [Error] URL: /console/*
appwrite | [Error] Type: Appwrite\Extend\Exception
appwrite | [Error] Message: Host is not trusted. This could occur because you have not configured a custom domain. Add a custom domain to your project first and try again.
appwrite | [Error] File: /usr/src/code/app/controllers/general.php
appwrite | [Error] Line: 67

gloomy sage
# burnt heath Ya let's try that

in between i have this error from Traefik

appwrite-traefik | time="2023-09-07T07:01:08Z" level=error msg="the router appwrite_realtime_wss@docker uses a non-existent resolver: dns"

hot swan
#

Hey,
Have you change the network name to this?

_APP_EXECUTOR_RUNTIME_NETWORK=runtimes

What value you have set as _APP_DOMAIN if none can you try set it as the target domain and if it's development then to your server IP.
Then reload everything and try again?

gloomy sage