Back

[SOLVED] Error Deployments

  • 0
  • Flutter
  • Functions
Farg0
28 Aug, 2023, 18:13

Docker Error: mv: cannot stat "/usr/code/'main.dart'": No such file or directory

TL;DR
The user encountered an error while deploying their functions. The error message is "Error: Method not found: 'start'". It seems like there was an issue with AOT compilation. The user tried to deploy the function using the command "appwrite deploy function", but it didn't work. They also tried initializing the function using "appwrite init function". The user received an error message indicating that the file "main.dart" was not found. Solution: The user should make sure that they have properly compiled their code and that the necessary files are present. They can also refer to the Appwrite documentation for more detailed instructions on deploying
Drake
28 Aug, 2023, 18:14
Farg0
28 Aug, 2023, 18:18

I do everything on this dock

Farg0
28 Aug, 2023, 18:19

Docker Error: mv: cannot stat "/usr/code/'main.dart'": No such file or directory

Drake
28 Aug, 2023, 18:19

Did you run this?

TypeScript
appwrite init function
appwrite deploy function
Farg0
28 Aug, 2023, 18:19

yes

Farg0
28 Aug, 2023, 18:19

what is this error?

Farg0
28 Aug, 2023, 18:19

Docker Error: mv: cannot stat "/usr/code/'main.dart'": No such file or directory

Drake
28 Aug, 2023, 18:20

What happened when you ran these?

Drake
28 Aug, 2023, 18:20

The code wasn't added to the tar correctly

Drake
28 Aug, 2023, 18:21

Or maybe the single quotes were a problem

Farg0
28 Aug, 2023, 18:22

this problem

Drake
28 Aug, 2023, 18:22

Please share the output of running these commands

Farg0
28 Aug, 2023, 18:23

C:\Users\notik\IdeaProjects\starter>appwrite init function ? What would you like to name your function? gooh ? What ID would you like to have for your function? unique() ? What runtime would you like to use? Dart (dart-2.17) ✓ Success

Farg0
28 Aug, 2023, 18:25

C:\Users\notik\IdeaProjects\starter>appwrite deploy function ? Which functions would you like to deploy? ✓ Success Deployed 0 functions

Drake
28 Aug, 2023, 18:32

You didn't deploy any function. Select the gooh function to deploy

Farg0
28 Aug, 2023, 18:39

thank you very much, I finally understood what and how

Farg0
28 Aug, 2023, 18:40

everything is very confusing and broken GUI

Farg0
28 Aug, 2023, 18:41

whoever invented it can write quests and earn a lot of money from it

Drake
28 Aug, 2023, 19:54

Are you referring to the functions deployment or is there something else?

Farg0
28 Aug, 2023, 20:26

yes deployment functions

Drake
28 Aug, 2023, 21:34

Thanks for the feedback. All of it is going to change in 1.4 so hopefully it's smoother then

Anonymouslove
16 Sep, 2023, 07:12

Docker Error: Info: Compiling with sound null safety server.dart:37:27: Error: Method not found: 'start'. await user_code.start(request, response); ^^^^^ Error: AOT compilation failed

Drake
16 Sep, 2023, 14:51

If you're still having trouble after reading the thread, please create a new post

Drake
16 Sep, 2023, 14:51

[SOLVED] Error Deployments

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