Im self hosting on Digital Ocean an appwrite instance, and i have a function that has a CRON Syntax for running every 10 minutes, and everything seems fine but sometimes the function fails with a "Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection refused\nError Code: 500" Error
It's random, sometimes it happens and other times it doesn't, also when I run a function that hasn't been run for many hours, that error appears, however if I run it again it is corrected, it's like it only happens certain times
Summary
Multiple users are experiencing random failures with the error "Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection refused". The issue seems to occur on cold starts or after long periods of inactivity. Some users have noticed a decrease in errors, but they still occur every 6 hours or so. It is unclear if there is a solution or a new version of appwrite that fixes the problem. It is difficult to replicate the error, but one user has provided their code for reference. The user asks for help in diagnosing the issue and shares their client settings. It is unknown if others are
ianmont
Rank 3: Container
Nov 5, 2023, 22:40
ianmont
Rank 3: Container
Nov 7, 2023, 17:03
Any idea what could be happening?
Drake
Admin
Nov 7, 2023, 18:01
anything in the docker logs for the executor container?
ianmont
Rank 3: Container
Nov 7, 2023, 19:27
Is it the container called openruntimes/executor?
ianmont
Rank 3: Container
Nov 7, 2023, 19:28
If that is the container, this is what the docker log show
Guille
Nov 7, 2023, 19:46
What are the settings of your client in the function?
Drake
Admin
Nov 7, 2023, 19:51
this has been a pesky bug. im really not sure why it happens and the logs don't really give any more detail 😕
ianmont
Rank 3: Container
Nov 7, 2023, 19:53
do you mean runtime of the function or something like that? I didn't understand the question very well
Guille
Nov 7, 2023, 19:56
I meant your settings here:
JavaScript
client
.setEndpoint('...')
.setProject('...');
ianmont
Rank 3: Container
Nov 7, 2023, 19:56
oh ok, does this error happen to other people or is it just happening to me?
ianmont
Rank 3: Container
Nov 7, 2023, 19:56
let me check
ianmont
Rank 3: Container
Nov 7, 2023, 19:57
Guille
Nov 7, 2023, 20:03
what does your function do? I'll try to replicate it
The function receives a payload with the userId and searches in a collection of "plans" for its document, then searches for the user document in a collection of "users", then checks if the user has a document within a collection called "requests" and it does not exist, it create a document in that collection and returns the res.json({})
ideclon
Nov 7, 2023, 21:31
I just got this on a function execution too, The one before it worked, and so did the one after
Drake
Admin
Nov 8, 2023, 00:09
I'm pretty sure others too...including cloud. I experience random failures for my scheduled function too
ianmont
Rank 3: Container
Nov 14, 2023, 05:19
It's been a couple of days and I would like to know if this error already has a solution or a new version of appwrite that fixes it?
Drake
Admin
Nov 14, 2023, 05:27
Couple days of randomly erroring out?
ianmont
Rank 3: Container
Nov 15, 2023, 03:11
The errors have already decreased a little, but some executions still happen to fail for no reason, but now it is every 6 hours or so that some execution randomly fails
ideclon
Nov 19, 2023, 19:15
It seems to happen for me on cold starts - seems to only be some functions, but those that do, always fail with this error on every cold start - another excecution immediately after works fine.
ianmont
Rank 3: Container
Dec 2, 2023, 05:56
Hello, I would like to know if there is already a solution to this problem?
memoonlite
Rank 2: Process
Dec 5, 2023, 13:30
I'm experiencing the same problem at the moment. Functions randomly fail with this error.