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 with berks install and windows: No such file or directory #357

Closed
5f6b3fb8 opened this issue Aug 5, 2015 · 5 comments
Closed

Error with berks install and windows: No such file or directory #357

5f6b3fb8 opened this issue Aug 5, 2015 · 5 comments

Comments

@5f6b3fb8
Copy link

5f6b3fb8 commented Aug 5, 2015

It seems like the docker-api-1.22.0 spec folder structure is nested with large directory names. The path is larger than what windows supports.

My dev machine is windows 2012 r2/virtualbox5/vagrant 1.7.4/chefdk 0.6.2.

metadata.rb has
depends 'docker', '0.43.0'

When I run 'berks install' I get the following error:

Resolving cookbook dependencies...
Fetching cookbook index from https://supermarket.chef.io...
Installing docker (0.42.0)
E, [2015-08-05T13:05:34.629136 #5140] ERROR -- : Actor crashed!
Errno::ENOENT: No such file or directory @ rb_sysopen - C:/Users/.../AppData/Local/Temp/1/d20150805-5140-y9h85x/doc
ker/files/default/vendor/gems/docker-api-1.22.0/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_a_blo
ck_capturing_build_output/uses_a_cached_version_the_second_time/calls_the_block_and_passes_build_output.yml

@someara someara added the bug label Aug 8, 2015
@habelson
Copy link

I too have started seeing this problem, I am using 0.37.0, I have a feeling it is related to changes in the docker-api gem. My first thought was windows path length limits.

Is there anyway to lock down the gem version in the docker cookbook?

@rhutzel
Copy link

rhutzel commented Aug 12, 2015

My Windows box can't clone this Git repo for the same reason.

$ git clone git@github.com:bflad/chef-docker.git
....
error: unable to create file files/default/vendor/gems/docker-api-1.22.0/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_a_block_capturing_build_output/uses_a_cached_version_the_second_time/calls_the_block_and_passes_build_output.yml (Filename too long)

@someara
Copy link
Contributor

someara commented Aug 13, 2015

Dupe of #351

@someara someara closed this as completed Aug 13, 2015
@someara
Copy link
Contributor

someara commented Aug 13, 2015

This actually wasn't a dupe.

@someara someara reopened this Aug 13, 2015
@someara
Copy link
Contributor

someara commented Aug 13, 2015

I've removed the spec and test directories from the vendored gems... that should get rid of the ridiculously long filenames.

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