<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      comments inline<br>
      Martin<br>
      <br>
      On 02/04/15 18:54, Christoph Kaminski wrote:<br>
    </div>
    <blockquote
cite="mid:OFE5C044A8.F3B377BD-ONC1257E1B.005C8E06-C1257E1B.005CE4A1@biotronik.com"
      type="cite"><font face="sans-serif" size="2">see this in
        ipupgrade.log</font>
      <br>
      <br>
      <font face="sans-serif" size="2">2015-04-02T11:27:02Z ERROR Pre
        schema
        upgrade failed with [Errno 111] Connection refused</font>
      <br>
      <font face="sans-serif" size="2">2015-04-02T11:27:02Z DEBUG
        Traceback
        (most recent call last):</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/upgradeinstance.py",
        line 128, in __pre_schema_upgrade</font>
      <br>
      <font face="sans-serif" size="2">    ld =
        ldapupdate.LDAPUpdate(dm_password='',
        ldapi=True, live_run=self.live_run, plugins=True)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/ldapupdate.py",
        line 220, in __init__</font>
      <br>
      <font face="sans-serif" size="2">    self.create_connection()</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/ldapupdate.py",
        line 783, in create_connection</font>
      <br>
      <font face="sans-serif" size="2">    dm_password=self.dm_password,
        pw_name=self.pw_name)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/ldapupdate.py",
        line 65, in connect</font>
      <br>
      <font face="sans-serif" size="2">   
        conn.do_external_bind(pw_name)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py",
        line 1761, in do_external_bind</font>
      <br>
      <font face="sans-serif" size="2">   
        self.conn.sasl_interactive_bind_s,
        timeout, None, auth_tokens)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py",
        line 1747, in __bind_with_wait</font>
      <br>
      <font face="sans-serif" size="2">   
        self.__wait_for_connection(timeout)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py",
        line 1733, in __wait_for_connection</font>
      <br>
      <font face="sans-serif" size="2">   
        wait_for_open_socket(lurl.hostport,
        timeout)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipapython/ipautil.py",
        line 1173, in wait_for_open_socket</font>
      <br>
      <font face="sans-serif" size="2">    raise e</font>
      <br>
      <font face="sans-serif" size="2">error: [Errno 111] Connection
        refused</font>
      <br>
    </blockquote>
    This is the issue.<br>
    Do you have any errors in DS error log?<br>
    /var/log/dirsrv/slapd-INSTANCE/errors<br>
    <blockquote
cite="mid:OFE5C044A8.F3B377BD-ONC1257E1B.005C8E06-C1257E1B.005CE4A1@biotronik.com"
      type="cite">
      <br>
      <font face="sans-serif" size="2">2015-04-02T11:27:02Z DEBUG  
        duration:
        12 seconds</font>
      <br>
      <font face="sans-serif" size="2">2015-04-02T11:27:02Z DEBUG  
        [6/10]:
        updating schema</font>
      <br>
      <font face="sans-serif" size="2">2015-04-02T11:27:12Z DEBUG
        Traceback
        (most recent call last):</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/service.py",
        line 382, in start_creation</font>
      <br>
      <font face="sans-serif" size="2">    run_step(full_msg, method)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/service.py",
        line 372, in run_step</font>
      <br>
      <font face="sans-serif" size="2">    method()</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/upgradeinstance.py",
        line 145, in __update_schema</font>
      <br>
      <font face="sans-serif" size="2">    dm_password='', ldapi=True,
        live_run=self.live_run) or self.modified</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/schemaupdate.py",
        line 112, in update_schema</font>
      <br>
      <font face="sans-serif" size="2">    fqdn=installutils.get_fqdn())</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/ldapupdate.py",
        line 65, in connect</font>
      <br>
      <font face="sans-serif" size="2">   
        conn.do_external_bind(pw_name)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py",
        line 1761, in do_external_bind</font>
      <br>
      <font face="sans-serif" size="2">   
        self.conn.sasl_interactive_bind_s,
        timeout, None, auth_tokens)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py",
        line 1747, in __bind_with_wait</font>
      <br>
      <font face="sans-serif" size="2">   
        self.__wait_for_connection(timeout)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py",
        line 1733, in __wait_for_connection</font>
      <br>
      <font face="sans-serif" size="2">   
        wait_for_open_socket(lurl.hostport,
        timeout)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipapython/ipautil.py",
        line 1173, in wait_for_open_socket</font>
      <br>
      <font face="sans-serif" size="2">    raise e</font>
      <br>
      <font face="sans-serif" size="2">error: [Errno 111] Connection
        refused</font>
      <br>
      <br>
      <font face="sans-serif" size="2">2015-04-02T11:27:12Z DEBUG  
        [error]
        error: [Errno 111] Connection refused</font>
      <br>
      <font face="sans-serif" size="2">2015-04-02T11:27:12Z DEBUG  
        [cleanup]:
        stopping directory server</font>
      <br>
      <br>
      <font face="sans-serif" size="2">...</font>
      <br>
    </blockquote>
    Is this another upgrade? Or why is here this  time gap?<br>
    <blockquote
