Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-22851

Self-hosted runners do not always clear the docker mount directory

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • Pipelines - Runners
    • None

      Issue Summary

      • Occasionally, users report that they receive the following error when executing their runner builds:
        bash: docker: command not found
        
      • This issue is caused by the local Runner directory /tmp/<runner_uuid>/ already containing an empty docker folder.
      • We are not yet sure why the Runner directory sometimes already contains an empty docker folder (theory is that it's because of an unsuccessful runner configuration that has not cleaned itself up)
      • Since the docker folder already exists, the Runner fails to mount the new docker directory and the docker binary won't be present during the build.

      This is reproducible on Data Center: no

      Steps to Reproduce

      1. Execute a build within a dockerized Self-hosted Runner
      2. Observe the error that occurs (this is intermittent - hard to reproduce)

      Expected Results

      • The build is able to execute

      Actual Results

      • The build fails as it is unable to mount the directory

      Workaround

              Unassigned Unassigned
              57b7f67f3625 Ben
              Affected customers:
              31 This affects my team
              Watchers:
              29 Start watching this issue

                Created:
                Updated: