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

No such file or directory - /tmp/kitchen/cache/f2chroot.sh #6

Open
khashf opened this issue Sep 10, 2019 · 1 comment
Open

No such file or directory - /tmp/kitchen/cache/f2chroot.sh #6

khashf opened this issue Sep 10, 2019 · 1 comment

Comments

@khashf
Copy link

khashf commented Sep 10, 2019

$ chef --version
Chef Development Kit Version: 2.6.3.2
chef-client version: 13.12.14
berks version: 6.3.4
inspec version: 1.51.31.1

Error when converge:

(other output)
No such file or directory - /tmp/kitchen/cache/f2chroot.sh

The cause is probably from line providers/user.rb:68

f2chroot = ::File.join(Chef::Config[:file_cache_path], 'f2chroot.sh')

The Chef::Config[:file_cache_path] in this case returned /tmp/kitchen/cache directory which does not exist in my machine. In my machine, the local Chef cache path is in another location.

How do I work around this?

@jmauro
Copy link
Contributor

jmauro commented Sep 10, 2019

Hello @khashf,

I wonder why the cache path is the one used in kitchen-test. Could you provide a bit more context?

Regards,
JM

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

2 participants