First of all there's no error in my function codes ,it was working fine on the previous appwrite version , this issue happened when i update appwrite last night:
Whenever i create a deployment within CLI its just failed to build after 15-22 seconds,
(I also tried the starter appwrite fucntion code.)
Hopefully someone could help.
Summary
Issue: Cloud Function deployment fails after updating Appwrite
Error: Docker Error: Killed
Possible solution:
1. Check if the memory limits for the function are set properly in the .env file.
2. Increase the values of _APP_FUNCTIONS_MEMORY and _APP_FUNCTIONS_MEMORY_SWAP environment variables.
3. Run the command "docker compose exec appwrite vars" to verify the values of the environment variables.
4. Check if there is enough RAM available on the server.
5. If running on a VPS, ensure sufficient RAM for Appwrite and functions.
6. Check the logs of the appwrite-executor docker instance for more
SenZi
Feb 22, 2023, 17:04
Did you check the logs of your appwrite-executor docker instance? That usually seem to give some information when a build fails or times out.
It seems like your docker instance is being killed. Probably running out of memory, did you set functions memory limit using the _APP_FUNCTIONS_MEMORY env variable? or maybe try providing some swap memory
hamed
Rank 3: Container
Feb 22, 2023, 17:17
No, it's all set to the default value. haven't mess with them at all.
SenZi
Feb 22, 2023, 17:17
Are you using a vps? is there enough ram for appwrite and functions?
hamed
Rank 3: Container
Feb 22, 2023, 17:19
Im running it locally, i have 8g ram ,docker used 3.5 i think so there's no lack of memory
Drake
Feb 22, 2023, 17:26
You might want to increase the following environment variables: