Back

[SOLVED] File Not Found error on Function deploy on self hosted Appwrite install

  • 0
  • Self Hosted
  • Functions
Vishal Lohar
1 Aug, 2023, 03:24

Hi, I have self-hosted my appwrite. I was trying to deploy a new function and once deployed the process failed with File not found error.

I didn't even change the files created by the appwrite init function command. I don't know what the problem is. Can anyone help?

TL;DR
User is reporting a "File Not Found" error when trying to deploy a new function on a self-hosted Appwrite installation. They did not modify any files after using the "appwrite init" command. They are using the Node.js runtime and the build process failed with a 404 error. No logs were recorded. User confirms that the code exists locally in the correct folder and the path matches the one in the appwrite.json file. They are not using Docker Desktop and have installed Appwrite using the 1-click droplet deploy on Digital Ocean. No solution provided in the thread.
Drake
1 Aug, 2023, 03:30

How did you deploy?

Vishal Lohar
1 Aug, 2023, 03:32

I used the command appwrite deploy function

Drake
1 Aug, 2023, 03:33

Did you modify anything after init?

Vishal Lohar
1 Aug, 2023, 03:33

No

Drake
1 Aug, 2023, 03:33

Which runtime?

Vishal Lohar
1 Aug, 2023, 03:33

Node js

Drake
1 Aug, 2023, 03:37

So it didn't build successfully?

Vishal Lohar
1 Aug, 2023, 03:41

Yes, the build failed.```{ "message": "Not Found", "code": 404, "type": "general_route_not_found", "version": "1.3.8" }``

Drake
1 Aug, 2023, 03:43

Uhh what is that?

Vishal Lohar
1 Aug, 2023, 03:43

Raw data of the build error

Drake
1 Aug, 2023, 03:45

There might be a bug with that raw data button...what do you actually see for the build and build logs?

Vishal Lohar
1 Aug, 2023, 03:46

Logs: No logs recorded Errors: File Not Found

Drake
1 Aug, 2023, 03:48

Can you share a screenshot of the whole page?

Vishal Lohar
1 Aug, 2023, 03:50
Vishal Lohar
1 Aug, 2023, 03:51
Drake
1 Aug, 2023, 03:52

So you see the code locally in your folder right? And the path matches the path in the appwrite.json?

Vishal Lohar
1 Aug, 2023, 03:52

Yes

Drake
1 Aug, 2023, 03:53

Are you using docker desktop?

Vishal Lohar
1 Aug, 2023, 03:53

No, I have hosted it on digital ocean

Drake
1 Aug, 2023, 03:53

How'd you install docker?

Vishal Lohar
1 Aug, 2023, 03:54

I used the appwrite image

Drake
1 Aug, 2023, 03:55

You mean the 1 click droplet deploy?

Vishal Lohar
1 Aug, 2023, 03:56

Yes

Drake
1 Aug, 2023, 03:57

Weird πŸ˜΅β€πŸ’«

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