<div dir="ltr"><div><div><div><div><div><div><div>Hi Rob.<br><br></div>I've just tried to remove the group write to the *.db files, but it's not the problem.<br><i>[root@mlv-ipa01 ~]# grep NSSNickname /etc/httpd/conf.d/nss.conf<br>NSSNickname Server-Cert</i><br><br></div>I've tried to run manually <i>dirsrv.target</i> and <i>krb5kdc.service</i>, and it works, services went up.<br></div>The same for <i>ntpd</i>, <i>named-pkcs11.service</i>, <i>smb.service</i>, <i>winbind.service</i>, <i>kadmin.service</i>, <i>memcached.service</i> and <i>pki-tomcatd.target</i>.<br><br></div>But if I try to start <i>httpd.service</i>:<br><i>[root@mlv-ipa01 ~]# tail -f /var/log/messages<br>Nov 17 16:46:06 mlv-ipa01 systemd[1]: Starting The Apache HTTP Server...<br>Nov 17 16:46:06 mlv-ipa01 ipa-httpd-kdcproxy: ipa         : INFO     KDC proxy enabled<br>Nov 17 16:46:07 mlv-ipa01 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE<br>Nov 17 16:46:07 mlv-ipa01 kill: kill: cannot find process ""<br>Nov 17 16:46:07 mlv-ipa01 systemd[1]: httpd.service: control process exited, code=exited status=1<br>Nov 17 16:46:07 mlv-ipa01 systemd[1]: Failed to start The Apache HTTP Server.<br>Nov 17 16:46:07 mlv-ipa01 systemd[1]: Unit httpd.service entered failed state.<br>Nov 17 16:46:07 mlv-ipa01 systemd[1]: httpd.service failed.</i><br><br></div>Any other ideas?<br></div><br>Please let me know, thanks.<br></div>Morgan<br><div><div><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-17 16:11 GMT+01:00 Rob Crittenden <span dir="ltr"><<a target="_blank" href="mailto:rcritten@redhat.com">rcritten@redhat.com</a>></span>:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span class="gmail-">Morgan Marodin wrote:<br>
> Hi Florence.<br>
><br>
> Thanks for your support.<br>
><br>
> Yes, httpd is using /etc/httpd/alias as NSS DB. And seems that all<br>
> permissions and certificates are good:<br>
</span>> /[root@mlv-ipa01 ~]# ls -l /etc/httpd/alias/<br>
<span class="gmail-">> total 184<br>
> -r--r--r--  1 root root    1345 Sep  7  2015 cacert.asc<br>
> -rw-rw----  1 root apache 65536 Nov 17 11:06 cert8.db<br>
> -rw-r-----. 1 root apache 65536 Sep  4  2015 cert8.db.orig<br>
> -rw-------. 1 root root    4833 Sep  4  2015 install.log<br>
> -rw-rw----  1 root apache 16384 Nov 17 11:06 key3.db<br>
> -rw-r-----. 1 root apache 16384 Sep  4  2015 key3.db.orig<br>
> lrwxrwxrwx  1 root root      24 Nov 17 10:24 libnssckbi.so -><br>
> /usr/lib64/libnssckbi.so<br>
> -rw-rw----  1 root apache    20 Sep  7  2015 pwdfile.txt<br>
> -rw-rw----  1 root apache 16384 Sep  7  2015 secmod.db<br>
</span>> -rw-r-----. 1 root apache 16384 Sep  4  2015 secmod.db.orig/<br>
<br>
Eventually you'll want to remove group write on the *.db files.<br>
<span class="gmail-"><br>
> And password validations seems ok, too:<br>
</span>> /[root@mlv-ipa01 ~]# certutil -K -d /etc/httpd/alias/ -f<br>
> /etc/httpd/alias/pwdfile.txt<br>
good<br>
<span class="gmail-"><br>
> Enabling mod-nss debug I can see these logs:<br>
</span>> /[root@mlv-ipa01 ~]# tail -f /var/log/httpd/error_log<br>
<span class="gmail-">> [Thu Nov 17 15:05:10.807603 2016] [suexec:notice] [pid 10660] AH01232:<br>
> suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)<br>
> [Thu Nov 17 15:05:10.807958 2016] [:warn] [pid 10660]<br>
> NSSSessionCacheTimeout is deprecated. Ignoring.<br>
> [Thu Nov 17 15:05:10.807991 2016] [:debug] [pid 10660]<br>
> nss_engine_init.c(454): SNI: <a target="_blank" rel="noreferrer" href="http://mlv-ipa01.ipa.mydomain.com">mlv-ipa01.ipa.mydomain.com</a><br>
</span>> <<a target="_blank" rel="noreferrer" href="http://mlv-ipa01.ipa.mydomain.com">http://mlv-ipa01.ipa.<wbr>mydomain.com</a>> -> Server-Cert<br>
<span class="gmail-">> [Thu Nov 17 15:05:11.002664 2016] [:info] [pid 10660] Configuring server<br>
> for SSL protocol<br>
> [Thu Nov 17 15:05:11.002817 2016] [:debug] [pid 10660]<br>
> nss_engine_init.c(770): NSSProtocol:  Enabling TLSv1.0<br>
> [Thu Nov 17 15:05:11.002838 2016] [:debug] [pid 10660]<br>
> nss_engine_init.c(775): NSSProtocol:  Enabling TLSv1.1<br>
> [Thu Nov 17 15:05:11.002847 2016] [:debug] [pid 10660]<br>
> nss_engine_init.c(780): NSSProtocol:  Enabling TLSv1.2<br>
> [Thu Nov 17 15:05:11.002856 2016] [:debug] [pid 10660]<br>
> nss_engine_init.c(839): NSSProtocol:  [TLS 1.0] (minimum)<br>
> [Thu Nov 17 15:05:11.002876 2016] [:debug] [pid 10660]<br>
> nss_engine_init.c(866): NSSProtocol:  [TLS 1.2] (maximum)<br>
> [Thu Nov 17 15:05:11.003099 2016] [:debug] [pid 10660]<br>
> nss_engine_init.c(906): Disabling TLS Session Tickets<br>
> [Thu Nov 17 15:05:11.003198 2016] [:debug] [pid 10660]<br>
> nss_engine_init.c(916): Enabling DHE key exchange<br>
> [Thu Nov 17 15:05:11.003313 2016] [:debug] [pid 10660]<br>
> nss_engine_init.c(1077): NSSCipherSuite:  Configuring permitted SSL<br>
> ciphers<br>
> [+aes_128_sha_256,+aes_256_<wbr>sha_256,+ecdhe_ecdsa_aes_128_<wbr>gcm_sha_256,+ecdhe_ecdsa_aes_<wbr>128_sha,+ecdhe_ecdsa_aes_256_<wbr>gcm_sha_384,+ecdhe_ecdsa_aes_<wbr>256_sha,+ecdhe_rsa_aes_128_<wbr>gcm_sha_256,+ecdhe_rsa_aes_<wbr>128_sha,+ecdhe_rsa_aes_256_<wbr>gcm_sha_384,+ecdhe_rsa_aes_<wbr>256_sha,+rsa_aes_128_gcm_sha_<wbr>256,+rsa_aes_128_sha,+rsa_aes_<wbr>256_gcm_sha_384,+rsa_aes_256_<wbr>sha]<br>
> [Thu Nov 17 15:05:11.003469 2016] [:debug] [pid 10660]<br>
</span><span class="gmail-">> [Thu Nov 17 15:05:11.006759 2016] [:info] [pid 10660] Using nickname<br>
> Server-Cert.<br>
</span>[snip]<br>
<span class="gmail-">> [Thu Nov 17 15:05:11.006771 2016] [:error] [pid 10660] Certificate not<br>
> found: 'Server-Cert'<br>
<br>
</span>Can you shows what this returns:<br>
<br>
# grep NSSNickname /etc/httpd/conf.d/nss.conf<br>
<span class="gmail-"><br>
> Do you think there is a kerberos problem?<br>
<br>
</span>It definitely is not.<br>
<br>
You can bring the system up in a minimal way by manually starting the<br>
<a href="mailto:dirsrv@EXAMPLE.COM">dirsrv@EXAMPLE.COM</a> service and then krb5kdc. This will at least let your<br>
users authenticate. The management framework (GUI) runs through Apache<br>
so that will be down until we can get Apache started again.<br>
<br>
rob<br>
<span class="gmail-"><br>
><br>
> Please let me know, thanks.<br>
> Bye, Morgan<br>
><br>
> 2016-11-17 14:39 GMT+01:00 Florence Blanc-Renaud <<a href="mailto:flo@redhat.com">flo@redhat.com</a><br>
</span>> <mailto:<a href="mailto:flo@redhat.com">flo@redhat.com</a>>>:<br>
<div class="gmail-HOEnZb"><div class="gmail-h5">><br>
>     On 11/17/2016 12:09 PM, Morgan Marodin wrote:<br>
><br>
>         Hello.<br>
><br>
>         This morning I've tried to upgrade my IPA server, but the upgrade<br>
>         failed, and now the service doesn't start! :(<br>
><br>
>         If I try lo launch the upgrade manually this is the output:<br>
>         /[root@mlv-ipa01 download]# ipa-server-upgrade<br>
><br>
>         Upgrading IPA:<br>
>           [1/8]: saving configuration<br>
>           [2/8]: disabling listeners<br>
>           [3/8]: enabling DS global lock<br>
>           [4/8]: starting directory server<br>
>           [5/8]: updating schema<br>
>           [6/8]: upgrading server<br>
>           [7/8]: stopping directory server<br>
>           [8/8]: restoring configuration<br>
>         Done.<br>
>         Update complete<br>
>         Upgrading IPA services<br>
>         Upgrading the configuration of the IPA services<br>
>         [Verifying that root certificate is published]<br>
>         [Migrate CRL publish directory]<br>
>         CRL tree already moved<br>
>         [Verifying that CA proxy configuration is correct]<br>
>         [Verifying that KDC configuration is using ipa-kdb backend]<br>
>         [Fix DS schema file syntax]<br>
>         Syntax already fixed<br>
>         [Removing RA cert from DS NSS database]<br>
>         RA cert already removed<br>
>         [Enable sidgen and extdom plugins by default]<br>
>         [Updating HTTPD service IPA configuration]<br>
>         [Updating mod_nss protocol versions]<br>
>         Protocol versions already updated<br>
>         [Updating mod_nss cipher suite]<br>
>         [Fixing trust flags in /etc/httpd/alias]<br>
>         Trust flags already processed<br>
>         [Exporting KRA agent PEM file]<br>
>         KRA is not enabled<br>
>         IPA server upgrade failed: Inspect /var/log/ipaupgrade.log and run<br>
>         command ipa-server-upgrade manually.<br>
>         Unexpected error - see /var/log/ipaupgrade.log for details:<br>
>         CalledProcessError: Command '/bin/systemctl start httpd.service'<br>
>         returned non-zero exit status 1<br>
>         The ipa-server-upgrade command failed. See<br>
>         /var/log/ipaupgrade.log for<br>
>         more information/<br>
><br>
>         These are error logs of Apache:<br>
>         /[Thu Nov 17 11:48:45.498510 2016] [suexec:notice] [pid 5664]<br>
>         AH01232:<br>
>         suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)<br>
>         [Thu Nov 17 11:48:45.499220 2016] [:warn] [pid 5664]<br>
>         NSSSessionCacheTimeout is deprecated. Ignoring.<br>
>         [Thu Nov 17 11:48:45.830910 2016] [:error] [pid 5664]<br>
>         Certificate not<br>
>         found: 'Server-Cert'/<br>
><br>
>         The problem seems to be the /Server-Cert /that could not be found.<br>
>         But if I try to execute the certutil command manually I can see it:/<br>
>         [root@mlv-ipa01 log]# certutil -L -d /etc/httpd/alias/<br>
>         Certificate Nickname                                         Trust<br>
>         Attributes<br>
><br>
>         SSL,S/MIME,JAR/XPI<br>
>         Signing-Cert                                                 u,u,u<br>
>         ipaCert                                                      u,u,u<br>
>         Server-Cert                                                  Pu,u,u<br>
>         <a target="_blank" rel="noreferrer" href="http://IPA.MYDOMAIN.COM">IPA.MYDOMAIN.COM</a> <<a target="_blank" rel="noreferrer" href="http://IPA.MYDOMAIN.COM">http://IPA.MYDOMAIN.COM</a>><br>
>         <<a target="_blank" rel="noreferrer" href="http://IPA.MYDOMAIN.COM">http://IPA.MYDOMAIN.COM</a>> IPA<br>
>         CA                                    CT,C,C/<br>
><br>
>         Could you help me?<br>
>         What could I try to do to restart my service?<br>
><br>
>     Hi,<br>
><br>
>     I would first make sure that httpd is using /etc/httpd/alias as NSS<br>
>     DB (check the directive NSSCertificateDatabase in<br>
>     /etc/httpd/conf.d/nss.conf).<br>
>     Then it may be a file permission issue: the NSS DB should belong to<br>
>     root:apache (the relevant files are cert8.db, key3.db and secmod.db).<br>
>     You should also find a pwdfile.txt in the same directory, containing<br>
>     the NSS DB password. Check that the password is valid using<br>
>     certutil -K -d /etc/httpd/alias/ -f /etc/httpd/alias/pwdfile.txt<br>
>     (if the command succeeds then the password in pwdfile is OK).<br>
><br>
>     You can also enable mod-nss debug in /etc/httpd/conf/nss.conf by<br>
>     setting "LogLevel debug", and check the output in<br>
>     /var/log/httpd/error_log.<br>
><br>
>     HTH,<br>
>     Flo.<br>
><br>
>         Thanks, Morgan<br>
><br>
><br>
><br>
>     --<br>
>     Manage your subscription for the Freeipa-users mailing list:<br>
>     <a target="_blank" rel="noreferrer" href="https://www.redhat.com/mailman/listinfo/freeipa-users">https://www.redhat.com/<wbr>mailman/listinfo/freeipa-users</a><br>
>     <<a target="_blank" rel="noreferrer" href="https://www.redhat.com/mailman/listinfo/freeipa-users">https://www.redhat.com/<wbr>mailman/listinfo/freeipa-users</a><wbr>><br>
>     Go to <a target="_blank" rel="noreferrer" href="http://freeipa.org">http://freeipa.org</a> for more info on the project<br>
><br>
><br>


</div></div></blockquote></div></div></div></div></div></div></div></div></div></div></div>