Skip to content

Rundeck becomes broken after openjdk upgrades #47

@rubinlinux

Description

@rubinlinux

Describe the bug
The debian default configuration includes a package called 'unattended-upgrades' which updates packages over night when security vulnerabilities are identified. If this (or a manual update) upgrades openjdk, rundeck becomes unable to spawn jobs, with all jobs failing with the message:
Execute failed: java.io.IOException: Cannot run program "/bin/sh" (in directory "/var/lib/rundeck"): error=0, Failed to exec spawn helper: pid: 2697938, exit value: 1

I have had this happen simultaneously across 3 debian 12 machines the same night on 2 separate occations, which helped track down the problem.

My Rundeck detail

  • Rundeck version: 5.0.1
  • install type: deb
  • OS Name/version: Debian 12
  • DB Type/version: mariadb

To Reproduce

  • Install debian 12 from sources prior to april 22, 2024, and install rundeck from apt repository. DO NOT UPGRADE IT YET
  • Observe rundeck works normally
  • Use apt upgrade to update openjdk from 17.0.10+7-1~deb11u1 to 17.0.11+9-1~deb11u1
  • observe that rundeck can no longer spawn jobs

Expected behavior
rundeck should be restarted when openjdk updates so that it takes advantage of the upgraded openjdk and also does not break

Screenshots

Screenshot from 2024-04-25 09-40-58

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