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

            [BCLOUD-22851] Self-hosted runners do not always clear the docker mount directory

            SET Analytics Bot made changes -
            UIS Original: 24649 New: 24664
            SET Analytics Bot made changes -
            UIS Original: 24636 New: 24649
            SET Analytics Bot made changes -
            UIS Original: 23277 New: 24636
            SET Analytics Bot made changes -
            Support reference count Original: 16 New: 18
            SET Analytics Bot made changes -
            UIS Original: 20811 New: 23277
            SET Analytics Bot made changes -
            UIS Original: 20796 New: 20811
            SET Analytics Bot made changes -
            UIS Original: 20775 New: 20796
            SET Analytics Bot made changes -
            UIS Original: 20756 New: 20775
            SET Analytics Bot made changes -
            UIS Original: 20736 New: 20756
            SET Analytics Bot made changes -
            UIS Original: 20725 New: 20736

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

                Created:
                Updated: