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?
Summary
Users are experiencing appwrite-executer errors randomly and have to restart Docker to get the functions to work again. The specific error is "Empty reply from server with status code 0" followed by "Could not resolve host: appwrite-executor with status code 0." There is a bug causing this issue, and a fix has been merged in a PR. The fix will be included in version 1.4.3, but users can manually apply the fix to see if it solves the problem. The fix involves adding `_APP_OPENSSL_LEY_V1` to the composer file. The issue is affecting scheduled functions as well
Kenny
Moderator
Sep 13, 2023, 13:43
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.
Infinil
Sep 13, 2023, 15:17
same here
Infinil
Sep 13, 2023, 15:18
not sure why its happening randomly 🤔
Kenny
Moderator
Sep 13, 2023, 15:18
I've had it happen twice, but I couldn't see anything that really connected them together.
Guille
Sep 13, 2023, 16:19
Are you scheduling the function?
Guille
Sep 13, 2023, 16:24
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.
It's expected for 1.4.3, but you can manually apply this fix, to check if solves your problem
Infinil
Sep 13, 2023, 17:12
In my case it's http trigger
Infinil
Sep 13, 2023, 17:14
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
Infinil
Sep 13, 2023, 17:14
For now it's fine again
Kenny
Moderator
Sep 13, 2023, 17:38
Yes it's scheduled every 10 minutes. Will look into implementing this, thanks!
Guille
Sep 13, 2023, 17:51
Try adding the fix, do you have any error in the console?
Infinil
Sep 13, 2023, 17:57
only see this
Infinil
Sep 13, 2023, 17:57
and sure will add the fix
Drake
Sep 13, 2023, 19:43
what runtime do you use?
Drake
Sep 13, 2023, 19:43
is it an old function or new?
Kenny
Moderator
Sep 13, 2023, 19:45
New function that uses node 18, it's set on a schedule to run every 10 minutes.