Skip to content

3.8.0+ BOSH error "Handle 'xx' already in use" #2172

Closed

Description

@keithkroeger

Bug Report

  • Concourse version: 3.8.0/3.9.2/3.11.0
  • Deployment type (BOSH/Docker/binary): BOSH
  • Infrastructure/IaaS: Openstack
  • Did this used to work? We do not see this in binary environments

When a build takes a while, usually because the docker image needs to be downloaded, we frequently find that we run into the following error

Successfully pulled docker.fmr.com/fmr-ap121865/ops@sha256:71dc1397b07a95e1bd93d99be8bf8995464ff6b80a0c2be4bbd2697ef90b5981.
	
running touch test-file/test-20180420084434Z
Handle '6e8b8102-8087-4ceb-67ff-2a53d971bfc0' already in use
errored

Re-running the job most likely does not experience this issue

Activity

  1. scottietremendous commented on Sep 19, 2018

    @scottietremendous
    Contributor

    @vito - I see that there's a commit here, can we consider this closed?

  2. keithkroeger commented on Sep 27, 2018

    @keithkroeger
    Author

    Also exists in 3.13

  3. keithkroeger commented on Oct 2, 2018

    @keithkroeger
    Author

    @vito, this is occurring in 3.13 as well. Do we have a release in which we might find this fixed or at least avoided? Thank you

    Some details from logs:

    {"timestamp":"1538472163.591706514","source":"atc","message":"atc.create-job-build.trigger-immediately.try-start-next-pending-build.image.init-image.lock-task.release.failed-to-release","log_level":2,"data":{"build-id":2847,"build-name":"1","container":"6f78411c-a7e1-4daa-400b-49ead131af51","error":"lock was lost while held, possibly due to connection breakage","id":[3,-843039596],"job_name":"deploy","lock-name":"b403337f825c840fbc2633614728a7f8a3b1b74655d2499974c5f91924768205","session":"2157433.1.1.2.2.3.2"}}
    
    {"timestamp":"1538472196.716460228","source":"guardian","message":"guardian.api.garden-server.create.failed","log_level":2,"data":{"error":"Handle '6f78411c-a7e1-4daa-400b-49ead131af51' already in use","request":{"Handle":"6f78411c-a7e1-4daa-400b-49ead131af51","GraceTime":0,"RootFSPath":"raw:///var/vcap/data/baggageclaim/volumes/live/ca153283-a77e-4b49-57b7-0b533b9c31ca/volume/rootfs","BindMounts":[{"src_path":"/var/vcap/data/baggageclaim/volumes/live/200d109c-2ef6-406a-4709-b98204761370/volume","dst_path":"/scratch","mode":1},{"src_path":"/var/vcap/data/baggageclaim/volumes/live/389d4f85-f0c2-4134-742f-7e8d25486f53/volume","dst_path":"/tmp/build/f33fb8a7","mode":1},{"src_path":"/var/vcap/data/baggageclaim/volumes/live/48294657-24a6-4367-6fd1-c92082ab8206/volume","dst_path":"/tmp/build/f33fb8a7/ecc-container-pipelines","mode":1},{"src_path":"/var/vcap/data/baggageclaim/volumes/live/fa90fd33-f972-4a7e-43c4-cd38fa94e85f/volume","dst_path":"/tmp/build/f33fb8a7/manifest_repo","mode":1},{"src_path":"/var/vcap/dat...
    
    {"timestamp":"1538472196.716460228","source":"guardian","message":"guardian.api.garden-server.create.failed","log_level":2,"data":{"error":"Handle '6f78411c-a7e1-4daa-400b-49ead131af51' already in use","request":{"Handle":"6f78411c-a7e1-4daa-400b-49ead131af51","GraceTime":0,"RootFSPath":"raw:///var/vcap/data/baggageclaim/volumes/live/ca153283-a77e-4b49-57b7-0b533b9c31ca/volume/rootfs","BindMounts":[{"src_path":"/var/vcap/data/baggageclaim/volumes/live/200d109c-2ef6-406a-4709-b98204761370/volume","dst_path":"/scratch","mode":1},{"src_path":"/var/vcap/data/baggageclaim/volumes/live/389d4f85-f0c2-4134-742f-7e8d25486f53/volume","dst_path":"/tmp/build/f33fb8a7","mode":1},{"src_path":"/var/vcap/data/baggageclaim/volumes/live/48294657-24a6-4367-6fd1-c92082ab8206/volume","dst_path":"/tmp/build/f33fb8a7/ecc-container-pipelines","mode":1},{"src_path":"/var/vcap/data/baggageclaim/volumes/live/fa90fd33-f972-4a7e-43c4-cd38fa94e85f/volume","dst_path":"/tmp/build/f33fb...
    
    {"timestamp":"1538472205.502069950","source":"atc","message":"atc.build-tracker.track.failed-to-create-container-in-garden","log_level":2,"data":{"build":2847,"container":"6f78411c-a7e1-4daa-400b-49ead131af51","error":"Handle '6f78411c-a7e1-4daa-400b-49ead131af51' already in use","job":"deploy","pipeline":"pipeline","session":"37.51343"}}
    
    {"timestamp":"1538472264.303238630","source":"atc","message":"atc.create-job-build.trigger-immediately.try-start-next-pending-build.failed-to-mark-container-as-created","log_level":2,"data":{"build-id":2847,"build-name":"1","container":"6f78411c-a7e1-4daa-400b-49ead131af51","error":"container disappeared from db","job_name":"deploy","session":"2157433.1.1"}} 
    
    {"timestamp":"1538472264.531105995","source":"atc","message":"atc.create-job-build.trigger-immediately.try-start-next-pending-build.release.failed-to-release","log_level":2,"data":{"build-id":2847,"build-name":"1","container":"6f78411c-a7e1-4daa-400b-49ead131af51","error":"lock was lost while held, possibly due to connection breakage","id":[5,141264],"job_name":"deploy","session":"2157433.1.1.10"}}
    
    
  4. xtremerui commented on Nov 29, 2023

    @xtremerui
    Contributor

    closing stale issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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