Comments (10)
I've also gotten this error. In Ruby, filenames are limited to 255 characters, because <reasons>
. I think we'll need to look into SHAing files or something. In the meantime, you can shorten the name of your Test Kitchen suite.
from chef-zero.
Can't seem to replicate it anymore, however, I had forgotten to run berks update
after updating the metadata.rb and that seemed to resolve things. Strange error for that sort of thing, I'll keep any eye out for anything else like that.
In regard to the filename being to long, you'll notice that the filename it was trying to use was actually the contents of the node data (hard to see because I cut off some of the stacktrace).
from chef-zero.
@cstewart87 it wasn't; that's just a bad stacktrace. This is a real error that we need to deal with at some point.
from chef-zero.
@sv As a heads up, it isn't just a Ruby limitation. Ext3 and Ext4 both have a max filename length of 255 bytes. I'm unsure about other filesystems.
from chef-zero.
@stevendanna how does the Chef Server handle this limitation /cc @seth
from chef-zero.
Does anyone have a reproduction case of this? If so, can you post the details here and/or post the full stack trace?
from chef-zero.
@stevendanna @paulmooring had something yesterday
from chef-zero.
[2014-02-01T20:10:05-08:00] ERROR: #<Errno::ENAMETOOLONG: File name too long - {
"name": "fm_services",
"description": "Shared Services components coobook",
"long_description": "",
"maintainer": "David Lewis",
"maintainer_email": "<snip>",
"license": "Proprietary",
"platforms": {
"centos": ">= 0.0.0",
"redhat": ">= 0.0.0"
},
"dependencies": {
"fm_nexus": ">= 0.0.0",
"fm_tomcat": ">= 0.0.0",
"java": ">= 0.0.0",
"fm-base": ">= 0.0.0",
"fm_logstash_agent": ">= 0.0.0",
"openssl": ">= 0.0.0",
"minitest-handler": ">= 0.0.0"
},
"recommendations": {
},
"suggestions": {
},
"conflicting": {
},
"providing": {
},
"replacing": {
},
"attributes": {
},
"groupings": {
},
"recipes": {
},
"version": "2.0.22"
}
>
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-zero-1.7.2/lib/chef_zero/cookbook_data.rb:77:in `read'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-zero-1.7.2/lib/chef_zero/cookbook_data.rb:77:in `from_json'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-zero-1.7.2/lib/chef_zero/cookbook_data.rb:42:in `metadata_from'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/chef_fs/chef_fs_data_store.rb:366:in `get_single_cookbook_version'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/chef_fs/chef_fs_data_store.rb:181:in `list'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-zero-1.7.2/lib/chef_zero/rest_base.rb:55:in `list_data'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-zero-1.7.2/lib/chef_zero/endpoints/environment_cookbook_versions_endpoint.rb:24:in `block in post'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-zero-1.7.2/lib/chef_zero/endpoints/environment_cookbook_versions_endpoint.rb:16:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-zero-1.7.2/lib/chef_zero/endpoints/environment_cookbook_versions_endpoint.rb:16:in `post'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-zero-1.7.2/lib/chef_zero/rest_base.rb:29:in `call'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-zero-1.7.2/lib/chef_zero/rest_router.rb:23:in `call'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-zero-1.7.2/lib/chef_zero/server.rb:335:in `block in make_app'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/puma-1.6.3/lib/puma/server.rb:412:in `call'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/puma-1.6.3/lib/puma/server.rb:412:in `handle_request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/puma-1.6.3/lib/puma/server.rb:306:in `process_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/puma-1.6.3/lib/puma/server.rb:215:in `block in run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/puma-1.6.3/lib/puma/thread_pool.rb:94:in `call'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/puma-1.6.3/lib/puma/thread_pool.rb:94:in `block in spawn_thread'
from chef-zero.
The version of chef_zero in chef chef-11.8.2-1 that was downloaded to the Vagrant VM via Chef Omnibus (latest) was asking for a filename, however the latest version in master is asking for a json string. There is a bug in the current "stable" version, but the current version of master appears to work fine.
The question I have is... from the .kitchen.yml file, how would I specify it pull the latest version of chef_zero from master?
from chef-zero.
@HighwayofLife that is not currently possible. I'll see about cutting a new release.
from chef-zero.
Related Issues (20)
- kitchen and chef-zero 404ing on data bag HOT 3
- check if a data_bag exists HOT 1
- chef-zero should make data available on save HOT 4
- Exception when file has #2 at the end of name HOT 1
- Chef zero outputs too much information for info log level HOT 3
- Chef encountered an error attempting to load the node data HOT 2
- Should do a release HOT 7
- Uploading cookbooks to chef-zero using berks often crashes when Request timeout is 300 HOT 3
- Improper require of Hashie causing error (NameError: uninitialized constant Hashie::Extensions::Array) HOT 5
- Unable to connect to chef-zero HOT 1
- Chef 13 vs Chef 12 ip address resolution HOT 1
- Completely arbitrary ruby version requirement HOT 2
- Need a mode of operation where chef-zero runs in-memory but populates from the disk cache
- Do not format the node definition JSON file after converging HOT 1
- Could chef-zero please support fetching inspec profiles?
- Re-raising exception: URI::InvalidURIError - bad URI(is not URI?)
- missing webrick makes chef-zero fail
- Add unique email contraint while creating user
- Configuring the chef-zero-automate reporter for the compliance phase 404s in TK against chef-zero
- Policy Groups in the policy file details (chef-zero) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef-zero.