Back

[Solved] Appwrite function cronjob execution fails.

  • 1
  • Self Hosted
  • Functions
deep-printerverse
12 Dec, 2023, 09:55

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.

TL;DR
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
12 Dec, 2023, 16:06

what's your code?

deep-printerverse
12 Dec, 2023, 16:47

My code as in what the function does? It just writes some values to google sheet using an API.

Binyamin
12 Dec, 2023, 16:52

Are you contacting any Appwrite services fron within your function?

deep-printerverse
12 Dec, 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
12 Dec, 2023, 17:30

Also on an unrelated note, is there a way to change the timezone for an Appwrite instance?

Binyamin
12 Dec, 2023, 17:41

As of now, not permanently You can try to change the server one

deep-printerverse
17 Dec, 2023, 07:38

[Solved] Appwrite function cronjob execution fails.

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