cloudfoundry / cloudfoundry/cnbapplifecycle

Liberty CNB

Open
#109 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
0
Forks
3
Avg merge
4d 20h
Merged PRs (30d)
11

Description

I'm trying to use Liberty CNB. Details shared here:
https://github.com/paketo-buildpacks/liberty/issues/1047

the start command seems to be set:
start command: server run defaultServer

However, application fails to get started:

   2025-08-01T11:09:26.12+0200 [APP/PROC/WEB/0] OUT Detected process type: "launcher", isSidecar: true
   2025-08-01T11:09:26.12+0200 [APP/PROC/WEB/0] OUT ERROR: failed launching with self: "launcher", defaultProc: "", args: []string{}, error: determine start command: when there is no default process a command is required

Is there anything that CNB needs to meet yet?

Here's config/metadata.toml:

# cat metadata.toml
buildpack-default-process-type = "open-liberty-runtime"

[[buildpacks]]
  id = "paketo-buildpacks/ca-certificates"
  version = "3.10.0"
  api = "0.7"
  homepage = "https://github.com/paketo-buildpacks/ca-certificates"

[[buildpacks]]
  id = "paketo-buildpacks/bellsoft-liberica"
  version = "11.2.0"
  api = "0.7"
  homepage = "https://github.com/paketo-buildpacks/bellsoft-liberica"

[[buildpacks]]
  id = "paketo-buildpacks/syft"
  version = "2.10.0"
  api = "0.7"
  homepage = "https://github.com/paketo-buildpacks/syft"

[[buildpacks]]
  id = "paketo-buildpacks/liberty"
  version = "5.1.0"
  api = "0.7"
  homepage = "https://github.com/paketo-buildpacks/liberty"

[[buildpacks]]
  id = "paketo-buildpacks/dist-zip"
  version = "5.10.0"
  api = "0.7"
  homepage = "https://github.com/paketo-buildpacks/dist-zip"

[[buildpacks]]
  id = "paketo-buildpacks/spring-boot"
  version = "5.33.0"
  api = "0.7"
  homepage = "https://github.com/paketo-buildpacks/spring-boot"

[[processes]]
  type = "open-liberty-runtime"
  command = ["server"]
  args = ["run", "defaultServer"]
  direct = true
  buildpack-id = "paketo-buildpacks/liberty"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with config/metadata.toml and the reported launcher error, then read the linked Liberty issue for the missing context. Determine whether the declared open-liberty-runtime process is compatible with the lifecycle’s start-command handling, and verify the outcome by reproducing the supplied process configuration.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.