cite="mid:OFE5C044A8.F3B377BD-ONC1257E1B.005C8E06-C1257E1B.005CE4A1@biotronik.com"
      type="cite">
      <br>
      <font face="sans-serif" size="2">2015-04-02T12:46:11Z DEBUG
        stderr=</font>
      <br>
      <font face="sans-serif" size="2">2015-04-02T12:46:12Z DEBUG   File
        "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line
        171, in execute</font>
      <br>
      <font face="sans-serif" size="2">    return_value = self.run()</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_ldap_updater.py",
line
        213, in run</font>
      <br>
      <font face="sans-serif" size="2">    modified =
        ld.update(self.files,
        ordered=True) or modified</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/ldapupdate.py",
        line 874, in update</font>
      <br>
      <font face="sans-serif" size="2">    updates =
        api.Backend.updateclient.update(POST_UPDATE,
        self.dm_password, self.ldapi, self.live_run)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/plugins/updateclient.py",
line
        123, in update</font>
      <br>
      <font face="sans-serif" size="2">    (restart, apply_now, res)
        = self.run(update.name, **kw)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/plugins/updateclient.py",
line
        146, in run</font>
      <br>
      <font face="sans-serif" size="2">    return
        self.Updater[method](**kw)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipalib/frontend.py",
        line 1399, in __call__</font>
      <br>
      <font face="sans-serif" size="2">    return
        self.execute(**options)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipaserver/install/plugins/upload_cacrt.py",
