Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-656

puppetdb 2.0.0 throws exception after yum update

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PDB 2.0.0
    • Fix Version/s: PDB 2.0.0
    • Component/s: None
    • Labels:
    • Environment:

      CentOS 6.5

    • Template:

      Description

      After doing a simple `yum update` on the puppet server to fix the EPEL issue puppetdb was as well upgraded. PuppetDB won't start and throws an exception because of a missing log4j.properties file (which should be depreciated, as far as I can tell from the git sources). Puppetlabs Devel repositories active.

      I'm currently trying to fix this issue by downgrading to PuppetDB 1.6.

      Is this a known issue? I could not find a bug report for this yet.

      [root@puppet puppetdb]# puppetdb foreground
      ch.qos.logback.core.joran.spi.JoranException: Could not open [/etc/puppetdb/log4j.properties].
       at ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:80)
          ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:68)
          sun.reflect.NativeMethodAccessorImpl.invoke0 (NativeMethodAccessorImpl.java:-2)
          sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
          sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          java.lang.reflect.Method.invoke (Method.java:606)
          clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:93)
          clojure.lang.Reflector.invokeInstanceMethod (Reflector.java:28)
          puppetlabs.trapperkeeper.logging$configure_logger_via_file_BANG_.invoke (logging.clj:81)
          puppetlabs.trapperkeeper.logging$configure_logging_BANG_.invoke (logging.clj:90)
          puppetlabs.trapperkeeper.config$initialize_logging_BANG_.invoke (config.clj:103)
          puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke (core.clj:111)
          puppetlabs.trapperkeeper.core$run.invoke (core.clj:145)
          puppetlabs.trapperkeeper.core$main.doInvoke (core.clj:160)
          clojure.lang.RestFn.applyTo (RestFn.java:137)
          clojure.core$apply.invoke (core.clj:624)
          com.puppetlabs.puppetdb.cli.services$_main.doInvoke (services.clj:365)
          clojure.lang.RestFn.invoke (RestFn.java:421)
          clojure.lang.Var.invoke (Var.java:383)
          clojure.lang.AFn.applyToHelper (AFn.java:156)
          clojure.lang.Var.applyTo (Var.java:700)
          clojure.core$apply.invoke (core.clj:624)
          com.puppetlabs.puppetdb.core$run_command.invoke (core.clj:87)
          com.puppetlabs.puppetdb.core$_main.doInvoke (core.clj:95)
          clojure.lang.RestFn.invoke (RestFn.java:436)
          clojure.lang.Var.invoke (Var.java:388)
          clojure.lang.AFn.applyToHelper (AFn.java:160)
          clojure.lang.Var.applyTo (Var.java:700)
          clojure.core$apply.invoke (core.clj:624)
          clojure.main$main_opt.invoke (main.clj:315)
          clojure.main$main.doInvoke (main.clj:420)
          clojure.lang.RestFn.invoke (RestFn.java:482)
          clojure.lang.Var.invoke (Var.java:401)
          clojure.lang.AFn.applyToHelper (AFn.java:171)
          clojure.lang.Var.applyTo (Var.java:700)
          clojure.main.main (main.java:37)
      Caused by: java.io.FileNotFoundException: /etc/puppetdb/log4j.properties (No such file or directory)
       at java.io.FileInputStream.open (FileInputStream.java:-2)
          java.io.FileInputStream.<init> (FileInputStream.java:146)
          ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:75)
          ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:68)
          sun.reflect.NativeMethodAccessorImpl.invoke0 (NativeMethodAccessorImpl.java:-2)
          sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
          sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          java.lang.reflect.Method.invoke (Method.java:606)
          clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:93)
          clojure.lang.Reflector.invokeInstanceMethod (Reflector.java:28)
          puppetlabs.trapperkeeper.logging$configure_logger_via_file_BANG_.invoke (logging.clj:81)
          puppetlabs.trapperkeeper.logging$configure_logging_BANG_.invoke (logging.clj:90)
          puppetlabs.trapperkeeper.config$initialize_logging_BANG_.invoke (config.clj:103)
          puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke (core.clj:111)
          puppetlabs.trapperkeeper.core$run.invoke (core.clj:145)
          puppetlabs.trapperkeeper.core$main.doInvoke (core.clj:160)
          clojure.lang.RestFn.applyTo (RestFn.java:137)
          clojure.core$apply.invoke (core.clj:624)
          com.puppetlabs.puppetdb.cli.services$_main.doInvoke (services.clj:365)
          clojure.lang.RestFn.invoke (RestFn.java:421)
          clojure.lang.Var.invoke (Var.java:383)
          clojure.lang.AFn.applyToHelper (AFn.java:156)
          clojure.lang.Var.applyTo (Var.java:700)
          clojure.core$apply.invoke (core.clj:624)
          com.puppetlabs.puppetdb.core$run_command.invoke (core.clj:87)
          com.puppetlabs.puppetdb.core$_main.doInvoke (core.clj:95)
          clojure.lang.RestFn.invoke (RestFn.java:436)
          clojure.lang.Var.invoke (Var.java:388)
          clojure.lang.AFn.applyToHelper (AFn.java:160)
          clojure.lang.Var.applyTo (Var.java:700)
          clojure.core$apply.invoke (core.clj:624)
          clojure.main$main_opt.invoke (main.clj:315)
          clojure.main$main.doInvoke (main.clj:420)
          clojure.lang.RestFn.invoke (RestFn.java:482)
          clojure.lang.Var.invoke (Var.java:401)
          clojure.lang.AFn.applyToHelper (AFn.java:171)
          clojure.lang.Var.applyTo (Var.java:700)
          clojure.main.main (main.java:37)
      [root@puppet puppetdb]# rpm -qa | grep puppetdb
      puppetdb-terminus-2.0.0-0.1rc1.el6.noarch
      puppetdb-2.0.0-0.1rc1.el6.noarch
      [root@puppet puppetdb]# 
      

      This error can also appear like this:

      ch.qos.logback.core.joran.spi.JoranException: Problem parsing XML document. See previously reported errors.
       at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents (SaxEventRecorder.java:67)
          ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:134)
          ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:99)
          ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:76)
          ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:68)
          sun.reflect.NativeMethodAccessorImpl.invoke0 (NativeMethodAccessorImpl.java:-2)
          sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
          sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          java.lang.reflect.Method.invoke (Method.java:606)
          clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:93)
          clojure.lang.Reflector.invokeInstanceMethod (Reflector.java:28)
          puppetlabs.trapperkeeper.logging$configure_logger_via_file_BANG_.invoke (logging.clj:81)
          puppetlabs.trapperkeeper.logging$configure_logging_BANG_.invoke (logging.clj:90)
          puppetlabs.trapperkeeper.config$initialize_logging_BANG_.invoke (config.clj:103)
          puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke (core.clj:111)
          puppetlabs.trapperkeeper.core$run.invoke (core.clj:145)
          puppetlabs.trapperkeeper.core$main.doInvoke (core.clj:160)
          clojure.lang.RestFn.applyTo (RestFn.java:137)
          clojure.core$apply.invoke (core.clj:624)
          com.puppetlabs.puppetdb.cli.services$_main.doInvoke (services.clj:365)
          clojure.lang.RestFn.invoke (RestFn.java:421)
          clojure.lang.Var.invoke (Var.java:383)
          clojure.lang.AFn.applyToHelper (AFn.java:156)
          clojure.lang.Var.applyTo (Var.java:700)
          clojure.core$apply.invoke (core.clj:624)
          com.puppetlabs.puppetdb.core$run_command.invoke (core.clj:87)
          com.puppetlabs.puppetdb.core$_main.doInvoke (core.clj:95)
          clojure.lang.RestFn.invoke (RestFn.java:436)
          clojure.lang.Var.invoke (Var.java:388)
          clojure.lang.AFn.applyToHelper (AFn.java:160)
          clojure.lang.Var.applyTo (Var.java:700)
          clojure.core$apply.invoke (core.clj:624)
          clojure.main$main_opt.invoke (main.clj:315)
          clojure.main$main.doInvoke (main.clj:420)
          clojure.lang.RestFn.invoke (RestFn.java:482)
          clojure.lang.Var.invoke (Var.java:401)
          clojure.lang.AFn.applyToHelper (AFn.java:171)
          clojure.lang.Var.applyTo (Var.java:700)
          clojure.main.main (main.java:37)
      Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1239)
          com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse (SAXParserImpl.java:649)
          com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse (SAXParserImpl.java:333)
          ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents (SaxEventRecorder.java:61)
          ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:134)
          ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:99)
          ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:76)
          ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:68)
          sun.reflect.NativeMethodAccessorImpl.invoke0 (NativeMethodAccessorImpl.java:-2)
          sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
          sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          java.lang.reflect.Method.invoke (Method.java:606)
          clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:93)
          clojure.lang.Reflector.invokeInstanceMethod (Reflector.java:28)
          puppetlabs.trapperkeeper.logging$configure_logger_via_file_BANG_.invoke (logging.clj:81)
          puppetlabs.trapperkeeper.logging$configure_logging_BANG_.invoke (logging.clj:90)
          puppetlabs.trapperkeeper.config$initialize_logging_BANG_.invoke (config.clj:103)
          puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke (core.clj:111)
          puppetlabs.trapperkeeper.core$run.invoke (core.clj:145)
          puppetlabs.trapperkeeper.core$main.doInvoke (core.clj:160)
          clojure.lang.RestFn.applyTo (RestFn.java:137)
          clojure.core$apply.invoke (core.clj:624)
          com.puppetlabs.puppetdb.cli.services$_main.doInvoke (services.clj:365)
          clojure.lang.RestFn.invoke (RestFn.java:421)
          clojure.lang.Var.invoke (Var.java:383)
          clojure.lang.AFn.applyToHelper (AFn.java:156)
          clojure.lang.Var.applyTo (Var.java:700)
          clojure.core$apply.invoke (core.clj:624)
          com.puppetlabs.puppetdb.core$run_command.invoke (core.clj:87)
          com.puppetlabs.puppetdb.core$_main.doInvoke (core.clj:95)
          clojure.lang.RestFn.invoke (RestFn.java:436)
          clojure.lang.Var.invoke (Var.java:388)
          clojure.lang.AFn.applyToHelper (AFn.java:160)
          clojure.lang.Var.applyTo (Var.java:700)
          clojure.core$apply.invoke (core.clj:624)
          clojure.main$main_opt.invoke (main.clj:315)
          clojure.main$main.doInvoke (main.clj:420)
          clojure.lang.RestFn.invoke (RestFn.java:482)
          clojure.lang.Var.invoke (Var.java:401)
          clojure.lang.AFn.applyToHelper (AFn.java:171)
          clojure.lang.Var.applyTo (Var.java:700)
          clojure.main.main (main.java:37)
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  azet Aaron Zauner
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: