Hi there,
I have created the example Spring Boot application with the following command:
sfn function bootstrap
You can find the generated application here:
https://github.com/BoukeNijhuis/stackit-function
The next command I give is:
sfn function build --image stackit-function-image --verbose
It takes about 10 minutes to fail with the following message:
(truncated)
[3/8] Building universe... (16.4s @ 2.74GB)
[4/8] Parsing methods... [****] (16.1s @ 3.00GB)
[5/8] Inlining methods... [****] (10.2s @ 3.28GB)
Error: Image build request for 'functions.CloudFunctionApplication' (pid: 652, path: /layers/paketo-buildpacks_native-image/native-image) failed with exit status 137
unable to invoke layer creator
unable to contribute native-image layer
error running build
exit status 137
ERROR: failed to build: exit status 1
2026-05-15T18:42:11.987395Z DEBUG Building function: sfn::client::builder::pack: Waiting for functions-builder container to stop image="stackit-function-image"
Error: Building image
Caused by:
Docker container wait error:
boukenijhuis@MacBook-Pro-2024 stackit-function %
I looked this error up and the internet says it is a memory issue, so I think I have to increase the memory of the 'functions-builder' container. I increased the memory limit of my Docker containers to 16 GB and retried.
This leads to this error:
Added 1/1 app layer(s)
Adding layer 'buildpacksio/lifecycle:launcher'
Adding layer 'buildpacksio/lifecycle:config'
Adding layer 'buildpacksio/lifecycle:process-types'
Adding label 'io.buildpacks.lifecycle.metadata'
Adding label 'io.buildpacks.build.metadata'
Adding label 'io.buildpacks.project.metadata'
Adding label 'org.opencontainers.image.title'
Adding label 'org.opencontainers.image.version'
Adding label 'org.springframework.boot.version'
Setting default process type 'web'
Saving stackit-function-image...
ERROR: failed to export: saving image: failed to fetch base layers: saving image with ID "sha256:f64c1ed2ce580ce829b6d4b4e56e46c854dc0db229997af5d55ed053aa494be6" from the docker daemon: Error response from daemon: unable to create manifests file: NotFound: content digest sha256:68b24514bd72a47c2fdba4dcd6aa3b889c766796f84329d47cc8fb747cf553b1: not found
2026-05-15T19:21:50.673692Z DEBUG Building function: sfn::client::builder::pack: Waiting for functions-builder container to stop image="stackit-function-image"
Error: Building image
When I search for this sha id (sha256:68b24514bd72a47c2fdba4dcd6aa3b889c766796f84329d47cc8fb747cf553b1) in the log lines I find this:
2026-05-15T18:28:37.427111Z DEBUG Building function:Pulling image: sfn::client::oci: Digest: sha256:f64c1ed2ce580ce829b6d4b4e56e46c854dc0db229997af5d55ed053aa494be6 image="stackit-function-image" image="index.docker.io/paketobuildpacks/run-jammy-base:latest" platform="linux/amd64"
So it seems connected to the run-jammy-base?
What am I doing wrong?
Hi there,
I have created the example Spring Boot application with the following command:
sfn function bootstrapYou can find the generated application here:
https://github.com/BoukeNijhuis/stackit-function
The next command I give is:
sfn function build --image stackit-function-image --verboseIt takes about 10 minutes to fail with the following message:
I looked this error up and the internet says it is a memory issue, so I think I have to increase the memory of the 'functions-builder' container. I increased the memory limit of my Docker containers to 16 GB and retried.
This leads to this error:
When I search for this sha id (sha256:68b24514bd72a47c2fdba4dcd6aa3b889c766796f84329d47cc8fb747cf553b1) in the log lines I find this:
So it seems connected to the run-jammy-base?
What am I doing wrong?