Back

[SOLVED] Cloud function fails to build

  • 0
  • Self Hosted
  • Functions
Iron
14 Aug, 2023, 21:29

My cloud functions no longer build. I have tried creating a new one leaving everything default, with no luck. This is the build log:

TypeScript
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!
TL;DR
Cloud function fails to build. User tried changing the memory environment variables to 2048, which solved the issue. However, they are unsure why the default unlimited memory option didn't work. The error message "Docker Error: Killed" indicates that the container ran out of memory. Solution: Change the memory environment variables to a higher value, like 2048.
Drake
14 Aug, 2023, 21:39

are you self hosting?

Iron
14 Aug, 2023, 21:42

Yes

Drake
14 Aug, 2023, 21:45

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

Iron
21 Aug, 2023, 11:44

Sorry for the late repy, I have been busy. I have checked the function memory environment variables, they are left at default:

TypeScript
_APP_FUNCTIONS_MEMORY=0
_APP_FUNCTIONS_MEMORY_SWAP=0
Iron
21 Aug, 2023, 12:11

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

Drake
21 Aug, 2023, 13:41

[SOLVED] Cloud function fails to build

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