My cloud functions no longer build. I have tried creating a new one leaving everything default, with no luck. This is the build log:
Docker Error: Killed
Resolving dependencies...
+ collection 1.17.0 (1.18.0 available)
+ matcher 0.12.12 (0.12.16 available)
+ meta 1.9.1
+ path 1.8.3
+ pub_semver 2.1.4
+ pubspec 2.3.0
+ quiver 3.2.1
+ source_span 1.9.1 (1.10.0 available)
+ stack_trace 1.10.0 (1.11.1 available)
+ string_scanner 1.1.1 (1.2.0 available)
+ term_glyph 1.2.1
+ uri 1.0.0
+ yaml 3.1.1 (3.1.2 available)
Downloading pubspec 2.3.0...
Downloading uri 1.0.0...
Downloading yaml 3.1.1...
Downloading string_scanner 1.1.1...
Downloading path 1.8.3...
Downloading quiver 3.2.1...
Downloading pub_semver 2.1.4...
Downloading source_span 1.9.1...
Downloading term_glyph 1.2.1...
Downloading collection 1.17.0...
Downloading matcher 0.12.12...
Downloading stack_trace 1.10.0...
Downloading meta 1.9.1...
Changed 13 dependencies!
are you self hosting?
Yes
Docker Error: Killed
This usually happens when a container runs out of memory. Take a look at the function memory environment variables: https://appwrite.io/docs/environment-variables
Sorry for the late repy, I have been busy. I have checked the function memory environment variables, they are left at default:
_APP_FUNCTIONS_MEMORY=0
_APP_FUNCTIONS_MEMORY_SWAP=0
Ok, I've set it to 2048 and now it is working, but I don't get why it was working in the past and why leaving it default to get unlimited memory doesn't work
[SOLVED] Cloud function fails to build
Recommended threads
- Does a user need to be registered in App...
If I want to send an email (for example, to xyz@gmail.com) from an Appwrite Cloud Function, does that email address need to be registered as a user in Appwrite?...
- endpoint variable
Appwrite Sites passes e.g. APPWRITE_SITE_API_ENDPOINT to the site, but i need this variable in Next.js in my Client-Side-Page. How can i pass it? Next.js only p...
- How can I get the Google Avatar of the u...
How can I get the Google Avatar of the user that signed in with Google?