Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 786705 - app-admin/puppetdb-7.2.0 fail to start with "Missing authorization service configuration."
Summary: app-admin/puppetdb-7.2.0 fail to start with "Missing authorization service co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-29 08:04 UTC by samurai.no.dojo
Modified: 2021-08-23 15:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info.txt,15.91 KB, text/plain)
2021-04-29 08:07 UTC, samurai.no.dojo
Details
clojure error (clojure_error.txt,4.70 KB, text/plain)
2021-04-29 08:07 UTC, samurai.no.dojo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description samurai.no.dojo 2021-04-29 08:04:39 UTC
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
Comment 1 samurai.no.dojo 2021-04-29 08:07:03 UTC
Created attachment 703779 [details]
emerge --info
Comment 2 samurai.no.dojo 2021-04-29 08:07:31 UTC
Created attachment 703782 [details]
clojure error
Comment 3 samurai.no.dojo 2021-04-29 08:08:38 UTC
I will wait for the reply before I will try the puppetdb ~7.3.1
Comment 4 samurai.no.dojo 2021-05-11 17:19:50 UTC
puppetdb(-termini)-7.3.1 has same problem.
Comment 5 Jens Koegler 2021-08-22 14:16:06 UTC
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.
Comment 6 samurai.no.dojo 2021-08-23 13:39:25 UTC
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.
Comment 7 Larry the Git Cow gentoo-dev 2021-08-23 15:25:12 UTC
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(+)