echocat / puppet-graphite

Puppet module for graphite monitoring tools
Other
67 stars 200 forks source link

Internal Server Error - Ubuntu Trusty 64, nothing in error log #193

Closed dspeele closed 9 years ago

dspeele commented 9 years ago

Error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Apache/2.4.7 (Ubuntu) Server at 196.168.44.22 Port 80

There are no relevant errors in the Apache error log:

[Mon Jun 01 04:04:40.609362 2015] [mpm_event:notice] [pid 8390:tid 140207636830080] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Jun 01 04:04:40.609464 2015] [core:notice] [pid 8390:tid 140207636830080] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jun 01 04:07:55.847476 2015] [mpm_event:notice] [pid 8390:tid 140207636830080] AH00491: caught SIGTERM, shutting down
[Mon Jun 01 04:07:56.900234 2015] [mpm_event:notice] [pid 21207:tid 140475165308800] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Mon Jun 01 04:07:56.900382 2015] [core:notice] [pid 21207:tid 140475165308800] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jun 01 04:07:58.326355 2015] [mpm_event:notice] [pid 21207:tid 140475165308800] AH00491: caught SIGTERM, shutting down
[Mon Jun 01 04:07:59.385005 2015] [so:warn] [pid 21356:tid 139675631552384] AH01574: module wsgi_module is already loaded, skipping
[Mon Jun 01 04:07:59.387687 2015] [mpm_event:notice] [pid 21357:tid 139675631552384] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Mon Jun 01 04:07:59.387718 2015] [core:notice] [pid 21357:tid 139675631552384] AH00094: Command line: '/usr/sbin/apache2'

Manifest:

include 'sbtubuntu'

class { 'java':
  package => 'openjdk-7-jdk'
}

class { 'nodejs':
  version => 'latest'
}

include '::mongodb::server'

class {'graphite':
  gr_apache_24 => true
}

class {'statsd':
  backends     => ['./backends/graphite'],
  graphiteHost => 'localhost',
  require          => Class['nodejs']
}

Puppetfile:

#!/usr/bin/env ruby
#^syntax detection

forge "https://forgeapi.puppetlabs.com"
mod 'willdurand-nodejs'
mod 'puppetlabs-mongodb'
mod 'puppetlabs-java'
mod 'jdowning-statsd'
mod 'dwerder-graphite'

mod 'hbcd-sbtubuntu',
  :git => 'git@github.com:dspeele/hbcd-sbtubuntu.git',
  :ref  => 'v1.0.0'

Vagrantfile:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.network "private_network", ip: "196.168.44.22"
  config.vm.provider "virtualbox" do |vb|
    vb.memory = "4096"
  end

  config.puppet_install.puppet_version = "3.7.4"

  config.librarian_puppet.puppetfile_dir = "puppet"
  config.librarian_puppet.placeholder_filename = ".gitkeep"

  config.vm.provision "puppet" do |puppet|
    puppet.manifests_path = "puppet"
    puppet.manifest_file = "site.pp"
    puppet.module_path = "puppet/modules"
  end

end

Please help!

Dana

dspeele commented 9 years ago

One more piece of info, the output from the provisioning:

