Back

Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connec

  • 2
  • Functions
ianmont
5 Nov, 2023, 22:40

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

TL;DR
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
5 Nov, 2023, 22:40
ianmont
7 Nov, 2023, 17:03

Any idea what could be happening?

Drake
7 Nov, 2023, 18:01

anything in the docker logs for the executor container?

ianmont
7 Nov, 2023, 19:27

Is it the container called openruntimes/executor?

ianmont
7 Nov, 2023, 19:28

If that is the container, this is what the docker log show

Guille
7 Nov, 2023, 19:46

What are the settings of your client in the function?

Drake
7 Nov, 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
7 Nov, 2023, 19:53

do you mean runtime of the function or something like that? I didn't understand the question very well

Guille
7 Nov, 2023, 19:56

I meant your settings here:

TypeScript
client
   .setEndpoint('...')
   .setProject('...');
ianmont
7 Nov, 2023, 19:56

oh ok, does this error happen to other people or is it just happening to me?

ianmont
7 Nov, 2023, 19:56

let me check

ianmont
7 Nov, 2023, 19:57
Guille
7 Nov, 2023, 20:03

what does your function do? I'll try to replicate it

ianmont
7 Nov, 2023, 20:11

Thanks, It is complicated to replicate it but here is the code in case you want to check it out: https://pastebin.com/raw/365x42vT

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
7 Nov, 2023, 21:31

I just got this on a function execution too, The one before it worked, and so did the one after

Drake
8 Nov, 2023, 00:09

I'm pretty sure others too...including cloud. I experience random failures for my scheduled function too

ianmont
14 Nov, 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
14 Nov, 2023, 05:27

Couple days of randomly erroring out?

ianmont
15 Nov, 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
19 Nov, 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
2 Dec, 2023, 05:56

Hello, I would like to know if there is already a solution to this problem?

memoonlite
5 Dec, 2023, 13:30

I'm experiencing the same problem at the moment. Functions randomly fail with this error.

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