I've noticed that just randomly I'll start getting appwrite-executer errors, I need to then do docker down and docker up to get the functions to work again.
It seems to work, then I'll get the error
Empty reply from server with status code 0\nError Code: 0
After I get that error every subsequent run gets this error
Could not resolve host: appwrite-executor with status code 0\nError Code: 0
Any idea on what I've done wrong to have this happen?
Also to add to this, I ran the update command to update from 1.3.8 -> 1.4.0 -> 1.4.1 -> 1.4.2. Self hosted on DigitalOcean.
same here
not sure why its happening randomly 🤔
I've had it happen twice, but I couldn't see anything that really connected them together.
Are you scheduling the function?
There was a bug, caused by not having the _APP_OPENSSL_LEY_V1 in the composer file. Not having it, eventually make the env vars end up being false.
The PR is already merged https://github.com/appwrite/appwrite/pull/6199
It's expected for 1.4.3, but you can manually apply this fix, to check if solves your problem
In my case it's http trigger
It's pretty bad because stuff like user creation in database is done through the cloud function and it constantly fails till I don't do docker compose up -d
For now it's fine again
Yes it's scheduled every 10 minutes. Will look into implementing this, thanks!
Try adding the fix, do you have any error in the console?
only see this
and sure will add the fix
what runtime do you use?
is it an old function or new?
New function that uses node 18, it's set on a schedule to run every 10 minutes.
can you share your code?
anything in the docker logs for your openruntimes-executor container or your runtime container?
is your function maybe timing out?
It's set for a 600 second timeout.
It seems to work fine but once it hits this error it will not work again until i restart the docker.
Recommended threads
- AppwriteException - Transaction with the...
I am using "node-appwrite" module and I have successfully created transaction id but when passing it to tablesDB.createRow function with some other required dat...
- Cannot create cloud function due to this...
As I try to deploy a new function to Github I get this error message: ``` Unable to clone code repository: fatal: ' ' is not a valid branch name hint: See `man ...
- How to use TS for creating appwrite func...
I was making a few appwrite functions but on doing the appwrite init setup process i always got main.js. Is there any way i can use TS?