An internal curl error has occurred while starting runtime! Error Msg: Runtime already exists.\nError Code: 500
Can you give some additional context and details?
This error appears when I execute a function. After conducting several experiments, I’ve noticed that sometimes the function gets stuck in execution until a timeout error is displayed. Following this, it remains stuck in all executions for a certain period of time. However, if I stop the server and restart it, the function works fine again. I’m curious as to why this happens. Could it be related to cache or something similar? I’m also wondering if the _APP_FUNCTIONS_MAINTENANCE_INTERVAL, _APP_FUNCTIONS_INACTIVE_THRESHOLD, and _APP_MAINTENANCE_INTERVAL settings are related to this issue.
??
@Nour Could you also say if you are Self-Hosted or on the Cloud? Please use the tags in the posts so others can see more easily. For example:
Self-Hosted
What's the timing of things? Also, the executor logs around the time would be helpful
When I overloaded the function with numerous requests, all of them were executed synchronously at the same time. As a result, some of the executions received a 200 response, while others shows timeout error with a 500 response. After the function worker finished, if I tried to execute it again with a single call, it would get stuck in execution until a timeout error was displayed. This state would persist for a period of time, but if I restarted the server, it would work again.
??
Recommended threads
- 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...
- Function in Node.JS to monitor events ar...
Hello everyone. I'm creating my first Node.JS function, but I don't have much experience with node and javascript. I'm trying to create a function, that monito...