winfs-injector fails with "exit status 129" due to unsupported git version
search cancel

winfs-injector fails with "exit status 129" due to unsupported git version

book

Article ID: 405648

calendar_today

Updated On:

Products

VMware Tanzu Application Service

Issue/Introduction

The winfs-injector tool fails during the preparation of the pas-windows tile with an exit status 129 error. This failure occurs specifically during the post-download status check when the injector executes the command git status --porcelain=1.

Environment

  • Product: Tanzu Application Service (TAS) for VMs [Windows]
  • Tool: winfs-injector
  • Component: Automated CI/CD pipelines or preparation runners.

Cause

The error is caused by an outdated version of Git in the execution environment. The git status --porcelain=1 command requires Git version 2.11 or higher. Older versions of Git (e.g., 2.7.4) do not support the --porcelain flag with a numeric argument, leading to the "option 'porcelain' takes no value" error and subsequent exit status 129 failure.

Resolution

To resolve this issue, upgrade the Git installation in your automation runner or container environment to version 2.11 or higher.

 

  1. Verify the current version of Git installed in your environment:
     
    git --version
  2. If the version is below 2.11, update the package repository or rebuild your container image to include a supported version of Git.
  3. Once updated, re-run the winfs-injector process.

Additional Information

  • Git documentation regarding the --porcelain flag indicates support for the --porcelain=1 syntax was introduced in version 2.11.
  • Ensure that the TMPDIR used during the injection process has at least 20GB of free space to accommodate the extraction of large Windows File System base layers.