DataDog Agent Cookbook

Greetings Professionals,

I installed cookbook Datadog agent from chef supermarket i trying to upload it to Chef-Server…during this process i am getting this error message

WARNING: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Uploading datadog [2.8.1]
ERROR: Cookbook datadog depends on cookbooks which are not currently
ERROR: being uploaded and cannot be found on the server.
ERROR: The missing cookbook(s) are: ‘apt’ version ‘>= 0.0.0’, ‘chef_handler’ version '~> 1.1

when i tried using berks install to remove dependencies i get this error

Required artifacts do not exist at the desired version
Missing artifacts: apt version >= 0.0.0
Unable to find a solution for demands: apt version >= 0.0.0 (>= 0.0.0)

I later installed the latest version of apt and chef_handler and uploaded them to chef server and again tried uploading data dog but still i get this message
ERROR: Cookbook datadog depends on cookbooks which are not currently
ERROR: being uploaded and cannot be found on the server.
ERROR: The missing cookbook(s) are: ‘apt’ version ‘>= 0.0.0’, ‘chef_handler’ version '~> 1.1

Please help me…!

Thanks
Prash

This seems like you’ve uploaded the datadog cookbook to the server without it’s dependencies. A berks install won’t modify anything on the server, you’d need to use berks upload to push changes to the Berksfile.lock up to the chef-server. In order to remove dependencies, that would need to be updated in the metadata.rb of the cookbook and re-uploaded (whether via knife or berks).

The last message makes me think the cookbooks aren’t actually there on the server still. You can list the latest version of the cookbooks that on the server by using knife cookbook list to make sure things are there and use knife cookbook show COOKBOOK to see all versions.

If you’d like some more interactive assistance join us in the Slack channel for some closer to realtime interaction.

-cheeseplus