Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-19773

GIT LFS throws "cannot fork to run external filter" error when repository caching on remote agents is enabled

      Summary

      Source code checkout task throws the below error with LFS enabled GIT repositories when run on a remote agent.

      error: cannot fork to run external filter 
      error: external filter  failed
      

      Steps to Reproduce

      1. Dedicate a remote agent to a plan that has Source code checkout task that is tagged to a GIT LFS repository
      2. Make sure the option 'Enabled repository caching on remote agents' option in the respecive Linked Repository settings page is enabled.
      3. Run the plan

      Expected Results

      The plan executes successfully without any error

      Actual Results

      The below exception is thrown multiple times in the build log file:

      simple	18-Mar-2018 01:15:09	error: cannot run : No such file or directory
      simple	18-Mar-2018 01:15:09	error: cannot fork to run external filter 
      simple	18-Mar-2018 01:15:09	error: external filter  failed
      

      Workaround

      Disable Cache by going to Linked Repositories -> Repo -> disable 'Enabled repository caching on remote agents'

      Solution

      Upgrade git to version 2.8

          Form Name

            [BAM-19773] GIT LFS throws "cannot fork to run external filter" error when repository caching on remote agents is enabled

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 2645857 ] New: JAC Bug Workflow v3 [ 3386201 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Krystian Brazulewicz made changes -
            Link New: This issue has a derivative of BAM-20511 [ BAM-20511 ]
            Krystian Brazulewicz made changes -
            Link New: This issue relates to BAM-20119 [ BAM-20119 ]
            Krystian Brazulewicz made changes -
            Description Original: h3. Summary
            Source code checkout task throws the below error with LFS enabled GIT repositories when run on a remote agent.

            {noformat:title=}
            error: cannot fork to run external filter
            error: external filter failed
            {noformat}

            h3. Steps to Reproduce
            # Dedicate a remote agent to a plan that has Source code checkout task that is tagged to a GIT LFS repository
            # Make sure the option *'Enabled repository caching on remote agents'* option in the respecive *Linked Repository* settings page is enabled.
            # Run the plan

            h3. Expected Results
            The plan executes successfully without any error

            h3. Actual Results
            The below exception is thrown multiple times in the build log file:
            {noformat}
            simple 18-Mar-2018 01:15:09 error: cannot run : No such file or directory
            simple 18-Mar-2018 01:15:09 error: cannot fork to run external filter
            simple 18-Mar-2018 01:15:09 error: external filter failed
            {noformat}
             
            h3.Workaround
            Disable Cache by going to *Linked Repositories -> Repo -> disable 'Enabled repository caching on remote agents'*
            New: h3. Summary

            Source code checkout task throws the below error with LFS enabled GIT repositories when run on a remote agent.
            {noformat}
            error: cannot fork to run external filter
            error: external filter failed
            {noformat}
            h3. Steps to Reproduce
             # Dedicate a remote agent to a plan that has Source code checkout task that is tagged to a GIT LFS repository
             # Make sure the option *'Enabled repository caching on remote agents'* option in the respecive *Linked Repository* settings page is enabled.
             # Run the plan

            h3. Expected Results

            The plan executes successfully without any error
            h3. Actual Results

            The below exception is thrown multiple times in the build log file:
            {noformat}
            simple 18-Mar-2018 01:15:09 error: cannot run : No such file or directory
            simple 18-Mar-2018 01:15:09 error: cannot fork to run external filter
            simple 18-Mar-2018 01:15:09 error: external filter failed
            {noformat}
            h3. Workaround

            Disable Cache by going to *Linked Repositories -> Repo -> disable 'Enabled repository caching on remote agents'*

            h3. Solution
            Upgrade git to version 2.8
            Marcin Gardias made changes -
            Resolution New: Answered [ 9 ]
            Status Original: Needs Triage [ 10030 ] New: Resolved [ 5 ]
            Marcin Gardias made changes -
            Resolution Original: Cannot Reproduce [ 5 ]
            Status Original: Resolved [ 5 ] New: Needs Triage [ 10030 ]
            Marcin Gardias made changes -
            Priority Original: Medium [ 3 ] New: Low [ 4 ]
            Marcin Gardias made changes -
            Resolution New: Cannot Reproduce [ 5 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            Pawel Skierczynski made changes -
            Priority Original: Low [ 4 ] New: Medium [ 3 ]
            Pawel Skierczynski made changes -
            Remote Link New: This issue links to "BDEV-15101 (Jira)" [ 405376 ]

              Unassigned Unassigned
              jinbasekaran Jeyanthan I (Inactive)
              Affected customers:
              5 This affects my team
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: