Back

[SOLVED] Unable to deploy functions: File not Found

  • 0
  • Functions
Zeke(Jafesu)
10 Oct, 2023, 02:16

Re-Running i get

TypeScript
[Error] Timestamp: 2023-10-10T02:16:02+00:00
[Error] Method: 
[Error] URL: /favicon.png
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Execution error: 
[Error] File: /usr/src/code/app/controllers/general.php
[Error] Line: 156``` in the logs
TL;DR
User is unable to deploy functions due to a "File not Found" error. User realizes the issue was with their docker login and clears it. However, there is still an issue with their code. Another user requests the logs and suggests checking the docker logs for the openruntimes-executor container. User tries recreating the containers but there's no change. Some users suggest upgrading to version 1.4.5 and checking if the compose file is correct. User mentions deploying the code through the UI and executing it via the console or custom domain. User confirms using version 1.4.4 and shares the function code.
Drake
10 Oct, 2023, 03:31

What version of Appwrite?

Drake
10 Oct, 2023, 03:31

You added a function domain?

Drake
10 Oct, 2023, 03:32

How did you execute the function?

Drake
10 Oct, 2023, 03:33

And what's your function code?

Zeke(Jafesu)
10 Oct, 2023, 10:13

1.4.4

Zeke(Jafesu)
10 Oct, 2023, 10:13

Yes

Zeke(Jafesu)
10 Oct, 2023, 10:13

Both by clicking the execute in console, and making a request to the custom domain

Zeke(Jafesu)
10 Oct, 2023, 10:14

I have tried multiple of the examples templates (the PDF generator, the starter function, and a custom) and all had the same results

Drake
10 Oct, 2023, 18:17

how exactly are you deploying the code?

Zeke(Jafesu)
11 Oct, 2023, 22:20

Through the UI, I choose one of the templates have it create a new git repository (or add to existing)

Drake
11 Oct, 2023, 23:26
Zeke(Jafesu)
12 Oct, 2023, 01:34

I'll upgrade to 1.4.5 and serve my compose if it's still broken

Zeke(Jafesu)
15 Oct, 2023, 02:40

Redeployed 1.4.5 and now getting a new error: Could not resolve host: appwrite-executor with status code 0\nError Code: 0

Zeke(Jafesu)
15 Oct, 2023, 02:41
Drake
15 Oct, 2023, 02:44

Please dm me your .env file

Zeke(Jafesu)
15 Oct, 2023, 03:58

sent

Drake
15 Oct, 2023, 04:16

Can you try recreating the containers?

TypeScript
docker compose down
docker compose up -d --remove-orphans
Zeke(Jafesu)
15 Oct, 2023, 04:20

I have done so, no change

Drake
15 Oct, 2023, 04:24

What are the docker logs for the openruntimes-executor container?

Drake
15 Oct, 2023, 04:24

What's docker ps -a show?

Drake
15 Oct, 2023, 04:30

@Zeke(Jafesu) DM me the logs instead please?

Zeke(Jafesu)
15 Oct, 2023, 05:13

Looks like the issue was my docker login. Clear that now executions are working. It's not liking my code now, but that I can figure out

Zeke(Jafesu)
15 Oct, 2023, 05:14

Thanks for the help

Drake
15 Oct, 2023, 19:24

[SOLVED] Unable to deploy functions: File not Found

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