Back

Error while deploying function in 0.13.x version

  • 0
  • Functions
Namka
22 Sep, 2023, 07:02

When I deploying function using CLI I experienced that errors: How to resolve that kind of error Docker Error: tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.provenance' tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.provenance' Info: Compiling with sound null safety server.dart:30:13: Error: Method not found: 'start'. await user_code.start(request, response); ^^^^^ Error: AOT compilation failed Generating AOT kernel dill failed! Resolving dependencies...

  • collection .0 (.0 available)
  • matcher .12 (.16 available)
  • meta .0
  • path .3
  • pub_semver .2 (.4 available)
  • pubspec .0
  • quiver .0 (.1 available)
  • source_span .1 (.0 available)
  • stack_trace .0 (.1 available)
  • string_scanner .1 (.0 available)
  • term_glyph .1
  • uri .0
  • yaml .1 (.2 available) Downloading pubspec .0... Downloading uri .0... Downloading yaml .1... Downloading string_scanner .1... Downloading path .3... Downloading pub_semver .2... Downloading quiver .0... Downloading source_span .1... Downloading term_glyph .1... Downloading collection .0... Downloading matcher .12... Downloading stack_trace .0... Downloading meta .0... Changed dependencies! found user package appwrite_function added user package as dependency to server. Updated server import of user code Resolving dependencies...
  • appwrite_function .0 from path user_code
  • async .0 (.0 available)
  • collection .0 (.0 available)
TL;DR
User is experiencing an error when deploying a function in version 0.13.x. The error message suggests that the AOT compilation failed and the method 'start' was not found. The user asks for a solution to resolve this error. Solution: It is recommended to make sure that the `appwrite.json` file contains all the necessary information and variables. You can deploy the function using `appwrite deploy function` command. Additionally, make sure to initialize the function using `appwrite init function`. If the error persists, it may be related to a Docker error. Check if there are any unknown extended header keywords in the error
Drake
22 Sep, 2023, 18:19

When I deploying function using CLI

Are you running appwrite functions createDeployment?

Namka
22 Sep, 2023, 18:20

Yes

Drake
22 Sep, 2023, 18:22

you may have specified an incorrect code or entrypoint param. Did you initialize your funciton using appwrite init function?

Namka
22 Sep, 2023, 18:23

Yes

Drake
22 Sep, 2023, 18:29

so you should have an appwrite.json and your function should be in there. I highly recommend deploying your function with appwrite deploy function after making sure the appwrite.json has everything and is correct (including variables)

Namka
22 Sep, 2023, 18:46

Mm okay thanks

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