containers / build

another build tool for container images (archived, see https://github.com/rkt/rkt/issues/4024)
Apache License 2.0
342 stars 80 forks source link

'file name too long' error on aci's built with v0.4.0 #312

Open kallisti5 opened 7 years ago

kallisti5 commented 7 years ago

Building the image:

    CONTAINER=server-site.aci
    sudo ${ACBUILD} begin .
    sudo ${ACBUILD} set-name aci.somesite.io/${CONTAINER}
    sudo ${ACBUILD} dep add quay.io/coreos/alpine-sh
    sudo ${ACBUILD} label add version "latest"
    sudo ${ACBUILD} run apk update
    sudo ${ACBUILD} run apk add nginx
    sudo ${ACBUILD} port add http tcp 80
    sudo ${ACBUILD} set-exec -- /usr/sbin/nginx -g "daemon off;"
    sudo ${ACBUILD} write --overwrite ${CONTAINER}.aci
    sudo ${ACBUILD} end

Error:

$ sudo rkt --insecure-options=image run ./server-site.aci 
run: lstat /var/lib/rkt/cas/tree/deps-sha512-7190021edd7ca8da6bc65a9a9c5e493473aae4c2739f974fc1830ef4193a25d4/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs: file name too long
lucab commented 7 years ago

Can you check if this also happens on master?

kallisti5 commented 7 years ago

Master errors out during build vs during run.. same error:

$ /usr/local/bin/acbuild begin .
begin: mkdir .acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci/rootfs/.acbuild/currentaci: file name too long
kallisti5 commented 7 years ago

ah! The '.' after the begin seemed to be the cause. Removing the '.' results in a working image!

cgonyeo commented 7 years ago

That command was telling acbuild to initialize the build with the current directory, which it would've created things in, causing a loop.

It hadn't occurred to me that this might happen, a check should be added to prevent this. We can leave this issue open until that happens.