==> default: Notice: /Stage[main]/Mongodb::Server::Install/Package[mongodb_server]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Sbtubuntu/Exec[set-repo]/returns: executed successfully
==> default: Notice: /Stage[main]/Graphite::Install/Package[python-sqlite]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Graphite::Install/Package[python-pip]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Graphite::Install/Package[python-memcache]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Graphite::Install/Package[python-mysqldb]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Graphite::Install/Package[python-django]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Graphite::Install/Package[python-tz]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Graphite::Install/Package[python-dev]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Graphite::Install/Package[python-cairo]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-latest]/File[nodejs-install-dir]/ensure: created
==> default: Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-latest]/File[/usr/local/node/node-v0.12.4]/ensure: created
==> default: Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-latest]/Package[semver]/ensure: created
==> default: Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-latest]/Wget::Fetch[nodejs-download-v0.12.4]/Exec[wget-nodejs-download-v0.12.4]/returns: executed successfully
==> default: Notice: /Stage[main]/Graphite::Config_apache/Package[apache2]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Java/Package[java]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Statsd::Config/File[/etc/default/statsd]/ensure: defined content as '{md5}a6c1b9fc885257a4ad046140503b6a5a'
==> default: Notice: /Stage[main]/Statsd::Config/File[/etc/init/statsd.conf]/ensure: defined content as '{md5}5b6412f4296de44623292f3554ceace8'
==> default: Notice: /Stage[main]/Statsd::Config/File[/usr/local/sbin/statsd]/ensure: defined content as '{md5}2966a89a0d9a535d6df7264f4d4c5f8f'
==> default: Notice: /Stage[main]/Statsd::Config/File[/etc/statsd]/ensure: created
==> default: Notice: /Stage[main]/Statsd::Config/File[/var/log/statsd]/ensure: created
==> default: Notice: /Stage[main]/Sbtubuntu/Exec[update]/returns: executed successfully
==> default: Notice: /Stage[main]/Sbtubuntu/Exec[install-sbt]/returns: executed successfully
==> default: Notice: /Stage[main]/Graphite::Install/Package[python-ldap]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Statsd::Config/File[/etc/statsd/localConfig.js]/ensure: defined content as '{md5}1baa1944c50af578d5e6725b36a4462d'
==> default: Notice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongodb.conf]/content: content changed '{md5}f3827b0188f8ce594abb3ebee1808027' to '{md5}a1f66c36af41ec91fa38fd25861da946'
==> default: Notice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 events
==> default: Notice: /Stage[main]/Graphite::Install/Package[python-psycopg2]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Graphite::Install/Package[django-tagging]/ensure: created
==> default: Notice: /Stage[main]/Graphite::Install/Package[twisted]/ensure: created
==> default: Notice: /Stage[main]/Graphite::Install/Package[txamqp]/ensure: created
==> default: Notice: /Stage[main]/Graphite::Install/Package[graphite-web]/ensure: created
==> default: Notice: /Stage[main]/Graphite::Install/Package[carbon]/ensure: created
==> default: Notice: /Stage[main]/Graphite::Install/Package[whisper]/ensure: created
==> default: Notice: /Stage[main]/Graphite::Install/File[/usr/lib/python2.7/dist-packages/graphite_web-0.9.12-py2.7.egg-info]/ensure: created
==> default: Notice: /Stage[main]/Graphite::Install/File[/usr/lib/python2.7/dist-packages/carbon-0.9.12-py2.7.egg-info]/ensure: created
==> default: Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/conf/storage-schemas.conf]/ensure: defined content as '{md5}c9e2cc2b133ffe704015d91d4876817e'
==> default: Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/conf/carbon.conf]/ensure: defined content as '{md5}621a284ff9b16a507301bd3fd21d1955'
==> default: Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/conf/storage-aggregation.conf]/ensure: defined content as '{md5}9a9a9319750430659ba6b0c938c9655b'
==> default: Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/webapp/graphite/local_settings.py]/ensure: defined content as '{md5}03cc3fc3659a271c4020ceede6cd99be'
==> default: Notice: /Stage[main]/Graphite::Config/Exec[Initial django db creation]: Triggered 'refresh' from 2 events
==> default: Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/conf/whitelist.conf]/ensure: defined content as '{md5}be63d267d82661b9391dbbe59b55b41c'
==> default: Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/bin/carbon-logrotate.sh]/ensure: defined content as '{md5}95816c5ddd3561291a4be91fc775fa8a'
==> default: Notice: /Stage[main]/Graphite::Config/Cron[Rotate carbon logs]/ensure: created
==> default: Notice: /Stage[main]/Graphite::Config/File[/etc/init.d/carbon-cache]/ensure: defined content as '{md5}8797756612cb9b7437075381e2c44c16'
==> default: Notice: /Stage[main]/Graphite::Config/Service[carbon-cache]/ensure: ensure changed 'stopped' to 'running'
==> default: Notice: /Stage[main]/Graphite::Config/Exec[Chown graphite for web user]: Triggered 'refresh' from 3 events
==> default: Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/conf/graphite.wsgi]/ensure: defined content as '{md5}4714e01760eaec667ccab3bb747397af'
==> default: Notice: /Stage[main]/Graphite::Config_apache/Package[libapache2-mod-wsgi]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Graphite::Config_apache/File[/etc/apache2/ports.conf]/content: content changed '{md5}a961f23471d985c2b819b652b7f64321' to '{md5}33193cef68e8cc024a4688405364a931'
==> default: Notice: /Stage[main]/Graphite::Config_apache/File[/etc/apache2/ports.conf]/owner: owner changed 'root' to 'www-data'
==> default: Notice: /Stage[main]/Graphite::Config_apache/File[/etc/apache2/ports.conf]/group: group changed 'root' to 'www-data'
==> default: Notice: /Stage[main]/Graphite::Config_apache/File[/etc/apache2/sites-available/graphite.conf]/ensure: defined content as '{md5}70795d00d5bdf23e0a88452744adf8ca'
==> default: Notice: /Stage[main]/Graphite::Config_apache/File[/etc/apache2/sites-enabled/graphite.conf]/ensure: created
==> default: Notice: /Stage[main]/Graphite::Config_apache/Exec[Disable default apache site]/returns: executed successfully
==> default: Notice: /Stage[main]/Graphite::Config_apache/Service[apache2]: Triggered 'refresh' from 6 events
==> default: Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-latest]/Exec[nodejs-unpack-v0.12.4]/returns: executed successfully
==> default: Notice: /Stage[main]/Nodejs/File[/usr/local/node/node-default]/ensure: created
==> default: Notice: /Stage[main]/Nodejs/File[/etc/profile.d/nodejs.sh]/ensure: defined content as '{md5}083cd12070bc116336e4d9cd279fe699'
==> default: Notice: /Stage[main]/Statsd/Package[statsd]/ensure: created
==> default: Notice: /Stage[main]/Statsd/Service[statsd]/ensure: ensure changed 'stopped' to 'running'
==> default: Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/conf/blacklist.conf]/ensure: defined content as '{md5}12d3c50b2398a6ba571ed26dc99d169f'
==> default: Notice: Finished catalog run in 974.56 seconds
dwerder commented 9 years ago

I have no clue. The puppet logs looks fine. You can try to use the official puppetlabs-apache module instead of the build in mechanic of this module. You can find an how-to in the README.md. Maybe that works better.

dspeele commented 9 years ago

Okay, thanks for the quick reply and the nice module. It's worked for me with other base boxes in the past. I'll post on whether or not the puppetlabs apache module fixes the issue. Cheers

dspeele commented 9 years ago

Ugh, ended up using a Docker container. Not sure what the problem was but thanks for the great open source work and the assistance with my issue.

Regards,

Dana