I am currently on Appwrite 1.2.0 the cli version is 1.2.1 The dart sdk is 2.17.0
When i create a function ( a fresh one, not change at all ), the build fails, here is the log (attached)
Hi, let me have a look
Ok ok no pb
hi, any updates?
Apologies for being late regarding this, are you running docker on windows? also can you please make sure that Appwrite is in its latest version?
i don't think it is a windows machine... It is an image from GitPod, Appwrite is not at the latest version I will try upgrading and see
AOT compilation failed error might hint that the memory dedicated to the function is not enough. Can you go to your environment variables and set _APP_FUNCTIONS_MEMORY and _APP_FUNCTIONS_MEMORY_SWAP to a number you want? please not the values are in MB so maybe try assigning 2048 MB? by default they are set to 0. If this does not work, let me know because then it might not be a memory issue
ok. ok let me do this now
The current values were
_APP_FUNCTIONS_MEMORY=256
_APP_FUNCTIONS_MEMORY_SWAP=256
Changed to 2048...
Worked like a charm π
but isn't 2048MB a lil too much π [edit] Changed the values to 850... it has been building for the last 20min ......
I think that giving a value of 2048 might be too much ? Running on NodeJs works with 256.. Do you think it is better to keep it at 256 and use node instead ?
you could try 1024 to see if it works. dart has to compile to binary so it takes a bit more memory to build, but, when it runs, it's faster than node
ok ok
will do that now
Yes build time was 15seconds with 1024 I guess it is cool then π
[SOLVED] Cannot deploy functions from the CLI on dart environment
Recommended threads
- Broken Typeform Link for Appwrite Heroes...
I was trying to apply for the Appwrite Heroes program because I am planning to host a meetup for my local developer community on backend architecture using Appw...
- Large File Upload Issue with S3/RustFS
Hi, we are seeing a reproducible large upload failure with Appwrite 1.8.0 using S3-compatible storage through RustFS. A file upload of about 10.7 GB consistent...
- Terraform tablesdb_column type inconsist...
Hi, I am trying out the new terraform provider for appwrite that was introduced a few weeks back. As a first step I wanted to import our existing databases into...