Comments (7)
Hi @rnhurt,
I'm sorry for the issues you are having with the cookbook...
Could you let me know which recipe you included in your run? I've got the feeling you might be going for newrelic::server-monitor directly, skipping newrelic::repository...
If possible, go for "newrelic" (= newrelic::default implicitly), which includes the repository and server-monitoring in it's turn. Alternatively, just make sure to include newrelic::repository before any other recipe.
Hope this helps, thanks in advance for your feedback!
Kind regards,
David
from newrelic.
David,
Thanks for the quick reply. I'm using the newrelic::default
recipe and I can see from the log printout that it is loading the newrelic repo properly. Also, when I SSH to the box I am able to manually use Yum to install NewRelic so that tells me that it is being included properly.
Since I'm using OpsWorks on AWS, I tried to install again on a fresh server and got the same error message. :/ Any other clues or hints?
Thanx!
Richard
from newrelic.
Hi Richard,
hmmm, that's a weird one!
"No version specified, and no candidate version available for newrelic-sysmond" tells me you shouldn't be able to install "newrelic-sysmond" manually either, but you've tried that already and that was no problem, right?
Would you mind giving this a go? (in server-monitor.rb, line 11)
Rather than using...
package node['newrelic']['service_name'] do
action :install
end
...use:
yum_package node['newrelic']['service_name'] do
action :install
end
And let me know what the outcome of that is?
Thanks in advance for your feedback!
Kind regards,
David
P.S. Could you also let me know which version of Chef you're running? If I'm not mistaking 0.9.6 on OpsWorks, no?
from newrelic.
Hi @rnhurt,
do you have any updates on this issue?
Thanks in advance!
Kind regards,
David
from newrelic.
Sorry, I had some other problems pop up on me and couldn't finish testing yesterday.
I've re-ran the setup and it fails with nearly the same error (instead of "package" it now fails with "yum_package"). As you can see, it installs the [newrelic-repo] package without problems but then fails on the [newrelic-sysmond] package.
I tried to manually install it with the command yum install newrelic-sysmond
and it worked just fine (after answering 'Y' to two questions). Of course it won't run because the key is not in the config file, but other than that it looks good.
Any other hints as to what's going on?
[Thu, 29 Aug 2013 17:19:28 +0000] INFO: Installing package[newrelic-repo] version 5-3
[Thu, 29 Aug 2013 17:19:28 +0000] DEBUG: Executing rpm -U /opt/aws/opsworks/releases/20130806085134_135/conf/../newrelic-repo-5-3.noarch.rpm
[Thu, 29 Aug 2013 17:19:28 +0000] DEBUG: ---- Begin output of rpm -U /opt/aws/opsworks/releases/20130806085134_135/conf/../newrelic-repo-5-3.noarch.rpm ----
[Thu, 29 Aug 2013 17:19:28 +0000] DEBUG: STDOUT:
[Thu, 29 Aug 2013 17:19:28 +0000] DEBUG: STDERR: warning: /opt/aws/opsworks/releases/20130806085134_135/conf/../newrelic-repo-5-3.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 548c16bf: NOKEY
[Thu, 29 Aug 2013 17:19:28 +0000] DEBUG: ---- End output of rpm -U /opt/aws/opsworks/releases/20130806085134_135/conf/../newrelic-repo-5-3.noarch.rpm ----
[Thu, 29 Aug 2013 17:19:28 +0000] DEBUG: Ran rpm -U /opt/aws/opsworks/releases/20130806085134_135/conf/../newrelic-repo-5-3.noarch.rpm returned 0
[Thu, 29 Aug 2013 17:19:28 +0000] DEBUG: Processing yum_package[newrelic-sysmond] on php-search6.localdomain
[Thu, 29 Aug 2013 17:19:28 +0000] DEBUG: Checking yum info for newrelic-sysmond
[Thu, 29 Aug 2013 17:19:28 +0000] DEBUG: newrelic-sysmond: Installed version: Candidate version:
[Thu, 29 Aug 2013 17:19:28 +0000] ERROR: yum_package[newrelic-sysmond] (/opt/aws/opsworks/current/site-cookbooks/newrelic/recipes/server-monitor.rb:12:in `from_file') had an error:
No version specified, and no candidate version available for newrelic-sysmond
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/provider/package.rb:50:in `action_install'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/resource.rb:406:in `send'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/resource.rb:406:in `run_action'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/runner.rb:53:in `run_action'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/runner.rb:89:in `converge'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/runner.rb:89:in `each'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/runner.rb:89:in `converge'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/runner.rb:84:in `converge'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/client.rb:268:in `converge'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/client.rb:158:in `run'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/application/solo.rb:190:in `run_application'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/application/solo.rb:181:in `loop'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/application/solo.rb:181:in `run_application'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/../lib/chef/application.rb:62:in `run'
/opt/aws/opsworks/releases/20130806085134_135/vendor/bundle/ruby/1.8/gems/chef-0.9.15.5/bin/chef-solo:25
/opt/aws/opsworks/current/bin/chef-solo:16:in `load'
/opt/aws/opsworks/current/bin/chef-solo:16
from newrelic.
I think I have the answer. After creating a brand new OpsWorks stack for my application using Chef 11.4.4 everything seems to work properly. I'm still getting an error but thats because it can't find my configuration values (license key) probably because I don't have it set up correctly in OpsWorks yet.
So, the answer is that this recipe doesn't work with old Chef versions.
Thanx!
from newrelic.
Hi Richard,
thanks for the update!
I actually never tested the cookbook with anything less than Chef 10.x... If I'm not mistaking OpsWorks comes with 0.9.6. However, the root of the issue seemed to be the package/yum-resource.
Anyway: I don't recommend using the cookbook < Chef 10.x :-)
I'll have to add in a note on that in the README or the metadata...
Glad to hear you're (almost) up and running though, have a great weekend!
Kind regards,
David
from newrelic.
Related Issues (20)
- Newrelic dot APM agent doesnot upgrade HOT 4
- doesn't support strip_command_line parameter HOT 2
- Every node attribute used a default value to a property needs a `lazy { }` around it. HOT 6
- Cannot overwrite windows newrelic-infra agent source HOT 1
- Cloning resource attributes for service[newrelic-daemon] from prior resource HOT 1
- [agent_dotnet] Add support for enabling distributed tracing on the newrelic.config.erb template HOT 1
- Error executing action `enable` on resource 'newrelic_agent_infrastructure[Install]' is failing on debian7
- Default value of 'windows_checksum' in newrelic/resources/agent_infrastructure.rb does not match computed checksum HOT 1
- Recipe newrelic::java_agent fails install with the `Error executing action run on resource execute[newrelic_install_newrelic.jar]` HOT 2
- hello-world
- Hi world HOT 1
- Distributed Tracing feature in PHP Agent cookbook doesn't work
- add max_procs for newrelic_infra.yml
- Saleem A. H
- Compile Error on server_monitor.rb HOT 2
- "platform?" bug after ugprading newrelic version HOT 2
- Adding add event_queue_depth attribute to newrelic-infra.yml file is not there
- Cookbook failed on chef-client 17.8.25 HOT 2
- Hello World
- Please add Ubuntu 22.04 support, Ubuntu 20.04 fails with malformed repository line
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 newrelic.