
In all cases, the functions are launched correctly, despite the errors.

only 1 runtime container is created

I try with fresh install of appwrite 1.3.4/6/7, only upload fonction, same things

what error?

Connection refused

on every execution?

Hard to say, locally now error is gone
appwrite-worker-functions | Fetched 1 functions...
appwrite-worker-functions | Iterating function: Database to Redis
appwrite-executor | Executing Runtime: production-64799a2654cc3fc38bba
appwrite-executor | Function executed in 0.010145902633667 seconds, status: completed
appwrite-worker-functions | Triggered function: databases.dID.collections.cID.documents.647aed18a9ce5746bffa.update

If I force docker compose -f docker-compose-appwrite.yml up -d --force-recreate
error returns
appwrite-executor | Build Stage completed in 1 seconds
appwrite-executor | Executing Runtime: production-64799a2654cc3fc38bba
appwrite-executor | [Error] Type: Exception
appwrite-executor | [Error] Message: An internal curl error has occurred within the executor! Error Msg: Connection refused
appwrite-executor | [Error] File: /usr/src/code/app/executor.php
appwrite-executor | [Error] Line: 541
appwrite-executor | Executing Runtime: production-64799a2654cc3fc38bba
appwrite-executor | [Error] Type: Exception
appwrite-executor | [Error] Message: An internal curl error has occurred within the executor! Error Msg: Connection refused
appwrite-executor | [Error] File: /usr/src/code/app/executor.php
appwrite-executor | [Error] Line: 541
appwrite-executor | Executing Runtime: production-64799a2654cc3fc38bba
appwrite-executor | Function executed in 1.1776671409607 seconds, status: completed
appwrite-worker-functions | Triggered function: databases.dID.collections.cID.documents.647aed18a9ce5746bffa.update

But I can see document updated on redis

perhaps the runtime containers are trying to exit so they aren't accepting new requests

Maybe... Do you think these errors aren't serious and can be ignored?

up to you. i'd look into somehow cleanly exiting

What could cause this exit? Because the runtime works, since it sends to redis 100% of the time.

Your force re create stops the executor which then tries to stop the runtime containers it's managing

From that you mean ? I wait for executor up before test it

maybe in your code somehow catch the kill signall and then stopping execution?

All the code is encapsulated in a try/catch

Catch only set isError=err.message

that won't do it. you would need to do something along the lines to https://stackoverflow.com/questions/43003870/how-do-i-shut-down-my-express-server-gracefully-when-its-process-is-killed.

I try with a blank function
module.exports = async function (req, res) {
res.json({
areDevelopersAwesome: true,
});
};
And have same behavior
appwrite-worker-functions | Fetched 1 functions...
appwrite-worker-functions | Iterating function: My Awesome Function
appwrite-executor | [Error] Type: Exception
appwrite-executor | [Error] Message: Runtime not found. Please create the runtime.
appwrite-executor | [Error] File: /usr/src/code/app/executor.php
appwrite-executor | [Error] Line: 469
appwrite-executor | Building container : production-647f670dba63ab3232e0
appwrite-executor | Build Stage completed in 0 seconds
appwrite-executor | Executing Runtime: production-647f670dba63ab3232e0
appwrite-executor | [Error] Type: Exception
appwrite-executor | [Error] Message: An internal curl error has occurred within the executor! Error Msg: Connection refused
appwrite-executor | [Error] File: /usr/src/code/app/executor.php
appwrite-executor | [Error] Line: 541

oh...perhaps the runtime container isn't actually ready yet before it's trying to be executed?

I can see {areDevelopersAwesome: true}
on Console > Functions > Executions > Logs
Or executor auto retry perhaps ?

it could be a tiny window where the runtime container is created, but the web server isn't actually up and ready yet

Everyone should reproduce in this case ? Let's just say it's a normal error...

[STANDBY] executor log Error but function works
Recommended threads
- Query.equal error
Hi guys. I'm using Appwrite Cloud, and I'm using version 21 of node-appwrite to benefit from transactions. The problem is I seem to be getting an error when I u...
- Invalid `success` param
Hi again, I've tried to set up the login process. However, I always get the message: `Invalid success param: URL host must be one of: localhost, xxx` I've alr...
- Is it possible to have multiple smtp on ...
I already have one in one project but is it possible to use different one in another?
