Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: When building cache: file tree has path errors #258

Closed
SuperJC710e opened this issue Dec 10, 2019 · 7 comments
Closed

Error: When building cache: file tree has path errors #258

SuperJC710e opened this issue Dec 10, 2019 · 7 comments
Milestone

Comments

@SuperJC710e
Copy link

Hi, thanks for the project. I just built the latest git from source (needed to do so to overcome another issue) and I'm still getting another error. Like this:

Building cache...
  path error at layer index Index(0-3:4): unable to remove '/.dockerenv': path does not exist: /.dockerenv
  path error at layer index Index(0-4:5): unable to add '/.dockerenv': path does not exist: /.dockerenv
  path error at layer index Index(0-5:6): unable to add '/.dockerenv': path does not exist: /.dockerenv
  path error at layer index Index(0-6:7): unable to add '/.dockerenv': path does not exist: /.dockerenv
  path error at layer index Index(0-7:8): unable to add '/.dockerenv': path does not exist: /.dockerenv
  path error at layer index Index(0-8:9): unable to add '/.dockerenv': path does not exist: /.dockerenv
  path error at layer index Index(0-9:10): unable to add '/.dockerenv': path does not exist: /.dockerenv
  path error at layer index Index(0-10:11): unable to add '/.dockerenv': path does not exist: /.dockerenv
  path error at layer index Index(0-11:12): unable to add '/.dockerenv': path does not exist: /.dockerenv
  path error at layer index Index(0-12:13): unable to add '/.dockerenv': path does not exist: /.dockerenv
  path error at layer index Index(0-13:14): unable to add '/.dockerenv': path does not exist: /.dockerenv
file tree has path errors
@wagoodman
Copy link
Owner

wagoodman commented Dec 15, 2019

I recently added more aggressive error checking witch is probably why you are seeing this. Do you have a public docker image or a dockerfile to reproduce this?

@SuperJC710e
Copy link
Author

Hi @wagoodman sorry for the delay.

I do not have a public image of my lightly modified version, but I was working on a image based on this: binhex/arch-delugevpn. I was trying to see why the image was turning out so large. (I was adding a python application called flexget to the image.)

That said, I do have a private repo of it hosted on gitlab, I could give you an invite should you wish.

@wagoodman
Copy link
Owner

It appears that 2793e4c1aab8b47968fa43c136926f1efd32e1cea4c690d4e8f3493949dec99d/layer.tar attempts to remove a file that doesn't exist in lower layers (.dockerenv) by providing a whiteout file (.wh..dockerenv). It seems that there may be something wrong with the tar as well:

❯ tar -xvf layer.tar
...
tar: Error exit delayed from previous errors.

I'll add a --ignore-errors option to dive such that it will do a "best effort" in trying to show the UI and analysis results even if problems like these arise.

@wagoodman wagoodman added this to the v0.10.0 milestone Feb 10, 2020
@bitsofinfo
Copy link

i'm experiencing the same thing

@bitsofinfo
Copy link

over and over

path error at layer index Index(0-28:29): unable to add '/bin/rpm': path does not exist: /bin/rpm
  path error at layer index Index(0-28:29): unable to add '/lib/systemd': path does not exist: /lib/systemd
  path error at layer index Index(0-28:29): unable to add '/sbin/chkconfig': path does not exist: /sbin/chkconfig

@wagoodman
Copy link
Owner

The --ignore-errors CLI option and config setting has been merged, once v0.10.0 is release you should be able to get around images with parse issues.

@asafkin
Copy link

asafkin commented Nov 24, 2020

no v0.10.0 yet?

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

No branches or pull requests

4 participants