Back

No such file or directory

  • 1
  • Functions
Harsh
11 Oct, 2023, 03:18

I took reference of node meilisearch template

TL;DR
User is experiencing an error "No such file or directory" when deploying their code in Appwrite cloud. They have tried deploying the code locally and are still encountering the same error. The user has tried different methods such as using the CLI and creating an archive for deployment. Other users suggest using a starter template and ensuring it works before modifying the code. Possible issue could be with the virtual path or the way the archive was created. One user mentions a potential problem with the directory. Another user has created a function in PHP using a reference of a node meilisearch template. Solution: It is recommended to start with a working starter
Drake
11 Oct, 2023, 03:19

And? What did you do exactly?

Harsh
11 Oct, 2023, 03:22

Installed Appwrite locally and prepared a tar.gz of the directory

Harsh
11 Oct, 2023, 03:22

Then created a function for it in php

Drake
11 Oct, 2023, 03:23

What directory?

Harsh
11 Oct, 2023, 03:23

Sync with meilisearch

Harsh
11 Oct, 2023, 03:24

Someone told me that there might be issue with virtual path

Drake
12 Oct, 2023, 02:03

How are you deploying the function? Did you manually create an archive and upload in the Appwrite console? If so, something might have been wrong with how you created the archive

Drake
12 Oct, 2023, 02:04

The best thing to do is start with the starter template whether on git or the CLI. Deploy that and make sure that works. Then, iterate on the code

Harsh
12 Oct, 2023, 02:51

Ok will try that

Harsh
19 Oct, 2023, 18:17

anyone?

Drake
20 Oct, 2023, 01:37

Did you use the CLI to initialize the code?

Harsh
20 Oct, 2023, 03:27

Yes

Drake
20 Oct, 2023, 03:44

What exactly did you do?

Harsh
20 Oct, 2023, 03:44

Appwrite init project

Harsh
20 Oct, 2023, 03:45

Appwrite init functions

Harsh
20 Oct, 2023, 03:45

Appwrite deploy functions

Drake
20 Oct, 2023, 03:46

And what's the function code that was deployed?

Drake
20 Oct, 2023, 03:47

And what's the error now?

Harsh
20 Oct, 2023, 06:32

This code

Harsh
20 Oct, 2023, 06:33

And same error

Harsh
20 Oct, 2023, 06:37

Can you perform the same operation with the code above? In your system locally

Harsh
20 Oct, 2023, 06:37

Coz I deployed the same in appwrite cloud

Harsh
20 Oct, 2023, 06:37

And getting the same error

Harsh
20 Oct, 2023, 06:38

There might be some mistakes in my utils.php code

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