[SOLVED] Cannot deploy functions from the CLI on dart environment
- 0
- Resolved
- Self Hosted
- Functions
- Tools
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
- GB Hours IS NOT resetting
Hi, I was checking my usage and noticed that all of my usage quotas were reset on August 20, 2026, when my billing cycle renewed. Everything else appears to ha...
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...
- OAuth Missing redirect URL
Hello all, on a Flutter mobile app with latest Appwrite dependency (25.4.0) I always got "Missing redirect URL" - "Your OAuth login flow is missing a proper red...