Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

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

Open
kallisti5 opened this issue Jun 1, 2017 · 4 comments
Open

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

kallisti5 opened this issue Jun 1, 2017 · 4 comments

Comments

@kallisti5
Copy link

kallisti5 commented Jun 1, 2017

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
Copy link
Member

lucab commented Jun 1, 2017

Can you check if this also happens on master?

@kallisti5
Copy link
Author

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
Copy link
Author

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

@cgonyeo
Copy link
Member

cgonyeo commented Jun 1, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants