Back

Could not resolve host: appwrite-executor / File not found

  • 1
  • Self Hosted
  • Functions
QuadWord
2 Sep, 2023, 09:19

Created a function based on the quickstart "Starter" template. Deploying the function terminated with: Could not resolve host: appwrite-executor with status code 0

after changing the .env from _APP_EXECUTOR_HOST=http://appwrite-executor/v1 to _APP_EXECUTOR_HOST=http://executor/v1

as suggested in other posts and https://github.com/appwrite/appwrite/pull/6098/files

the build seems to work but then terminates with:

"File Not Found"

Executor Logs show: `[31m[Error] Type: Exception [Error] Message: File Not Found [Error] File: /usr/local/app/http.php [Error] Line: 605 [Error] Type: Exception [Error] Message: Runtime not ready. Error Msg: []

Error: No such container: executor-64f06b5dd83d650d0b59-64f2fbf63e233b55acd8  [Error] File: /usr/local/app/http.php [Error] Line: 319`

Note: https://discord.com/channels/564160730845151244/1147311089135132703 seems like a similar (probably the same) issue.

TL;DR
User is experiencing an issue with the Appwrite platform. The error initially occurred as "Could not resolve host: appwrite-executor with status code 0" and later changed to "File not found." The user tried changing the _APP_EXECUTOR_HOST in the .env file but the issue persisted. Other users in the support thread are also experiencing the same problem. The solution proposed is to edit the docker-compose.yml file and add the volumes section for the appwrite-worker-builds service. There is no indication of a resolution or fix for the issue at this time.
Joshi
2 Sep, 2023, 11:07

I have the save problem.

QuadWord
3 Sep, 2023, 12:51

I am still stuck. Did anyone get 1.4.1 Quickstart Functions to work using the Dashboard/Console in a self-hosted environment and/or is this issue on the Radar for 1.4.2 ?

Drake
3 Sep, 2023, 20:33

Clean install? I was able to get the starter to deploy with git integration on 1.4.1

Drake
3 Sep, 2023, 20:34

Do you see the runtime if you run docker ps -a?

QuadWord
3 Sep, 2023, 20:40
QuadWord
3 Sep, 2023, 20:41

I can deploy a function in manual mode uploading a tar. it gets build and executed. Just the Git-Integration + Starter Example fails with the error above.

Drake
3 Sep, 2023, 20:42

Doesn't look like the a runtime was started. What are the executor docker logs? And maybe the worker builds container logs too

QuadWord
3 Sep, 2023, 20:44

you see the executer error in my intial post.

QuadWord
3 Sep, 2023, 20:44

it is from the log.

QuadWord
3 Sep, 2023, 20:46
Drake
3 Sep, 2023, 20:46

Are you running from a 1.4.1 clean install?

QuadWord
3 Sep, 2023, 20:49

yes. clean install + the fix for the initial github integration we discussed (missing checkbox+.psa copy-paste).

QuadWord
3 Sep, 2023, 20:49

appwrite-worker-funcions:

QuadWord
3 Sep, 2023, 20:50

only 2 functions. one is deployed manually and it runs just fine. One is from the Github Integration which builds, but then fails.

QuadWord
3 Sep, 2023, 20:51

you can see the running function on my custom domain: test.quadword.net

QuadWord
3 Sep, 2023, 20:51

it is the same example.

QuadWord
3 Sep, 2023, 20:52

node-18

QuadWord
3 Sep, 2023, 20:54

I also talked with @Joshi . He has exactly the same problem. After fixing the initial GitApp integration (missing checkbox+.psa copy-paste) he gets exactly the same errors: first the "executer not found" error and the function did not even build, then after changing _APP_EXECUTOR_HOST=http://executor/v1 the function did build but fails after the build with "File not found"

Drake
3 Sep, 2023, 21:23

ugh...sorry...open up your docker-compose.yml file and go to the appwrite-worker-builds: service. add the volumes section like:

TypeScript
  appwrite-worker-builds:
    image: appwrite/appwrite:1.4.1
    entrypoint: worker-builds
    <<: *x-logging
    container_name: appwrite-worker-builds
    restart: unless-stopped
    networks:
      - appwrite
    depends_on:
      - redis
      - mariadb
    volumes:
      - appwrite-functions:/storage/functions:rw
      - appwrite-builds:/storage/builds:rw
    environment:
Drake
3 Sep, 2023, 21:24

cc @Joshi

Drake
3 Sep, 2023, 21:24

that's weird it works with manual upload though..

QuadWord
3 Sep, 2023, 21:29
QuadWord
3 Sep, 2023, 21:29

Thanks πŸ™‚

Joshi
4 Sep, 2023, 08:32

Thanks. It works great now πŸ‘

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