The app-admin/puppetdb-7.2.0 fails to start with the error Apr 29 09:52:26 host puppetdb[2496254]: Execution error (IllegalArgumentException) at sun.reflect.NativeConstructorAccessorImpl/newInstance0 (NativeConstructorAccessorImpl.java:-2). Apr 29 09:52:26 host puppetdb[2496254]: Missing authorization service configuration. Apr 29 09:52:26 host puppetdb[2496254]: Full report at: Apr 29 09:52:26 host puppetdb[2496254]: /tmp/clojure-5615908348428325161.edn Apr 29 09:52:27 host puppetdb[2496206]: Background process 2496254 exited before start had completed Apr 29 09:52:27 host systemd[1]: puppetdb.service: Control process exited, code=exited, status=1/FAILURE Relevant software versions: app-admin/puppetdb-7.2.0 dev-ruby/puppetdb-termini-7.2.0 dev-java/icedtea-3.18.0 (or dev-java/openjdk-bin-8.292_p10) The database is on the separate server Curious is that the puppetdb was able to update DB schema to new version so the downgrade is not possible. Reproducible: Always Steps to Reproduce: 1. setup full puppet stack 2. update from 7.0.1 to 7.2.0 3. observe the error Actual Results: Failure with the "Missing authorization service configuration." error. Expected Results: Working puppetdb
Created attachment 703779 [details] emerge --info
Created attachment 703782 [details] clojure error
I will wait for the reply before I will try the puppetdb ~7.3.1
puppetdb(-termini)-7.3.1 has same problem.
The problem is actually simple. The ebuild is simply missing a line for copying the auth.conf that is in the source package. Just add a line to the current ebuild on line 50 doins ext/config/conf.d/auth.conf Or patch the file: --- puppetdb-7.5.0.ebuild.orig 2021-08-22 16:06:47.263489109 +0200 +++ puppetdb-7.5.0.ebuild 2021-08-22 12:03:22.014957604 +0200 @@ -48,6 +48,7 @@ doins ext/config/conf.d/repl.ini doins ext/config/conf.d/database.ini doins ext/config/conf.d/config.ini + doins ext/config/conf.d/auth.conf insopts -m0755 insinto /opt/puppetlabs/server/apps/puppetdb/scripts doins install.sh Afterwards, please do not forget to create an up-to-date manifest with ebeuild.
Thank you for your reply. I can't/won't verify the solution because the problem forced me to migrate my puppet server to Debian VM and I am not going to try it back on Gentoo.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e8a6c022cf72fbb3bc016d834b17c743abc19a8 commit 9e8a6c022cf72fbb3bc016d834b17c743abc19a8 Author: Matthew Thode <prometheanfire@gentoo.org> AuthorDate: 2021-08-22 15:58:01 +0000 Commit: Matthew Thode <prometheanfire@gentoo.org> CommitDate: 2021-08-23 15:25:05 +0000 app-admin/puppetdb: install missing file Closes: https://bugs.gentoo.org/786705 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Matthew Thode <prometheanfire@gentoo.org> app-admin/puppetdb/{puppetdb-7.5.0.ebuild => puppetdb-7.5.0-r1.ebuild} | 1 + 1 file changed, 1 insertion(+)