Back

Failing to execute functions: Error Msg: Connection reset by peer

  • 0
  • Self Hosted
  • Functions
  • Web
6lackknight
18 Mar, 2023, 12:13

I started seeing this error pop up on my function logs a little over an hour ago. Which is weird because I was only pushing deployments from cli and didn’t change anything on the appwrite server.

The full error is:

An internal curl error has occurred within the executor! Error Msg: Connection reset by peer

And the appwrite-executor logs have:

Executing Runtime: nation-64133e7f235385826ba4 [Error] Type: Exception [Error] Message: An internal curl error has occurred within the executor! Error Msg: Connection refused [Error] File: /usr/src/code/app/executor.php [Error] Line: 541

How do I resolve this? All my other functions are working and executing as expected.

TL;DR
The user is experiencing an error message saying "Connection reset by peer" when executing a Node.js function in Appwrite. The function fails immediately every time it runs. The issue started right after creating the new function and has been consistently occurring. The user did not make any changes to the Appwrite server. The error message includes "An internal curl error has occurred within the executor! Error Msg: Connection reset by peer" and the executor logs show a similar error message. A user suggests waiting for the next version to resolve the bug. No specific solution is mentioned in the thread.
rafagazani
18 Mar, 2023, 13:34

Hello it's a bug, let's wait for the next version https://github.com/appwrite/appwrite/issues/5233

6lackknight
19 Mar, 2023, 09:17

Sure thanks. Is there a release date?

Meldiron
19 Mar, 2023, 09:27

@6lackknight can you please explain in details when this occured? Was it right after deployment, or some time after? Did it happen multiple times or just once?

6lackknight
19 Mar, 2023, 09:32

My deployment had been working fine all this time, it’s been up for a little over a month.

This started when I created a new NodeJs function on Thursday

6lackknight
19 Mar, 2023, 09:34

It happens every time the function runs and they usually fail immediately.

Drake
19 Mar, 2023, 15:27

The issue referenced is a case where the maintenance task kills the runtime container. If you're having the problem every time you execute the function, it might be unrelated to the issue. How long does your function take to run? What's your code?

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