Skip to content
Init is coming / May 19 - 23
Back

Appwrite 1.4.1: Function/executor

  • 0
  • Self Hosted
  • Functions
  • Web
Elie Waked
6 Sep, 2023, 10:36

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

TL;DR
The user is experiencing issues with the Appwrite 1.4.1 function/executor. They have tried rolling back to version 1.3.8 but still have problems. They have made changes to the network and hostname settings but are still receiving DNS errors. They also encounter errors related to Traefik and multiple internal curl errors. The user is advised to change the network name to `_APP_EXECUTOR_RUNTIME_NETWORK=runtimes` and set the `_APP_DOMAIN` value to the target domain. They are also encouraged to modify the network name and inspect the `runtimes` network. The user confirms that custom domains have
Binyamin
6 Sep, 2023, 16:07
  • How are you trying to execute the function?
  • Have you added and verified the custom domain?
Drake
6 Sep, 2023, 17:55

what is your _APP_EXECUTOR_HOST env var set to?

Elie Waked
7 Sep, 2023, 06:00

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

Elie Waked
7 Sep, 2023, 06:01

manual execution from the Appwrite Panel... it is a setup script for our webapp which setup the env and database

Drake
7 Sep, 2023, 06:02

Can you run docker inspect appwrite_runtimes to see what's in that network?

Elie Waked
7 Sep, 2023, 06:02

verified domains are added as custom domains and issed certification on the nginx side

Elie Waked
7 Sep, 2023, 06:03

docker inspect appwrite_runtimes [] Error: No such object: appwrite_runtimes

Elie Waked
7 Sep, 2023, 06:03

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" } } ]

Elie Waked
7 Sep, 2023, 06:05

shall i modify the network name

Drake
7 Sep, 2023, 06:05

Ya let's try that

Elie Waked
7 Sep, 2023, 06:05

for the executor and OPEN_RUNTIMES_NETWORK

Elie Waked
7 Sep, 2023, 06:09

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

Elie Waked
7 Sep, 2023, 07:01

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"

Binyamin
7 Sep, 2023, 12:34

Hey, Have you change the network name to this?

TypeScript
_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?

Elie Waked
7 Sep, 2023, 13:23

yes i did change the network for both runtime and openruntime without luck even host name i put openruntimes-executor so that it found it the doamin is full set for public domain and i m still receiving dns error

Elie Waked
7 Sep, 2023, 13:24

i rolled back to 1.3.8 i have a project to deliver, i will wait the fixes

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