Back

Error Msg: Could not resolve host in Cloud function

  • 0
  • Self Hosted
  • Functions
Kevins35
17 Jan, 2024, 12:02

I have a Cloudfunction on my self hosted Appwrite instance (Version 1.3.8) The Problem is, that everytime i try to execute this function i get the following error:

An internal curl error has occurred within the executor! Error Msg: Could not resolve host: 65a7a67db738f4a3b9df-65a7bf52af9ef6088df1

Does somebody have a clue as to why this is the case?

TL;DR
Title: Error Msg: Could not resolve host in Cloud function Issue: When trying to execute a Cloud function on a self-hosted Appwrite instance, an internal curl error occurs with the message "Could not resolve host: 65a7a67db738f4a3b9df-65a7bf52af9ef6088df1" Solution: 1. Confirm that both servers are running the same version of Appwrite (1.3.8). 2. Ensure that the function code is new and not an old one. 3. Check the docker logs for the `appwrite-executor` service
D5
17 Jan, 2024, 12:05

What's the runtime? (language and version)

D5
17 Jan, 2024, 12:06

What do you get in docker logs for openruntimes-executor? You can get them by running this command:

TypeScript
docker compose logs openruntimes-executor
Kevins35
17 Jan, 2024, 12:10

Im using dart-2.17

Kevins35
17 Jan, 2024, 12:13

running the command you gave results in: no such service: openruntimes-executor

D5
17 Jan, 2024, 12:15

Where are you running it?

D5
17 Jan, 2024, 12:16

Are you sure it's inside your appwrite installation folder?

Kevins35
17 Jan, 2024, 12:16

in the folder with the docker compose and .env files

D5
17 Jan, 2024, 12:16

Oh, sorry

D5
17 Jan, 2024, 12:16

I didn't saw it was 1.3.8

D5
17 Jan, 2024, 12:16

🤦‍♂️

D5
17 Jan, 2024, 12:18

In such case, run: docker compose logs appwrite-executor

Kevins35
17 Jan, 2024, 12:20

appwrite-executor | [Error] File: /usr/src/code/app/executor.php appwrite-executor | [Error] Line: 544 appwrite-executor | Building container : 65a7a67db738f4a3b9df-65a7bf52af9ef6088df1 appwrite-executor | Build Stage completed in 69 seconds appwrite-executor | [Error] Type: Exception appwrite-executor | [Error] Message: Runtime not found. Please create the runtime. appwrite-executor | [Error] File: /usr/src/code/app/executor.php appwrite-executor | [Error] Line: 469 appwrite-executor | Building container : 65a7a67db738f4a3b9df-65a7bf52af9ef6088df1 appwrite-executor | Build Stage completed in 2 seconds appwrite-executor | Executing Runtime: 65a7a67db738f4a3b9df-65a7bf52af9ef6088df1 appwrite-executor | [Error] Type: Exception appwrite-executor | [Error] Message: An internal curl error has occurred within the executor! Error Msg: Could not resolve host: 65a7a67db738f4a3b9df-65a7bf52af9ef6088df1 appwrite-executor | [Error] File: /usr/src/code/app/executor.php appwrite-executor | [Error] Line: 544

Kevins35
17 Jan, 2024, 12:20

Thats the output

D5
17 Jan, 2024, 12:22

The function is new or is it an old one?

Kevins35
17 Jan, 2024, 12:24

i copied the function code from another server, that is using it succesffully. I tried a few builds already on the new server but otherwise the function is "new"

D5
17 Jan, 2024, 12:24

Both servers are running the same appwrite version?

Kevins35
17 Jan, 2024, 12:24

Both are running 1.3.8 yes

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