Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

kedge build returns - unable to create a tarball: archive/tar: write too long #490

Closed
concaf opened this issue Nov 27, 2017 · 1 comment · Fixed by #497
Closed

kedge build returns - unable to create a tarball: archive/tar: write too long #490

concaf opened this issue Nov 27, 2017 · 1 comment · Fixed by #497

Comments

@concaf
Copy link
Collaborator

concaf commented Nov 27, 2017

My current directly size is -

$ du -sh
812M    .

And I have simple Dockerfile in the current directory -

$ cat Dockerfile 
FROM centos:7
CMD ping

Upon running kedge build -i imagename I expect a simple image to be built, instead I get the following error -

$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge' 
unable to create a tarball: archive/tar: write too long

This error does not occur when the current directory size is small.
I don't think so building an image should be dependent on the size of the current directory.

surajnarwade added a commit to surajnarwade/kedge that referenced this issue Nov 28, 2017
Fixes kedgeproject#490

Current directory size:

```
$ du -sh
799M	.
```

Dockerfile:

```
$ cat Dockerfile
FROM centos:7
CMD ping
```

Upon running above Dockerfile, Now kedge can successfully built an image.

```
$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge'
INFO[0010] Image 'testrun' from directory 'kedge' built successfully
```

(Problem resolved by adding check for file mode bits)
surajnarwade added a commit to surajnarwade/kedge that referenced this issue Nov 28, 2017
Fixes kedgeproject#490

Current directory size:

```
$ du -sh
799M	.
```

Dockerfile:

```
$ cat Dockerfile
FROM centos:7
CMD ping
```

Upon running above Dockerfile, Now kedge can successfully built an image.

```
$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge'
INFO[0010] Image 'testrun' from directory 'kedge' built successfully
```

(Problem resolved by adding check for file mode bits)
@kadel
Copy link
Member

kadel commented Nov 28, 2017

This issue is not caused by size of the directory but because there are symlinks in it!

surajnarwade added a commit to surajnarwade/kedge that referenced this issue Nov 29, 2017
Fixes kedgeproject#490

Current directory size:

```
$ du -sh
799M	.
```

Dockerfile:

```
$ cat Dockerfile
FROM centos:7
CMD ping
```

Upon running above Dockerfile, Now kedge can successfully built an image.

```
$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge'
INFO[0010] Image 'testrun' from directory 'kedge' built successfully
```

(Problem resolved by adding check for file mode bits)
surajnarwade added a commit to surajnarwade/kedge that referenced this issue Nov 30, 2017
Fixes kedgeproject#490

Current directory size:

```
$ du -sh
799M	.
```

Dockerfile:

```
$ cat Dockerfile
FROM centos:7
CMD ping
```

Upon running above Dockerfile, Now kedge can successfully built an image.

```
$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge'
INFO[0010] Image 'testrun' from directory 'kedge' built successfully
```

(Problem resolved by adding check for file mode bits)
surajnarwade added a commit to surajnarwade/kedge that referenced this issue Dec 7, 2017
Fixes kedgeproject#490

Current directory size:

```
$ du -sh
799M	.
```

Dockerfile:

```
$ cat Dockerfile
FROM centos:7
CMD ping
```

Upon running above Dockerfile, Now kedge can successfully built an image.

```
$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge'
INFO[0010] Image 'testrun' from directory 'kedge' built successfully
```

(Problem resolved by adding check for file mode bits)
surajnarwade added a commit to surajnarwade/kedge that referenced this issue Dec 8, 2017
Fixes kedgeproject#490

Current directory size:

```
$ du -sh
799M	.
```

Dockerfile:

```
$ cat Dockerfile
FROM centos:7
CMD ping
```

Upon running above Dockerfile, Now kedge can successfully built an image.

```
$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge'
INFO[0010] Image 'testrun' from directory 'kedge' built successfully
```

(Problem resolved by adding check for file mode bits)
surajnarwade added a commit to surajnarwade/kedge that referenced this issue Dec 11, 2017
Fixes kedgeproject#490

Current directory size:

```
$ du -sh
799M	.
```

Dockerfile:

```
$ cat Dockerfile
FROM centos:7
CMD ping
```

Upon running above Dockerfile, Now kedge can successfully built an image.

```
$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge'
INFO[0010] Image 'testrun' from directory 'kedge' built successfully
```

(Problem resolved by handling symlinks properly)
surajnarwade added a commit to surajnarwade/kedge that referenced this issue Dec 22, 2017
Fixes kedgeproject#490

Current directory size:

```
$ du -sh
799M	.
```

Dockerfile:

```
$ cat Dockerfile
FROM centos:7
CMD ping
```

Upon running above Dockerfile, Now kedge can successfully built an image.

```
$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge'
INFO[0010] Image 'testrun' from directory 'kedge' built successfully
```

(Problem resolved by handling symlinks properly)
surajnarwade added a commit to surajnarwade/kedge that referenced this issue Dec 22, 2017
Fixes kedgeproject#490

Current directory size:

```
$ du -sh
799M	.
```

Dockerfile:

```
$ cat Dockerfile
FROM centos:7
CMD ping
```

Upon running above Dockerfile, Now kedge can successfully built an image.

```
$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge'
INFO[0010] Image 'testrun' from directory 'kedge' built successfully
```

(Problem resolved by handling symlinks properly)
surajnarwade added a commit to surajnarwade/kedge that referenced this issue Jan 5, 2018
Fixes kedgeproject#490

Current directory size:

```
$ du -sh
799M	.
```

Dockerfile:

```
$ cat Dockerfile
FROM centos:7
CMD ping
```

Upon running above Dockerfile, Now kedge can successfully built an image.

```
$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge'
INFO[0010] Image 'testrun' from directory 'kedge' built successfully
```

(Problem resolved by handling symlinks properly)
cdrage pushed a commit that referenced this issue Jan 8, 2018
Fixes #490

Current directory size:

```
$ du -sh
799M	.
```

Dockerfile:

```
$ cat Dockerfile
FROM centos:7
CMD ping
```

Upon running above Dockerfile, Now kedge can successfully built an image.

```
$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge'
INFO[0010] Image 'testrun' from directory 'kedge' built successfully
```

(Problem resolved by handling symlinks properly)
kadel pushed a commit to kadel/kedge that referenced this issue Jan 15, 2018
Fixes kedgeproject#490

Current directory size:

```
$ du -sh
799M	.
```

Dockerfile:

```
$ cat Dockerfile
FROM centos:7
CMD ping
```

Upon running above Dockerfile, Now kedge can successfully built an image.

```
$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge'
INFO[0010] Image 'testrun' from directory 'kedge' built successfully
```

(Problem resolved by handling symlinks properly)
kadel pushed a commit to kadel/kedge that referenced this issue Jan 17, 2018
Fixes kedgeproject#490

Current directory size:

```
$ du -sh
799M	.
```

Dockerfile:

```
$ cat Dockerfile
FROM centos:7
CMD ping
```

Upon running above Dockerfile, Now kedge can successfully built an image.

```
$ kedge build -i testrun
INFO[0000] Building image 'testrun' from directory 'kedge'
INFO[0010] Image 'testrun' from directory 'kedge' built successfully
```

(Problem resolved by handling symlinks properly)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants