There is a error happen to at configuring pki-tomcat progress after uninstall.
Error message is:
ERROR CA configuration failed.
Pki log message is:
2016-09-28 15:34:54 pkispawn : INFO ....... ln -s /lib/systemd/system/pki-tomcatd@.service /etc/systemd/system/pki-tomcatd.target.wants/pki-tomcatd@pki-tomcat.service 2016-09-28 15:34:54 pkispawn : ERROR ....... OSError: [Errno 2] No such file or directory! 2016-09-28 15:34:54 pkispawn : DEBUG ....... Error Type: OSError 2016-09-28 15:34:54 pkispawn : DEBUG ....... Error Message: [Errno 2] No such file or directory 2016-09-28 15:34:54 pkispawn : DEBUG ....... File "/usr/sbin/pkispawn", line 597, in main rv = instance.spawn(deployer) File "/usr/lib/python2.7/dist-packages/pki/server/deployment/scriptlets/configuration.py", line 47, in spawn deployer.mdict['pki_systemd_service_link']) File "/usr/lib/python2.7/dist-packages/pki/server/deployment/pkihelper.py", line 1836, in create os.symlink(name, link)
fix CA error after uninstall freeipa-zhenglei-0001-fix-pki-tomcat-error-after-uninstall.patch
creating the pki-tomcatd.target.wants directory in the /etc/systemd/system/ directory solved the problem.
that directory is already provided by the package, so how did you manage to get it removed?
Per PKI Bug Council of 11/17/2016: 10.3
NOTE: Wait for investigation of improper removal (may be Ubuntu issue) before cloning an associated RHEL 7.3.z Bug.
Note that if ipa uninstall removes that directory on your system, it is possibly a packaging bug meaning it belongs in Debian BTS or Launchpad..
ok, I will verify the issue on CentOS if I am free.
Replying to [comment:4 tjaalton]:
Hi, I'm unable to reproduce the problem on Fedora.
Please note that the attached patch is for IPA, but it recreates the directory owned by PKI. If this is an IPA issue, please file an IPA ticket here: https://fedorahosted.org/freeipa/
Feel free to reopen if this can be reproduced on Fedora/CentOS.
Metadata Update from @zhenglei: - Issue set to the milestone: 10.3.10
Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.
This issue has been cloned to GitHub and is available here: https://github.com/dogtagpki/pki/issues/2662
If you want to receive further updates on the issue, please navigate to the GitHub issue and click on Subscribe button.
Subscribe
Thank you for understanding, and we apologize for any inconvenience.