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
HTTP Request Returned 404 Not Found: Object not found: /reports/nodes/vagrantvm1-local/runs #12
Comments
Hey, Thanks for reporting this. Just want to double check that you have the latest version (0.2.4). Going over the log, a few things seems strange. It doesn't show Chef Zero uploading anything except for nodes. Additionally when it tries to access the node info, it goes through a url starting with I'll keep investigating for now. |
Thanks. Yeah the /report url seemed strange to me too. { Here is the vagrant plugins list I have: vagrant-chef-zero (0.2.4) Here are local gems I have for my RVM 1.9.3 environment just in case: *** LOCAL GEMS *** bigdecimal (1.1.0) |
The reports URL is actually where is will try to find info from previous runs, and it is ok if it fails. |
@jbpadgett |
Having trouble getting vagrant-chef-zero to register clients and execute.
I also cannot connect to the chef-zero server using knife.
Questions:
Do I need to add json files in the nodes directory for each vm in the vagrantfile by name? I tried this but got no love.
Does vagrant-chef-zero/chef-zero automatically upload all the cookbooks in the paths specified in the config.chef_zero blocks? or do I need to use knife to do this?
Here is my local environment:
OSX Lion 10.8.4
RVM with 1.9.3
VirtualBox 4.2.12 (with ext pack 4.2.12)
Vagrant 1.2.2
Chef gem under the 1.9.3 RVM environment
Here is my Vagrantfile
Vagrant.configure("2") do |config|
#VAGRANT_LOG = debug
#config.berkshelf.enabled = true
config.ssh.timeout = 120
#chef-zero configuration block
#chef-zero runs on the host machine not the guest
# config.chef_zero.enabled = false
config.chef_zero.nodes = "/Users/jeff/git-repos/vagrantprojects/vagrant-chef-zero/nodes"
config.chef_zero.environments = "/Users/jeff/git-repos/vagrantprojects/vagrant-chef-zero/environments"
config.chef_zero.data_bags = "/Users/jeff/git-repos/vagrantprojects/vagrant-chef-zero/data_bags"
config.chef_zero.cookbooks = "/Users/jeff/git-repos/vagrantprojects/vagrant-chef-zero/cookbooks"
config.chef_zero.roles = "/Users/jeff/git-repos/vagrantprojects/vagrant-chef-zero/roles"
end
Here is the error I get when doing vagrant up with my vagrant file:
[vm1] Importing base box 'centos64basebox'...
[vm1] Matching MAC address for NAT networking...
[vm1] Setting the name of the VM...
[vm1] Clearing any previously set forwarded ports...
[Chef Zero] Starting Chef Zero at http://192.168.1.52:4000
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Creating Node vagrantvm1-local
[Chef Zero] Creating Node vagrantvm2-local
[vm1] Creating shared folders metadata...
[vm1] Clearing any previously set network interfaces...
[vm1] Preparing network interfaces based on configuration...
[vm1] Forwarding ports...
[vm1] -- 22 => 2222 (adapter 1)
[vm1] Booting VM...
[vm1] Waiting for VM to boot. This can take a few minutes.
[vm1] VM booted and ready for use!
[vm1] Setting hostname...
[vm1] Configuring and enabling network interfaces...
[vm1] Mounting shared folders...
[vm1] -- /vagrant
[vm1] Running provisioner: chef_client...
Creating folder to hold client key...
Uploading chef client validation key...
Generating chef JSON and uploading...
[vm1] Warning: Chef solo run list is empty. This may not be what you want.
Running chef-client...
[2013-07-05T19:40:48-07:00] INFO: *** Chef 11.4.4 ***
[2013-07-05T19:40:48-07:00] INFO: [inet6] no default interface, picking the first ipaddress
[2013-07-05T19:40:49-07:00] INFO: Client key /etc/chef/client.pem is not present - registering
[2013-07-05T19:40:49-07:00] INFO: Run List is []
[2013-07-05T19:40:49-07:00] INFO: Run List expands to []
[2013-07-05T19:40:49-07:00] INFO: HTTP Request Returned 404 Not Found: Object not found: /reports/nodes/vagrantvm1-local/runs
[2013-07-05T19:40:49-07:00] INFO: Starting Chef Run for vagrantvm1-local
[2013-07-05T19:40:49-07:00] INFO: Running start handlers
[2013-07-05T19:40:49-07:00] INFO: Start handlers complete.
[2013-07-05T19:40:49-07:00] INFO: Loading cookbooks []
[2013-07-05T19:40:49-07:00] WARN: Node vagrantvm1-local has an empty run list.
[2013-07-05T19:40:49-07:00] INFO: Chef Run complete in 0.039698792 seconds
[2013-07-05T19:40:49-07:00] INFO: Running report handlers
[2013-07-05T19:40:49-07:00] INFO: Report handlers complete
The text was updated successfully, but these errors were encountered: