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

Dashboard does not work when postgres is unavailable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 4.4.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Systems Engineering
    • Story Points:
      1
    • Sprint:
      PuppetDB 2017-04-05
    • QA Risk Assessment:
      Needs Assessment

      Description

      The dashboard is blank, and in the logs you see

      2017-02-27 21:31:14,459 WARN  [o.e.j.s.HttpChannel] /pdb/dashboard/data
      java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number
              at clojure.lang.Numbers.multiply(Numbers.java:148)                            
              at puppetlabs.puppetdb.dashboard$eval42709$get_dashboard_data__42714$fn__42715$iter__42716__42720$fn__42721$fn__42722.invoke(dashboard.clj:162)
              at puppetlabs.puppetdb.dashboard$eval42709$get_dashboard_data__42714$fn__42715$iter__42716__42720$fn__42721.invoke(dashboard.clj:158)
              at clojure.lang.LazySeq.sval(LazySeq.java:40)                                     
              at clojure.lang.LazySeq.seq(LazySeq.java:49)
              at clojure.lang.RT.seq(RT.java:521)                                                 
              at clojure.core$seq__4357.invokeStatic(core.clj:137)                                
              at clojure.core$seq__4357.invoke(core.clj:137)                                      
              at schema.spec.collection$element_transformer$fn__462.invoke(collection.clj:26)     
              at schema.spec.collection.CollectionSpec$fn__502.invoke(collection.clj:79)
              at clojure.core$comp$fn__4727.invoke(core.clj:2460)
              at puppetlabs.puppetdb.dashboard$eval42709$get_dashboard_data__42714.invoke(dashboard.clj:156)
              at puppetlabs.puppetdb.dashboard$build_app$fn__42745.invoke(dashboard.clj:171)
              at bidi.ring$eval31569$fn__31570.invoke(ring.clj:21)
              at bidi.ring$eval31548$fn__31549$G__31539__31558.invoke(ring.clj:12)
              at puppetlabs.puppetdb.middleware$eval32829$make_pdb_handler__32838$fn__32841$fn__32843.invoke(middleware.clj:341)
              at compojure.core$routing$fn__8655.invoke(core.clj:151)
              at clojure.core$some.invokeStatic(core.clj:2592)
              at clojure.core$some.invoke(core.clj:2583)
              at compojure.core$routing.invokeStatic(core.clj:151)
              at compojure.core$routing.doInvoke(core.clj:148)
              at clojure.lang.RestFn.invoke(RestFn.java:423)
              at puppetlabs.puppetdb.pdb_routing$wrap_with_context$fn__42797.invoke(pdb_routing.clj:35)
              at compojure.core$if_context$fn__8717.invoke(core.clj:218)
              at compojure.core$routing$fn__8655.invoke(core.clj:151)
              at clojure.core$some.invokeStatic(core.clj:2592)
              at clojure.core$some.invoke(core.clj:2583)
              at compojure.core$routing.invokeStatic(core.clj:151)
              at compojure.core$routing.doInvoke(core.clj:148)
              at clojure.lang.RestFn.applyTo(RestFn.java:139)
              at clojure.core$apply.invokeStatic(core.clj:648)
      

      reproduce by stopping postgres and checking out the dashboard.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            wyatt Wyatt Alt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support