Back

1.4.2 Function Appwrite-Executer

  • 0
  • Functions
Kenny
13 Sep, 2023, 13:42

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?

TL;DR
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
13 Sep, 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
13 Sep, 2023, 15:17

same here

Infinil
13 Sep, 2023, 15:18

not sure why its happening randomly 🤔

Kenny
13 Sep, 2023, 15:18

I've had it happen twice, but I couldn't see anything that really connected them together.

Guille
13 Sep, 2023, 16:19

Are you scheduling the function?

Guille
13 Sep, 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.

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

Infinil
13 Sep, 2023, 17:12

In my case it's http trigger

Infinil
13 Sep, 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
13 Sep, 2023, 17:14

For now it's fine again

Kenny
13 Sep, 2023, 17:38

Yes it's scheduled every 10 minutes. Will look into implementing this, thanks!

Guille
13 Sep, 2023, 17:51

Try adding the fix, do you have any error in the console?

Infinil
13 Sep, 2023, 17:57

only see this

Infinil
13 Sep, 2023, 17:57

and sure will add the fix

Drake
13 Sep, 2023, 19:43

what runtime do you use?

Drake
13 Sep, 2023, 19:43

is it an old function or new?

Kenny
13 Sep, 2023, 19:45

New function that uses node 18, it's set on a schedule to run every 10 minutes.

Drake
13 Sep, 2023, 19:56

can you share your code?

Drake
13 Sep, 2023, 20:01

anything in the docker logs for your openruntimes-executor container or your runtime container?

Drake
13 Sep, 2023, 20:02

is your function maybe timing out?

Kenny
13 Sep, 2023, 20:12

It's set for a 600 second timeout.

Kenny
13 Sep, 2023, 20:13

It seems to work fine but once it hits this error it will not work again until i restart the docker.

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