Open ochnerd opened 6 months ago
We are also having this problem since updating puppetdb
we are also running into this
seems related to this bug: https://github.com/pgjdbc/pgjdbc/issues/3014 Perhaps a dependency upgrade is required ?
Running PuppetDB with java 11 will avoid this issue. It's also preferable because our testing prioritizes that version on the 7.x branch.
I reproduced the issue on our pgjdbc version asked if the fix can be backported to 42.4.x, which is the stream of pgjdbc we are using in PuppetDB 7.x.
Migrated issue to PDB-5730
Running PuppetDB with java 11 will avoid this issue. It's also preferable because our testing prioritizes that version on the 7.x branch. Ah, we did not know that
The FAQ also recommends JDK8 . Perhaps that needs to be updated then
https://www.puppet.com/docs/puppetdb/7/puppetdb-faq.html#which-versions-of-java-are-supported
Which versions of Java are supported? JDK 8 is officially supported, and JDK 10 is expected to work. Other versions may work, and issues will be addressed on a best-effort basis, but support is not guaranteed.
While looking it up we did notice that JDK11 is mentioned on the overview page https://www.puppet.com/docs/puppetdb/7/overview.html#nix-server-with-jvm-11
But the actual apt package still depends on openjdk-8-jre-headless
apt show puppetdb
Package: puppetdb Version: 7.16.0-1focal Priority: optional Section: utils Maintainer: Puppet Labs <info@puppetlabs.com> Installed-Size: 59.2 MB Depends: openjdk-8-jre-headless, bash, net-tools, adduser, procps, puppet-agent (>= 5.99.0) Homepage: http://puppet.com License: ASL 2.0 Vendor: Puppet Labs <info@puppetlabs.com> Build-Depends: cdbs, bc, mawk, lsb-release, ruby | ruby-interpreter Download-Size: 52.1 MB APT-Manual-Installed: yes APT-Sources: http://apt.puppet.com focal/puppet7 amd64 Packages Description: Puppet Labs puppetdb Contains: Puppet-integrated catalog and fact storage (puppetlabs/puppetdb 7.16.0,org.bouncycastle/bcpkix-jdk18on 1.74,org.clojure/clojure 1.11.1,com.zaxxer/HikariCP 2.7.4,puppetlabs/puppetdb 7.16.0)
Thanks for pointing out the FAQ updates were missed, I will look into getting that updated.
Yes, that package dependency issue was an oversight when we initially released Puppet Platform 7. I was not able to get permission to change it after the fact for fear we would break someones upgrade and leave them stuck on an old PuppetDB 7.x version. It is fixed in PuppetDB 8 and going forward I made our packaging force us to pick new java package versions for every major version.
By default, PuppetDB will use whatever java version it finds at /usr/bin/java
so it can be controlled by RedHat's alternatives tool (or update-alternatives on Debian-based distros). You can see an example of that in the acceptance tests
Hi can PuppetLabs release a new version of puppetdb 7.17.1 to use jdk11? As @KoenDierckx said
But the actual apt package still depends on openjdk-8-jre-headless
this Ubuntu package is built by PuppetLabs, so updating this shouldn't be too difficult?
Edit: On Ubuntu, instead of downgrading, installing openjdk-11-jre-headless
fixes it too. It'll update /usr/bin/java
.
# /usr/bin/java -version
openjdk version "11.0.22" 2024-01-16
If jdk11 ist mandatory for 7.17.1 their should be an Info in the documentation about that. So please at that to the change/releaselog if it is mandatory.
@waipeng the pgjdbc maintainers are working on resolving the issue. If you'd like, you can follow along in https://github.com/pgjdbc/pgjdbc/issues/3014. I have verified their fix, so once they get a release out we will release a PuppetDB version with that update.
this Ubuntu package is built by PuppetLabs, so updating this shouldn't be too difficult?
No, it is not difficult (and I have wanted to update it), but I have been prevented from doing so when I attempted to do so. The compromise was my work in https://github.com/puppetlabs/ezbake/pull/611, which should prevent us from missing our java dependency update on major version boundaries in the future.
Is the recommended fix for this to upgrade to Java 11 or greater, or will there be a new package release soon including what appears to be the fix? We're right at a turning point where we're about to uplift the underlying OS and major Puppet version, so I'm just trying to determine a path forward since we had to roll back from 7.17.1 to 7.16.0 in the interim. Thanks!
Are their any new Infos about this? We stopped the puppetdb patches because of this issue. Would be good to know if the only fix is to upgrade to java 11. Thanks!
@jplindquist @ochnerd I am not from Puppet; as a user we install jre11 and that worked. See https://github.com/puppetlabs/puppetdb/issues/3947#issuecomment-1982811973
Describe the Bug
After the update from version 7.16.0 to version 7.17.1, Puppetdb restarts every minute. The error we see in the logs is the following:
Expected Behavior
Puppetdb does not restart every minute and runs without a problem
Steps to Reproduce
Steps to reproduce the behavior: Happens after a minute.
Environment
Additional Context
Our first hint what could be the issue was this change in clj-parent: https://github.com/puppetlabs/clj-parent/blob/5.6.11/project.clj#L100
Our workaround was a downgrade to version 7.16.0.