Giter Site home page Giter Site logo

Comments (7)

djoos avatar djoos commented on August 16, 2024

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.

rnhurt avatar rnhurt commented on August 16, 2024

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.

djoos avatar djoos commented on August 16, 2024

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.

djoos avatar djoos commented on August 16, 2024

Hi @rnhurt,

do you have any updates on this issue?
Thanks in advance!

Kind regards,
David

from newrelic.

rnhurt avatar rnhurt commented on August 16, 2024

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.

rnhurt avatar rnhurt commented on August 16, 2024

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.

djoos avatar djoos commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.