Skip to content

cf run-task fails with 'command presence FAILED' #1323

Closed

Description

@stokpop

Problem

cf run-task fails with command presence FAILED when using the Go buildpack (v5.x). Works with Ruby buildpack v4.77.0.

Root cause

writeReleaseYaml() in src/java/finalize/finalize.go only emits the web process type:

default_process_types:
  web: '<command>'

CF requires a task entry in default_process_types when running tasks without an explicit --command. The Ruby buildpack emits both web and task with the same command.

Fix

Add task with the same command as web:

default_process_types:
  web: '<command>'
  task: '<command>'

Activity

  1. changed the title [-]cf run-task fails with 'command presence FAILED' — missing task process type in release YAML[/-] [+]cf run-task fails with 'command presence FAILED'[/+] on Jun 20, 2026
  2. added a commit that references this issue on Jun 22, 2026
    22e272d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions