Skip to content

Add missing file dependency - #15

Merged
vito merged 1 commit into
concourse:masterfrom
ElfoLiNk:patch-1
Jul 30, 2018
Merged

vito merged 1 commit into
concourse:masterfrom
ElfoLiNk:patch-1

Conversation

@ElfoLiNk

@ElfoLiNk ElfoLiNk commented Jul 28, 2018 •

Copy link
Copy Markdown

error logs https://pastebin.com/rVaN41w5 :

concourse-worker_1  | {"timestamp":"1532794668.795191288","source":"baggageclaim","message":"baggageclaim.fs.run-command.failed","log_level":2,"data":{"args":["bash","-e","-x","-c","\n\t\tif [ ! -e $IMAGE_PATH ] || [ \"$(stat --printf=\"%s\" $IMAGE_PATH)\" != \"$SIZE_IN_BYTES\" ]; then\n\t\t\ttouch $IMAGE_PATH\n\t\t\ttruncate -s ${SIZE_IN_BYTES} $IMAGE_PATH\n\t\tfi\n\n\t\tlo=\"$(losetup -j $IMAGE_PATH | cut -d':' -f1)\"\n\t\tif [ -z \"$lo\" ]; then\n\t\t\tlo=\"$(losetup -f --show $IMAGE_PATH)\"\n\t\tfi\n\n\t\tif ! file $IMAGE_PATH | grep BTRFS; then\n\t\t\t/worker-state/4.0.0/assets/btrfs/mkfs.btrfs --nodiscard $IMAGE_PATH\n\t\tfi\n\n\t\tmkdir -p $MOUNT_PATH\n\n\t\tif ! mountpoint -q $MOUNT_PATH; then\n\t\t\tmount -t btrfs $lo $MOUNT_PATH\n\t\tfi\n\t"],"command":"/bin/bash","env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","MOUNT_PATH=/worker-state/volumes","IMAGE_PATH=/worker-state/volumes.img","SIZE_IN_BYTES=72330121216"],"error":"exit status 1","session":"3.1","stderr":"+ '[' '!' -e /worker-state/volumes.img ']'\n++ stat --printf=%s /worker-state/volumes.img\n+ '[' 72330121216 '!=' 72330121216 ']'\n++ cut -d: -f1\n++ losetup -j /worker-state/volumes.img\n+ lo=/dev/loop1\n+ '[' -z /dev/loop1 ']'\n+ file /worker-state/volumes.img\nbash: line 11: file: command not found\n+ grep BTRFS\n+ /worker-state/4.0.0/assets/btrfs/mkfs.btrfs --nodiscard /worker-state/volumes.img\n/worker-state/volumes.img appears to contain an existing filesystem (btrfs).\nERROR: use the -f option to force overwrite of /worker-state/volumes.img\n","stdout":"btrfs-progs v4.15\nSee http://btrfs.wiki.kernel.org for more information.\n\n"}}

bash: line 11: file: command not found

check:

docker run --rm --entrypoint bash concourse/concourse -c file
bash: file: command not found

file command is required by https://github.com/concourse/baggageclaim/blob/ce246ab48484f3fbc8527a6c8fd193dada53aa01/fs/btrfs.go#L45

@vito

vito commented Jul 30, 2018

Copy link
Copy Markdown

Well that's fun. I guess it's just been using overlay or naive this whole time.

Thanks!

@vito
vito merged commit fab8791 into concourse:master Jul 30, 2018
@vito vito added this to the v4.1.0 milestone Aug 28, 2018
@holmboe

holmboe commented Sep 13, 2018

Copy link
Copy Markdown

It has been a painpoint for us and we have spent hours troubleshooting this. Much appreciated! @ElfoLiNk

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants