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

puppetdb 2.0 not starting after upgrade

    Details

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

      Ubuntu 12.04.4
      puppet: 3.5.1-1puppetlabs1
      puppetdb: 2.0.0-1puppetlabs1

    • Template:

      Description

      I've upgraded puppetdb from 1.6.3-1puppetlabs1 to 2.0.0-1puppetlabs1 today.
      After the upgrade puppetdb fails to start with the following error

      puppetdb foreground
      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)
      

      mhh XML, weird.
      according to strace the last files opened before the error are:

      open("/etc/puppetdb/conf.d/jetty.ini", O_RDONLY) = 16
      open("/etc/puppetdb/conf.d/repl.ini", O_RDONLY) = 16
      open("/etc/puppetdb/conf.d/database.ini", O_RDONLY) = 16
      open("/etc/puppetdb/conf.d/config.ini", O_RDONLY) = 16
      open("/etc/puppetdb/log4j.properties", O_RDONLY) = 16
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  webrat Andreas Sieferlinger
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: