I am running into an error on self-hosted version 1.4.13. If I execute a function from the console, it runs successfully without any problems. But scheduling the function fails. Here are the relevant logs, the exception "Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection refused" happens around the time I have scheduled the function for.
Summary
Title: [Solved] Appwrite function cronjob execution fails.
- User initially experiencing issues with cronjob execution in Appwrite.
- User suggests trying to change the server.
- User also asks about changing the timezone for an Appwrite instance.
- User clarifies their code only uses APIs to fetch and write data to Google Sheets.
- User shares their code.
- User mentions encountering an error on the self-hosted version of Appwrite.
- User provides relevant logs showing an exception related to connection issues.
- No solution mentioned in the thread.
Solution: Unfortunately, there is no solution mentioned in the thread.
Drake
Dec 12, 2023, 16:06
what's your code?
deep-printerverse
Web Developer
Dec 12, 2023, 16:47
My code as in what the function does? It just writes some values to google sheet using an API.
Binyamin
Dec 12, 2023, 16:52
Are you contacting any Appwrite services fron within your function?
deep-printerverse
Web Developer
Dec 12, 2023, 16:54
None at all, it just uses one API to fetch data and another API to write data to google sheets. I just have a context.log and context.res.empty() at the end if everything is successful.
deep-printerverse
Web Developer
Dec 12, 2023, 17:30
Also on an unrelated note, is there a way to change the timezone for an Appwrite instance?
Binyamin
Dec 12, 2023, 17:41
As of now, not permanently
You can try to change the server one
deep-printerverse
Web Developer
Dec 17, 2023, 07:38
[Solved] Appwrite function cronjob execution fails.