NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.18k stars 14.19k forks source link

metabase: Problem reading font data (can't send emails from dashboard) #215562

Open bbigras opened 1 year ago

bbigras commented 1 year ago

Describe the bug

error ``` fév 09 14:27:13 nixos metabase[2840696]: 2023-02-09 14:27:13,314 ERROR middleware.log :: POST /api/pulse/test 500 9,0 s (33 appels de DB) fév 09 14:27:13 nixos metabase[2840696]: {:via fév 09 14:27:13 nixos metabase[2840696]: [{:type clojure.lang.ExceptionInfo, fév 09 14:27:13 nixos metabase[2840696]: :message fév 09 14:27:13 nixos metabase[2840696]: "Erreur d'enregistrement des polices : Metabase ne pourra pas envoyer les Pulses. C'est un problème connu de certaines JVMs. Voir https://github.com/metabase/metabase/issues/7986 et pour plus de détails.", fév 09 14:27:13 nixos metabase[2840696]: :data {}, fév 09 14:27:13 nixos metabase[2840696]: :at [metabase.pulse.render.style$register_fonts_BANG_ invokeStatic "style.clj" 126]} fév 09 14:27:13 nixos metabase[2840696]: {:type java.io.IOException, fév 09 14:27:13 nixos metabase[2840696]: :message "Problem reading font data.", fév 09 14:27:13 nixos metabase[2840696]: :at [java.awt.Font createFont0 "Font.java" 1183]}], fév 09 14:27:13 nixos metabase[2840696]: :trace fév 09 14:27:13 nixos metabase[2840696]: [[java.awt.Font createFont0 "Font.java" 1183] fév 09 14:27:13 nixos metabase[2840696]: [java.awt.Font createFont "Font.java" 1052] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse.render.style$register_font_BANG_ invokeStatic "style.clj" 114] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse.render.style$register_font_BANG_ invoke "style.clj" 111] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse.render.style$register_fonts_BANG_ invokeStatic "style.clj" 119] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse.render.style$register_fonts_BANG_ invoke "style.clj" 116] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse.render.style$fn__32836$fn__32837 invoke "style.clj" 130] fév 09 14:27:13 nixos metabase[2840696]: [clojure.lang.Delay deref "Delay.java" 42] fév 09 14:27:13 nixos metabase[2840696]: [clojure.core$deref invokeStatic "core.clj" 2337] fév 09 14:27:13 nixos metabase[2840696]: [clojure.core$deref invoke "core.clj" 2323] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse.render.style$fn__32836$fn__32839 invoke "style.clj" 131] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse.render.js_svg$render_svg invokeStatic "js_svg.clj" 95] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse.render.js_svg$render_svg invoke "js_svg.clj" 93] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse.render.js_svg$svg_string__GT_bytes invokeStatic "js_svg.clj" 108] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse.render.js_svg$svg_string__GT_bytes invoke "js_svg.clj" 107] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse.render.js_svg$icon invokeStatic "js_svg.clj" 193] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse.render.js_svg$icon invoke "js_svg.clj" 187] fév 09 14:27:13 nixos metabase[2840696]: [metabase.email.messages$icon_bundle invokeStatic "messages.clj" 68] fév 09 14:27:13 nixos metabase[2840696]: [metabase.email.messages$icon_bundle invoke "messages.clj" 65] fév 09 14:27:13 nixos metabase[2840696]: [metabase.email.messages$render_message_body invokeStatic "messages.clj" 480] fév 09 14:27:13 nixos metabase[2840696]: [metabase.email.messages$render_message_body invoke "messages.clj" 473] fév 09 14:27:13 nixos metabase[2840696]: [metabase.email.messages$render_pulse_email invokeStatic "messages.clj" 502] fév 09 14:27:13 nixos metabase[2840696]: [metabase.email.messages$render_pulse_email invoke "messages.clj" 499] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse$fn__80782 invokeStatic "pulse.clj" 309] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse$fn__80782 invoke "pulse.clj" 298] fév 09 14:27:13 nixos metabase[2840696]: [clojure.lang.MultiFn invoke "MultiFn.java" 239] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse$results__GT_notifications$iter__80812__80816$fn__80817 invoke "pulse.clj" 361] fév 09 14:27:13 nixos metabase[2840696]: [clojure.lang.LazySeq sval "LazySeq.java" 42] fév 09 14:27:13 nixos metabase[2840696]: [clojure.lang.LazySeq seq "LazySeq.java" 51] fév 09 14:27:13 nixos metabase[2840696]: [clojure.lang.RT seq "RT.java" 535] fév 09 14:27:13 nixos metabase[2840696]: [clojure.core$seq__5467 invokeStatic "core.clj" 139] fév 09 14:27:13 nixos metabase[2840696]: [clojure.core$seq__5467 invoke "core.clj" 139] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse$send_notifications_BANG_ invokeStatic "pulse.clj" 481] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse$send_notifications_BANG_ invoke "pulse.clj" 480] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse$send_pulse_BANG_ invokeStatic "pulse.clj" 508] fév 09 14:27:13 nixos metabase[2840696]: [metabase.pulse$send_pulse_BANG_ doInvoke "pulse.clj" 489] fév 09 14:27:13 nixos metabase[2840696]: [clojure.lang.RestFn invoke "RestFn.java" 410] fév 09 14:27:13 nixos metabase[2840696]: [metabase.api.pulse$fn__82104 invokeStatic "pulse.clj" 294] fév 09 14:27:13 nixos metabase[2840696]: [metabase.api.pulse$fn__82104 invoke "pulse.clj" 280] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$wrap_response$fn__29313 invoke "core.clj" 160] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$wrap_route_middleware$fn__29297 invoke "core.clj" 132] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$wrap_route_info$fn__29302 invoke "core.clj" 139] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$wrap_route_matches$fn__29306 invoke "core.clj" 151] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$wrap_route_matches$fn__29306 invoke "core.clj" 153] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$wrap_route_matches$fn__29306 invoke "core.clj" 153] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$wrap_route_matches$fn__29306 invoke "core.clj" 153] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$wrap_route_matches$fn__29306 invoke "core.clj" 152] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325 invoke "core.clj" 200] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.auth$enforce_authentication$fn__70597 invoke "auth.clj" 17] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325 invoke "core.clj" 200] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$handler__29353 invoke "core.clj" 289] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 299] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 300] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [metabase.api.routes$fn__82628$fn__82631 invoke "routes.clj" 64] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325 invoke "core.clj" 200] fév 09 14:27:13 nixos metabase[2840696]: [clojure.lang.AFn applyToHelper "AFn.java" 160] fév 09 14:27:13 nixos metabase[2840696]: [clojure.lang.AFn applyTo "AFn.java" 144] fév 09 14:27:13 nixos metabase[2840696]: [clojure.core$apply invokeStatic "core.clj" 667] fév 09 14:27:13 nixos metabase[2840696]: [clojure.core$apply invoke "core.clj" 662] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.routes$fn__82792$fn__82793 doInvoke "routes.clj" 69] fév 09 14:27:13 nixos metabase[2840696]: [clojure.lang.RestFn invoke "RestFn.java" 436] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325 invoke "core.clj" 200] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$handler__29353 invoke "core.clj" 289] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$make_context$fn__29357 invoke "core.clj" 299] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$wrap_route_matches$fn__29306 invoke "core.clj" 153] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$wrap_route_matches$fn__29306 invoke "core.clj" 153] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$wrap_route_matches$fn__29306 invoke "core.clj" 153] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326$respond_SINGLEQUOTE___29327 invoke "core.clj" 197] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.routes$fn__82777$fn__82779 invoke "routes.clj" 46] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325$f__29326 invoke "core.clj" 198] fév 09 14:27:13 nixos metabase[2840696]: [compojure.core$routes$fn__29325 invoke "core.clj" 200] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.exceptions$catch_uncaught_exceptions$fn__79072 invoke "exceptions.clj" 98] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.exceptions$catch_api_exceptions$fn__79069 invoke "exceptions.clj" 86] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.log$log_api_call$fn__84204$fn__84205$fn__84206 invoke "log.clj" 211] fév 09 14:27:13 nixos metabase[2840696]: [metabase.driver.sql_jdbc.execute.diagnostic$do_with_diagnostic_info invokeStatic "diagnostic.clj" 15] fév 09 14:27:13 nixos metabase[2840696]: [metabase.driver.sql_jdbc.execute.diagnostic$do_with_diagnostic_info invoke "diagnostic.clj" 9] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.log$log_api_call$fn__84204$fn__84205 invoke "log.clj" 203] fév 09 14:27:13 nixos metabase[2840696]: [toucan.db$_do_with_call_counting invokeStatic "db.clj" 236] fév 09 14:27:13 nixos metabase[2840696]: [toucan.db$_do_with_call_counting invoke "db.clj" 229] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.log$log_api_call$fn__84204 invoke "log.clj" 202] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.browser_cookie$ensure_browser_id_cookie$fn__87101 invoke "browser_cookie.clj" 38] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.security$add_security_headers$fn__63926 invoke "security.clj" 149] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.json$wrap_json_body$fn__86232 invoke "json.clj" 63] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.json$wrap_streamed_json_response$fn__86250 invoke "json.clj" 99] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.offset_paging$handle_paging$fn__63950 invoke "offset_paging.clj" 42] fév 09 14:27:13 nixos metabase[2840696]: [ring.middleware.keyword_params$wrap_keyword_params$fn__87368 invoke "keyword_params.clj" 55] fév 09 14:27:13 nixos metabase[2840696]: [ring.middleware.params$wrap_params$fn__87387 invoke "params.clj" 77] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.misc$maybe_set_site_url$fn__36696 invoke "misc.clj" 59] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.session$reset_session_timeout$fn__48385 invoke "session.clj" 394] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.session$bind_current_user$fn__48368$fn__48369 invoke "session.clj" 331] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.session$do_with_current_user invokeStatic "session.clj" 310] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.session$do_with_current_user invoke "session.clj" 299] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.session$bind_current_user$fn__48368 invoke "session.clj" 330] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.session$wrap_current_user_info$fn__48350 invoke "session.clj" 280] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.session$wrap_session_id$fn__48334 invoke "session.clj" 213] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.auth$wrap_api_key$fn__70605 invoke "auth.clj" 30] fév 09 14:27:13 nixos metabase[2840696]: [ring.middleware.cookies$wrap_cookies$fn__87288 invoke "cookies.clj" 216] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.misc$add_content_type$fn__36679 invoke "misc.clj" 27] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.misc$disable_streaming_buffering$fn__36704 invoke "misc.clj" 76] fév 09 14:27:13 nixos metabase[2840696]: [ring.middleware.gzip$wrap_gzip$fn__87330 invoke "gzip.clj" 86] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.misc$bind_request$fn__36707 invoke "misc.clj" 93] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.middleware.ssl$redirect_to_https_middleware$fn__87117 invoke "ssl.clj" 48] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server$async_proxy_handler$fn__83000 invoke "server.clj" 73] fév 09 14:27:13 nixos metabase[2840696]: [metabase.server.proxy$org.eclipse.jetty.server.handler.AbstractHandler$ff19274a handle nil -1] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.server.handler.StatisticsHandler handle "StatisticsHandler.java" 181] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.server.handler.HandlerWrapper handle "HandlerWrapper.java" 127] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.server.Server handle "Server.java" 516] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.server.HttpChannel lambda$handle$1 "HttpChannel.java" 487] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.server.HttpChannel dispatch "HttpChannel.java" 732] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.server.HttpChannel handle "HttpChannel.java" 479] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.server.HttpConnection onFillable "HttpConnection.java" 277] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.io.AbstractConnection$ReadCallback succeeded "AbstractConnection.java" 311] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.io.FillInterest fillable "FillInterest.java" 105] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.io.ChannelEndPoint$1 run "ChannelEndPoint.java" 104] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.util.thread.strategy.EatWhatYouKill runTask "EatWhatYouKill.java" 338] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.util.thread.strategy.EatWhatYouKill doProduce "EatWhatYouKill.java" 315] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.util.thread.strategy.EatWhatYouKill tryProduce "EatWhatYouKill.java" 173] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.util.thread.strategy.EatWhatYouKill run "EatWhatYouKill.java" 131] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread run "ReservedThreadExecutor.java" 409] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.util.thread.QueuedThreadPool runJob "QueuedThreadPool.java" 883] fév 09 14:27:13 nixos metabase[2840696]: [org.eclipse.jetty.util.thread.QueuedThreadPool$Runner run "QueuedThreadPool.java" 1034] fév 09 14:27:13 nixos metabase[2840696]: [java.lang.Thread run "Thread.java" 829]], fév 09 14:27:13 nixos metabase[2840696]: :cause "Problem reading font data.", fév 09 14:27:13 nixos metabase[2840696]: :message fév 09 14:27:13 nixos metabase[2840696]: "Erreur d'enregistrement des polices : Metabase ne pourra pas envoyer les Pulses. C'est un problème connu de certaines JVMs. Voir https://github.com/metabase/metabase/issues/7986 et pour plus de détails."} fév 09 14:27:13 nixos metabase[2840696]: ```

Steps To Reproduce

Steps to reproduce the behavior:

  1. try to send an email from a dashboard

Expected behavior

Screenshots

Additional context

It works if I use jdk17:

      (self: super: {
        metabase = nixpkgs_unstable.metabase.override { jdk11 = super.jdk17; };
      })

Notify maintainers

@schneefux @thoughtpolice @mmahut

Metadata

darkone23 commented 1 year ago

I also got this issue when trying to export an excel spreadsheet from a metabase installed on nixOS:

{
  "via": [
    {
      "type": "java.lang.UnsatisfiedLinkError",
      "message": "no fontmanager in java.library.path: [.]",
      "at": [
        "java.lang.ClassLoader",
        "loadLibrary",
        "ClassLoader.java",
        2673
      ]
    }
  ],
  ...
  "cause": "no fontmanager in java.library.path: [.]",
  "_status": 500
}

Maybe the metabase service needs to enable the fontmanager service?

cc @mmahut @schneefux @thoughtpolice

mamcx commented 9 months ago

I get hit by this issue too

I tried without success to replace the JDK version:

environment.systemPackages = with pkgs; [
    htop bat fd git killall rsync tmux fzf nano ouch ripgrep pkgs.starship wget zip unzip pkgs.tailscale    
    (metabase.override { jdk11 = pkgs.jdk17; })
  ];

  systemd.services.metabase = {
    description = "Metabase server";
    wantedBy = [ "multi-user.target" ];
    wants = [ "postgresql.service" "nginx.service" ];
    after = [ "network.target" "postgresql.service" ];
    environment = {
      JAVA_OPTS = "-Dc3p0.maxPoolSize=5 -Xms128m -Xmx1024m";
      MB_DB_TYPE = "postgres";
      MB_DB_DBNAME="metabase";
      MB_DB_HOST="127.0.0.1";
      MB_DB_PORT="5432";
      MB_DB_USER="postgres";
      MB_PLUGINS_DIR = "/var/lib/metabase";
      MB_JETTY_HOST = "127.0.0.1";
      MB_JETTY_PORT = "3000";
    };

    serviceConfig = {
      DynamicUser = true;
      StateDirectory = "/var/lib/metabase";
      ExecStart = "${pkgs.metabase}/bin/metabase";
      Restart = "always";
      RestartSec = 1;
    };
  };
chpill commented 9 months ago

@mamcx you are not overriding the metabase package used by the service, only the one made available in your systemPackages. Sadly, the metabase service does not provide an option to change the jdk package it uses, so you will have to resort to an overlay, as the additionnal context by @bbigras explains. I just tested with a very slightly different overlay:

(self: super: { metabase = super.metabase.override { jdk11 = super.jdk17; };})

I can see metabase starting with the jdk 17 when I journalctl -f -u metabase.service.