Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1103241 - ipa-server-install fails due to Dangling symlink '/var/lib/pki/pki-tomcat/common/lib/jettison.jar'-->'/usr/share/java/jettison.jar'
Summary: ipa-server-install fails due to Dangling symlink '/var/lib/pki/pki-tomcat/com...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: pki-core
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthew Harmsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1103220
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-30 14:10 UTC by Jan Pazdziora
Modified: 2020-10-04 20:42 UTC (History)
5 users (show)

Fixed In Version: pki-core-10.2.0-0.4.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 11:35:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github dogtagpki pki issues 1595 0 None None None 2020-10-04 20:42:46 UTC

Description Jan Pazdziora 2014-05-30 14:10:34 UTC
Description of problem:

Running ipa-server-install on Fedora rawhide fails with

Configuring certificate server (pki-tomcatd): Estimated time 3 minutes 30 seconds
  [1/22]: creating certificate server user
  [2/22]: configuring certificate server instance
ipa         : CRITICAL failed to configure ca instance Command '/usr/sbin/pkispawn -s CA -f /tmp/tmpz9dOsT' returned non-zero exit status 1
Configuration of CA failed

Version-Release number of selected component (if applicable):

pki-server-10.2.0-0.1.fc21.noarch
jettison-1.3.4-3.fc21.noarch

How reproducible:

Seen once, assume deterministic.

Steps to Reproduce:
1. Run ipa-server-install with freeipa-server and dependencies installed from Fedora rawhide repo.

Actual results:

ipa         : CRITICAL failed to configure ca instance Command '/usr/sbin/pkispawn -s CA -f /tmp/tmpz9dOsT' returned non-zero exit status 1

and /var/log/ipaserver-install.log ends with

2014-05-30T13:27:41Z DEBUG Starting external process
2014-05-30T13:27:41Z DEBUG args=/usr/sbin/pkispawn -s CA -f /tmp/tmpz9dOsT
2014-05-30T13:27:42Z DEBUG Process finished, return code=1
2014-05-30T13:27:42Z DEBUG stdout=Loading deployment configuration from /tmp/tmpz9dOsT.
Installing CA into /var/lib/pki/pki-tomcat.
Storing deployment configuration into /etc/sysconfig/pki/tomcat/pki-tomcat/ca/deployment.cfg.

Installation failed.


2014-05-30T13:27:42Z DEBUG stderr=pkispawn    : WARNING  ....... Dangling symlink '/var/lib/pki/pki-tomcat/common/lib/jettison.jar'-->'/usr/share/java/jettison.jar'

2014-05-30T13:27:42Z CRITICAL failed to configure ca instance Command '/usr/sbin/pkispawn -s CA -f /tmp/tmpz9dOsT' returned non-zero exit status 1
2014-05-30T13:27:42Z DEBUG   File "/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py", line 638, in run_script
    return_value = main_function()

  File "/usr/sbin/ipa-server-install", line 1074, in main
    dm_password, subject_base=options.subject)

  File "/usr/lib/python2.7/site-packages/ipaserver/install/cainstance.py", line 478, in configure_instance
    self.start_creation(runtime=210)

  File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 364, in start_creation
    method()

  File "/usr/lib/python2.7/site-packages/ipaserver/install/cainstance.py", line 604, in __spawn_instance
    raise RuntimeError('Configuration of CA failed')

2014-05-30T13:27:42Z DEBUG The ipa-server-install command failed, exception: RuntimeError: Configuration of CA failed

Expected results:

No error.

Additional info:

The /usr/share/java/jettison.jar does not exist. It is now in /usr/share/java/jettison/jettison.jar, it seems.

Comment 1 Jan Pazdziora 2014-05-30 14:21:36 UTC
(In reply to Jan Pazdziora from comment #0)
> The /usr/share/java/jettison.jar does not exist. It is now in
> /usr/share/java/jettison/jettison.jar, it seems.

Running

ln -sf jettison/jettison.jar /usr/share/java/jettison.jar

before ipa-server-install makes all the 22 steps pass.

Comment 2 Matthew Harmsen 2014-06-02 23:03:04 UTC
Upstream ticket:
https://fedorahosted.org/pki/ticket/1030

Comment 3 Matthew Harmsen 2014-06-26 02:29:51 UTC
The SRPM utilized in this bug/ticket was built by me on 2013-12-19 22:11:25, and contained the following changelog message:

* Fri Nov 22 2013 Dogtag Team <pki-devel> 10.2.0-0.1
- Updated version number to 10.2.0-0.1.
- Added option to build without server packages.

However, the current source on the master branch contains the following changelog message:

* Fri Nov 22 2013 Dogtag Team <pki-devel> 10.2.0-0.1
- Added option to build without server packages.
- Replaced Jettison with Jackson.
- Added python-nss build requirement
- Bugzilla Bug #1057959 - pkispawn requires policycoreutils-python
- TRAC Ticket #840 - pkispawn requires policycoreutils-python
- Updated requirements for resteasy
- Added template files for archive, retrieve and generate key
  requests to the client package.

Therefore, it is my belief that since 'Jettison' has been replaced by 'Jackson', and upgrade scripts have been provided to deal with legacy instances, this problem should go away once ​PKI TRAC Ticket #1029 - pki-core FTBFS has been resolved, and the next build has been successfully generated.

It is an unfortunate coincidence that the SRPM changelog message is dated the same date as the source changelog message and each contains a slightly different message.

I will leave this bug in the assigned state until such time as a valid new build can be tested to verify that this problem is no longer an issue.

Comment 4 Jan Pazdziora 2014-12-05 12:40:57 UTC
My run on Fedora rawhide no longer seems to fail. Is that expected? Can you provide Fixed In Version if the issue was in fact addressed?

Thank you,

Jan

Comment 5 Matthew Harmsen 2014-12-08 17:38:19 UTC
NOTE:  Although rawhide is currently F22, I believe that this issue was
       originally fixed by "https://fedorahosted.org/pki/ticket/1029
       PKI TRAC Ticket #1029 - pki-core FTBFS" as documented in
       "https://fedorahosted.org/pki/ticket/1030 PKI TRAC Ticket #1030 -
       ipa-server-install fails due to Dangling symlink
       '/var/lib/pki/pki-tomcat/common/lib/jettison.jar'-->
       '/usr/share/java/jettison.jar'".

Comment 6 Jaroslav Reznik 2015-03-03 17:01:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 7 Fedora End Of Life 2016-07-19 11:35:27 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.