Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connec
- 2
- Functions
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
Any idea what could be happening?
anything in the docker logs for the executor container?
Is it the container called openruntimes/executor?
If that is the container, this is what the docker log show
What are the settings of your client in the function?
this has been a pesky bug. im really not sure why it happens and the logs don't really give any more detail π
do you mean runtime of the function or something like that? I didn't understand the question very well
I meant your settings here:
client
.setEndpoint('...')
.setProject('...');
oh ok, does this error happen to other people or is it just happening to me?
let me check
what does your function do? I'll try to replicate it
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({})
I just got this on a function execution too, The one before it worked, and so did the one after
I'm pretty sure others too...including cloud. I experience random failures for my scheduled function too
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?
Couple days of randomly erroring out?
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
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.
Hello, I would like to know if there is already a solution to this problem?
I'm experiencing the same problem at the moment. Functions randomly fail with this error.
Recommended threads
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...