[Pkg-puppet-devel] Bug#1032241: puppetserver - service unit fails to realize the main process died

Bastian Blank waldi at debian.org
Thu Mar 2 08:31:39 GMT 2023


Package: puppetserver
Version: 7.9.5-1
Severity: important

The service unit uses some weird ExecStartPost to check for some file in
an endless loop.  However this means it will completely ignore if the
main process already died.  In this case the unit is stuck in
"activating", but everything is already dead.  This is remedied after
several minutes wenn the watchdog fires.

| ● puppetserver.service - Puppet Server
|      Loaded: loaded (/lib/systemd/system/puppetserver.service; enabled; preset: enabled)
|      Active: activating (start-post) (Result: exit-code) since Thu 2023-03-02 08:23:33 UTC; 4min 5s ago
|        Docs: https://puppet.com/docs/puppet/latest/server/about_server.html
|     Process: 22021 ExecStartPre=sh -c echo -n 0 > ${RUNTIME_DIRECTORY}/restart (code=exited, status=0/SUCCESS)
|     Process: 22023 ExecStart=/usr/bin/java $JAVA_ARGS -Djruby.lib=/usr/share/jruby/lib -XX:+CrashOnOutOfMemoryError -XX:ErrorFile=/var/log/puppetserver/puppet>
|    Main PID: 22023 (code=exited, status=1/FAILURE); Control PID: 22024 (sh)
|       Tasks: 2 (limit: 9398)
|      Memory: 380.0K
|         CPU: 28.959s
|      CGroup: /system.slice/puppetserver.service
|              ├─22024 sh -c "while ! head -c1 /run/puppetserver/restart | grep -q '^1'; do sleep 1; done"
|              └─22799 sleep 1
| 
| Mar 02 08:23:47 i-0ce8b70c5e2e824c2 java[22023]:         at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:210)
| Mar 02 08:23:47 i-0ce8b70c5e2e824c2 java[22023]:         at clojure.lang.RestFn.applyTo(RestFn.java:137)
| Mar 02 08:23:47 i-0ce8b70c5e2e824c2 java[22023]:         at clojure.lang.Var.applyTo(Var.java:705)
| Mar 02 08:23:47 i-0ce8b70c5e2e824c2 java[22023]:         at clojure.core$apply.invokeStatic(core.clj:667)
| Mar 02 08:23:47 i-0ce8b70c5e2e824c2 java[22023]:         at clojure.core$apply.invoke(core.clj:662)
| Mar 02 08:23:47 i-0ce8b70c5e2e824c2 java[22023]:         at puppetlabs.trapperkeeper.main$_main.invokeStatic(main.clj:7)
| Mar 02 08:23:47 i-0ce8b70c5e2e824c2 java[22023]:         at puppetlabs.trapperkeeper.main$_main.doInvoke(main.clj:4)
| Mar 02 08:23:47 i-0ce8b70c5e2e824c2 java[22023]:         at clojure.lang.RestFn.applyTo(RestFn.java:137)
| Mar 02 08:23:47 i-0ce8b70c5e2e824c2 java[22023]:         at puppetlabs.trapperkeeper.main.main(Unknown Source)
| Mar 02 08:23:47 i-0ce8b70c5e2e824c2 systemd[1]: puppetserver.service: Main process exited, code=exited, status=1/FAILURE

Bastian

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-5-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages puppetserver depends on:
pn  default-jre-headless                         <none>
pn  facter                                       <none>
pn  hiera                                        <none>
pn  jruby                                        <none>
pn  libclj-time-clojure                          <none>
pn  libclj-yaml-clojure                          <none>
pn  libclojure-java                              <none>
pn  libcomidi-clojure                            <none>
pn  libcommons-exec-java                         <none>
pn  libcommons-io-java                           <none>
pn  libcommons-lang-java                         <none>
pn  libdropwizard-metrics-java                   <none>
pn  libdujour-version-check-clojure              <none>
pn  libjruby-utils-clojure                       <none>
pn  libkitchensink-clojure                       <none>
pn  libliberator-clojure                         <none>
pn  libprismatic-schema-clojure                  <none>
pn  libpuppetlabs-http-client-clojure            <none>
pn  libpuppetlabs-i18n-clojure                   <none>
pn  libpuppetlabs-ring-middleware-clojure        <none>
pn  libraynes-fs-clojure                         <none>
pn  libsemver-clojure                            <none>
pn  libshell-utils-clojure                       <none>
pn  libslingshot-clojure                         <none>
pn  libssl-utils-clojure                         <none>
pn  libtrapperkeeper-authorization-clojure       <none>
pn  libtrapperkeeper-clojure                     <none>
pn  libtrapperkeeper-comidi-metrics-clojure      <none>
pn  libtrapperkeeper-filesystem-watcher-clojure  <none>
pn  libtrapperkeeper-metrics-clojure             <none>
pn  libtrapperkeeper-scheduler-clojure           <none>
pn  libtrapperkeeper-status-clojure              <none>
pn  libtrapperkeeper-webserver-jetty9-clojure    <none>
pn  libyaml-snake-java                           <none>
pn  puppet-agent                                 <none>
ii  ruby                                         1:3.1
pn  ruby-deep-merge                              <none>
pn  ruby-fast-gettext                            <none>
pn  ruby-gettext                                 <none>
pn  ruby-hocon                                   <none>
pn  ruby-locale                                  <none>
pn  ruby-puppet-resource-api                     <none>
pn  ruby-puppetserver-ca-cli                     <none>
pn  ruby-semantic-puppet                         <none>
pn  ruby-text                                    <none>

Versions of packages puppetserver recommends:
pn  puppet-module-puppetlabs-augeas-core   <none>
pn  puppet-module-puppetlabs-cron-core     <none>
pn  puppet-module-puppetlabs-host-core     <none>
pn  puppet-module-puppetlabs-mount-core    <none>
pn  puppet-module-puppetlabs-selinux-core  <none>
pn  puppet-module-puppetlabs-sshkeys-core  <none>

puppetserver suggests no packages.


More information about the Pkg-puppet-devel mailing list