[PDB-661] puppetdb 2.0 not starting after upgrade Created: 2014/05/08  Updated: 2014/05/08  Resolved: 2014/05/08

Status: Closed
Project: PuppetDB
Component/s: None
Affects Version/s: PDB 2.0.0
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Andreas Sieferlinger Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: ubuntu
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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


Issue Links:
Duplicate
duplicates PDB-656 puppetdb 2.0.0 throws exception after... Closed
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



 Comments   
Comment by Ken Barber [ 2014/05/08 ]

This is a duplicate of PDB-656. Check that ticket for the full explanation, but basically you need to correct your config.ini:

logging-config = /etc/puppetdb/logback.xml

Comment by Andreas Sieferlinger [ 2014/05/08 ]

I can't find a note on this in the release notes at http://docs.puppetlabs.com/puppetdb/latest/release_notes.html#section
Probably this should be mentioned there.

Comment by Ken Barber [ 2014/05/08 ]

Andreas Sieferlinger good point, I had the warnings in the announcement but not on the web based release notes: https://github.com/puppetlabs/puppetdb/pull/963

Generated at Thu Jul 18 12:38:16 PDT 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.