Back

[SOLVED] Error while trying to deploy a funtions on self-hosted

  • 2
  • Self Hosted
  • Functions
thet3o
31 Aug, 2023, 08:40

Error -> Could not resolve host: appwrite-executor with status code 0 Endpoint generated -> 64f05106d0c7ca5ec194.functions.localhost

TL;DR
Issue: User encountered an error while trying to deploy a function on self-hosted. They tried changing the host to "http://executor/v1" but received the same error. They attempted to use a proxy but encountered another issue where the deployment was waiting indefinitely. User asked if changing the `_APP_EXECUTOR_HOST` environment variable to their hostname would work. Solution: User was advised to change the `_APP_EXECUTOR_HOST` in the `.env` file to `executor` instead of `http://appwrite-executor/v1`. User also needed to change the compose file. User confirmed they removed all Docker-related components, updated the
Drake
31 Aug, 2023, 18:59
  1. Did you do a clean install or did you upgrade?
  2. If you upgraded, how did you upgrade?
thet3o
31 Aug, 2023, 19:01

First I try upgrade following the docs, and didn't work, after I tried a clean install following always the docs but nothing

Drake
31 Aug, 2023, 19:09

how did you do a clean install? what happened during the clean install?

thet3o
31 Aug, 2023, 19:12

Because I'm in my local env, I totally removed images, volumes, containers and the generated appwrite folder, after that I used the installation command in the docs changing the version from 1.4.0 to 1.4.1

Drake
31 Aug, 2023, 19:15

how did you remove all the docker stuff?

Drake
31 Aug, 2023, 19:20

can you try changing the _APP_EXECUTOR_HOST env var to proxy?

thet3o
31 Aug, 2023, 19:30

I used the commands indicated in the docs, after that I checked that always was gone

thet3o
31 Aug, 2023, 19:31

I can try

thet3o
31 Aug, 2023, 19:31

Only I need to change the compose file, right?

Drake
31 Aug, 2023, 19:32

no, the .env file. actually make it executor

thet3o
31 Aug, 2023, 19:33

Ah ok ok, thanks

thet3o
31 Aug, 2023, 20:01

But if I change the _APP_EXECUTOR_HOST from http://appwrite-executor/v1 to my hostname, do it work? Or I must change it to proxy?

Drake
31 Aug, 2023, 20:04

no. it should be executor. the host is an internal docker container. not your appwrite instance

thet3o
31 Aug, 2023, 20:06

Ok, I'm trying to change it to executor

thet3o
31 Aug, 2023, 20:10

With setting it to executor the deployment of the function is waiting indefinitely

thet3o
31 Aug, 2023, 20:11

Now I'm trying with proxy

thet3o
31 Aug, 2023, 20:11

Same setting it to proxy

Abhishek
31 Aug, 2023, 20:18

Same error Could not resolve host: appwrite-executor with status code 0

Abhishek
31 Aug, 2023, 20:33

Working after changing it to http://executor/v1

thet3o
1 Sep, 2023, 07:03

Thank you, now it's working!

thet3o
1 Sep, 2023, 07:43

[SOLVED] Error while trying to deploy a funtions on self-hosted

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