line
        76, in execute</font>
      <br>
      <font face="sans-serif" size="2">    ldap.add_entry(entry)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py",
        line 1592, in add_entry</font>
      <br>
      <font face="sans-serif" size="2">    self.conn.add_s(entry.dn,
        attrs.items())</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib64/python2.7/contextlib.py",
        line 35, in __exit__</font>
      <br>
      <font face="sans-serif" size="2">    self.gen.throw(type, value,
        traceback)</font>
      <br>
      <font face="sans-serif" size="2">  File
        "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py",
        line 1191, in error_handler</font>
      <br>
      <font face="sans-serif" size="2">    raise
        errors.ObjectclassViolation(info=info)</font>
      <br>
      <br>
      <font face="sans-serif" size="2">2015-04-02T12:46:12Z DEBUG The
        ipa-ldap-updater
        command failed, exception: ObjectclassViolation: unknown object
        class "ipaKeyPolicy"</font>
      <br>
      <font face="sans-serif" size="2">2015-04-02T12:46:12Z ERROR
        Unexpected
        error - see /var/log/ipaupgrade.log for details:</font>
      <br>
      <font face="sans-serif" size="2">ObjectclassViolation: unknown
        object
        class "ipaKeyPolicy"</font>
      <br>
      <br>
      <font face="sans-serif" size="2">and: </font>
      <br>
      <font face="sans-serif" size="2">grep -i nsSchemaPolicy
        /etc/dirsrv/slapd-HSO/schema/01core389.ldif</font>
      <br>
      <br>
      <font face="sans-serif" size="2">objectClasses: (
        2.16.840.1.113730.3.2.328
        NAME 'nsSchemaPolicy' DESC 'Netscape defined objectclass' SUP
        top  MAY
        ( cn $ schemaUpdateObjectclassAccept $
        schemaUpdateObjectclassReject $
        schemaUpdateAttributeAccept $ schemaUpdateAttributeReject)
        X-ORIGIN 'Netscape
        Directory Server' )</font>
      <br>
      <br>
      <font face="sans-serif" size="2">grep -i nsSchemaPolicy
        /etc/dirsrv/schema/01core389.ldif</font>
      <br>
      <font face="sans-serif" size="2">objectClasses: (
        2.16.840.1.113730.3.2.328
        NAME 'nsSchemaPolicy' DESC 'Netscape defined objectclass' SUP
        top  MAY
        ( cn $ schemaUpdateObjectclassAccept $
        schemaUpdateObjectclassReject $
        schemaUpdateAttributeAccept $ schemaUpdateAttributeReject)
        X-ORIGIN 'Netscape
        Directory Server' )</font>
      <br>
    </blockquote>
    You have objectclass there, it should not be <font size="3">bz1180325.<br>
      But send the errors from DS log if there are any.<br>
      <br>
    </font>
    <blockquote
cite="mid:OFE5C044A8.F3B377BD-ONC1257E1B.005C8E06-C1257E1B.005CE4A1@biotronik.com"
      type="cite">
      <br>
      <font face="sans-serif" size="2">Greetz<br>
        Christoph Kaminski<br>
        <br>
      </font>
      <br>
      <br>
      <br>
      <font color="#5f5f5f" face="sans-serif" size="1">Von:      
         </font><font face="sans-serif" size="1">Martin Basti
        <a class="moz-txt-link-rfc2396E" href="mailto:mbasti@redhat.com"><mbasti@redhat.com></a></font>
      <br>
      <font color="#5f5f5f" face="sans-serif" size="1">An:      
         </font><font face="sans-serif" size="1">Christoph Kaminski
        <a class="moz-txt-link-rfc2396E" href="mailto:christoph.kaminski@biotronik.com"><christoph.kaminski@biotronik.com></a>,
        <a class="moz-txt-link-abbreviated" href="mailto:freeipa-users@redhat.com">freeipa-users@redhat.com</a></font>
      <br>
      <font color="#5f5f5f" face="sans-serif" size="1">Datum:      
         </font><font face="sans-serif" size="1">02.04.2015 17:25</font>
      <br>
      <font color="#5f5f5f" face="sans-serif" size="1">Betreff:    
           </font><font face="sans-serif" size="1">Re: [Freeipa-users]
        Upgrade fail 3.3.3 (rhel7) to 4.1 (rhel7.1)</font>
      <br>
      <hr noshade="noshade">
      <br>
      <br>
      <br>
      <font size="3">On 02/04/15 16:57, Christoph Kaminski wrote:</font>
      <br>
      <font face="sans-serif" size="2">Hi all!</font><font size="3"> <br>
      </font><font face="sans-serif" size="2"><br>
        We have 6 IPA Servers here connected to each other. We want to
        upgrade
        all from RHEL 7 with IPA 3.3.3 to RHEL 7.1with IPA 4.1.</font><font
        size="3">
        <br>
      </font><font face="sans-serif" size="2"><br>
        I have done it one of the 6 servers and got a problem.</font><font
        size="3">
        <br>
      </font><font face="sans-serif" size="2"><br>
        After upgrade if I want to login to Web UI I get: "</font><font
        size="3"><b>IPA-Error
          903: InternalError</b></font><font face="sans-serif" size="2">"
        after
        typing the credentials...</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        I have activated debug output of IPA and see this in
        /var/log/httpd/error_log:</font><font size="3">
        <br>
      </font><font face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848474 2015] [:error] [pid 18020] ipa:
        ERROR: non-public:
        KeyError: 'idnsforwardzone'</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848536 2015] [:error] [pid 18020] Traceback
        (most
        recent call last):</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848600 2015] [:error] [pid 18020]   File
        "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py",
        line 348, in wsgi_execute</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848607 2015] [:error] [pid 18020]    
        result
        = self.Command[name](*args, **options)</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848612 2015] [:error] [pid 18020]   File
        "/usr/lib/python2.7/site-packages/ipalib/frontend.py",
        line 439, in __call__</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848671 2015] [:error] [pid 18020]     ret
        = self.run(*args, **options)</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848701 2015] [:error] [pid 18020]   File
        "/usr/lib/python2.7/site-packages/ipalib/frontend.py",
        line 754, in run</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848707 2015] [:error] [pid 18020]    
        return
        self.execute(*args, **options)</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848776 2015] [:error] [pid 18020]   File
        "/usr/lib/python2.7/site-packages/ipalib/plugins/internal.py",
        line 123, in execute</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848783 2015] [:error] [pid 18020]    
        (o.name,
        json_serialize(o)) for o in self.api.Object()</font><font
        size="3"> </font><font face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848789 2015] [:error] [pid 18020]   File
        "/usr/lib/python2.7/site-packages/ipalib/plugins/internal.py",
        line 123, in <genexpr></font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848794 2015] [:error] [pid 18020]    
        (o.name,
        json_serialize(o)) for o in self.api.Object()</font><font
        size="3"> </font><font face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848799 2015] [:error] [pid 18020]   File
        "/usr/lib/python2.7/site-packages/ipalib/util.py",
        line 60, in json_serialize</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848804 2015] [:error] [pid 18020]    
        return
        json_serialize(obj.__json__())</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848809 2015] [:error] [pid 18020]   File
        "/usr/lib/python2.7/site-packages/ipalib/plugins/baseldap.py",
        line 710, in __json__</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848814 2015] [:error] [pid 18020]     attrs
        = self.api.Backend.ldap2.schema.attribute_types(objectclasses)</font><font
        size="3">
      </font><font face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848820 2015] [:error] [pid 18020]   File
        "/usr/lib64/python2.7/site-packages/ldap/schema/subentry.py",
        line 377, in attribute_types</font><font size="3"> </font><font
        face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848825 2015] [:error] [pid 18020]    
        object_class
        = self.sed[ObjectClass][object_class_oid]</font><font size="3">
      </font><font face="sans-serif" size="2"><br>
        [Thu Apr 02 14:39:38.848830 2015] [:error] [pid 18020] KeyError:
        'idnsforwardzone'</font><font size="3">
        <br>
      </font><font face="sans-serif" size="2"><br>
        I have found this bug report: </font><a moz-do-not-send="true"
        href="https://bugzilla.redhat.com/show_bug.cgi?id=1180325"><font
          color="blue" face="sans-serif" size="2"><u>https://bugzilla.redhat.com/show_bug.cgi?id=1180325</u></font></a><font
        size="3">
      </font><font face="sans-serif" size="2"><br>
        It should be fixed in the last version?!</font><font size="3"> <br>
      </font><font face="sans-serif" size="2"><br>
        I have read there I should start: </font><tt><font size="3">setup-ds.pl
          -d
          --update</font></tt><font size="3"> <br>
      </font><font face="sans-serif" size="2"><br>
        But Im afraid that it kills the date on the IPA Servers with
        version 3.3.3...
        does it?</font><font size="3"> <br>
      </font><font face="sans-serif" size="2"><br>
        What can I do? how can I fix it?</font><font size="3"> <br>
      </font><font face="sans-serif" size="2"><br>
        Greetz<br>
        Christoph Kaminski<br>
      </font><font size="3"><br>
        <br>
      </font>
      <br>
      <font size="3">Hello, was the ipa upgrade successful? Do you have
        any
        errors in /var/log/ipaupgrade.log?<br>
        <br>
        If you think it is 1180325 issue you can check if nsSchemaPolicy
        is in
        01core389.ldif:<br>
        grep -i nsSchemaPolicy
        /etc/dirsrv/slapd-INSTANCE/schema/01core389.ldif<br>
        grep -i nsSchemaPolicy /etc/dirsrv/schema/01core389.ldif <br>
        <br>
        Martin<br>
      </font>
      <br>
      <tt><font size="3">-- <br>
          Martin Basti</font></tt>
      <br>
      <font face="sans-serif" size="2"><br>
        <br>
      </font>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Martin Basti</pre>
  </body>
</html>