<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: SOLR + Kerberos error: GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/SOLR-Kerberos-error-GSSException-Failure-unspecified-at-GSS/m-p/213503#M175431</link>
    <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I don't see any problem with the encryption type here. There are couple of reasons for this kind of error:&lt;/P&gt;&lt;P&gt;1. Please check the SOLR hostname in the curl request is exactly same as what is used in keytab "solr/&amp;lt;solr-hostname&amp;gt;". In ideal condition, both should be FQDN. Also check the same for SPNEGO keytab (HTTP/&amp;lt;solr-hostname&amp;gt;).&lt;/P&gt;&lt;P&gt;2. The Key Version Number (kvno) of solr/&amp;lt;sorl-hostname&amp;gt; and HTTP/&amp;lt;solr-hostname&amp;gt; should be same in the keytab and in MIT KDC database. You can do a 'klist -kt &amp;lt;keytab&amp;gt;' and 'kadmin.local -q "getprincs solr/&amp;lt;solr-hostname&amp;gt;" ' to compare the kvno.&lt;/P&gt;&lt;P&gt;In case the error persist, please set KRB5_TRACE and then run kinit &amp;amp; curl to get more debug output and paste here:&lt;/P&gt;&lt;PRE&gt;export KRB5_TRACE=/tmp/curl-krb.log
kinit &amp;lt;user-principal&amp;gt;
klist -eaf
curl -iv --negotiate -u : &lt;A href="http://&amp;lt;solr-hostname&amp;gt;:8983/solr" target="_blank"&gt;http://&amp;lt;solr-hostname&amp;gt;:8983/solr&lt;/A&gt;
&lt;/PRE&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2017 22:58:25 GMT</pubDate>
    <dc:creator>VR46</dc:creator>
    <dc:date>2017-04-28T22:58:25Z</dc:date>
    <item>
      <title>SOLR + Kerberos error: GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SOLR-Kerberos-error-GSSException-Failure-unspecified-at-GSS/m-p/213502#M175430</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am currently facing an issue at accessing SOLR collection via curl . Cluster is kerberized and working properly (HDFS/Hive/...), but while executing (after grabbing a kerberos ticket as user 'solr') e.g. &lt;/P&gt;&lt;PRE&gt;curl --negotiate -u : 'http://mgr-node1:8983/solr/'&lt;/PRE&gt;&lt;P&gt;I receive the following response:&lt;/P&gt;&lt;PRE&gt;...HTTP Status 403 - GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)...
&lt;/PRE&gt;&lt;P&gt;Keytab for user 'solr' contains:&lt;/P&gt;&lt;PRE&gt;   2 27.04.2017 09:02:49 solr/&amp;lt;node&amp;gt;@&amp;lt;realm&amp;gt; (aes256-cts-hmac-sha1-96)  
   2 27.04.2017 09:02:49 solr/&amp;lt;node&amp;gt;@&amp;lt;realm&amp;gt; (des3-cbc-sha1)     2 27.04.2017 09:02:49 solr/&amp;lt;node&amp;gt;@&amp;lt;realm&amp;gt; (arcfour-hmac)     2 27.04.2017 09:02:49 solr/&amp;lt;node&amp;gt;@&amp;lt;realm&amp;gt; (des-hmac-sha1)&lt;/PRE&gt;&lt;P&gt;MIT-KDC config contains this enctype as well:&lt;/P&gt;&lt;PRE&gt;sudo cat /var/kerberos/krb5kdc/kdc.conf | grep supported_enctypes
  supported_enctypes = aes256-cts-hmac-sha1-96 des3-hmac-sha1 aes256-cts arcfour-hmac des-hmac-sha1&lt;/PRE&gt;&lt;PRE&gt;cat /etc/krb5.conf | grep _enctypes
default_tgs_enctypes = aes256-cts-hmac-sha1-96 des3-hmac-sha1 aes256-cts arcfour-hmac des-hmac-sha1
default_tkt_enctypes = aes256-cts-hmac-sha1-96 des3-hmac-sha1 aes256-cts arcfour-hmac des-hmac-sha1
permitted_enctypes = aes256-cts-hmac-sha1-96 des3-hmac-sha1 aes256-cts arcfour-hmac des-hmac-sha1&lt;/PRE&gt;&lt;P&gt;What is going on there ?&lt;/P&gt;&lt;P&gt;Any help highly appreciated...&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 18:22:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SOLR-Kerberos-error-GSSException-Failure-unspecified-at-GSS/m-p/213502#M175430</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2017-04-27T18:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: SOLR + Kerberos error: GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SOLR-Kerberos-error-GSSException-Failure-unspecified-at-GSS/m-p/213503#M175431</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I don't see any problem with the encryption type here. There are couple of reasons for this kind of error:&lt;/P&gt;&lt;P&gt;1. Please check the SOLR hostname in the curl request is exactly same as what is used in keytab "solr/&amp;lt;solr-hostname&amp;gt;". In ideal condition, both should be FQDN. Also check the same for SPNEGO keytab (HTTP/&amp;lt;solr-hostname&amp;gt;).&lt;/P&gt;&lt;P&gt;2. The Key Version Number (kvno) of solr/&amp;lt;sorl-hostname&amp;gt; and HTTP/&amp;lt;solr-hostname&amp;gt; should be same in the keytab and in MIT KDC database. You can do a 'klist -kt &amp;lt;keytab&amp;gt;' and 'kadmin.local -q "getprincs solr/&amp;lt;solr-hostname&amp;gt;" ' to compare the kvno.&lt;/P&gt;&lt;P&gt;In case the error persist, please set KRB5_TRACE and then run kinit &amp;amp; curl to get more debug output and paste here:&lt;/P&gt;&lt;PRE&gt;export KRB5_TRACE=/tmp/curl-krb.log
kinit &amp;lt;user-principal&amp;gt;
klist -eaf
curl -iv --negotiate -u : &lt;A href="http://&amp;lt;solr-hostname&amp;gt;:8983/solr" target="_blank"&gt;http://&amp;lt;solr-hostname&amp;gt;:8983/solr&lt;/A&gt;
&lt;/PRE&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 22:58:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SOLR-Kerberos-error-GSSException-Failure-unspecified-at-GSS/m-p/213503#M175431</guid>
      <dc:creator>VR46</dc:creator>
      <dc:date>2017-04-28T22:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: SOLR + Kerberos error: GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SOLR-Kerberos-error-GSSException-Failure-unspecified-at-GSS/m-p/213504#M175432</link>
      <description>&lt;P&gt;The correct commands are - &lt;/P&gt;&lt;PRE&gt;kadmin.local -q "getprincs solr/&amp;lt;hostname&amp;gt;"
kadmin.local -q "getprincs HTTP/&amp;lt;hostname&amp;gt;"
&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Apr 2017 23:03:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SOLR-Kerberos-error-GSSException-Failure-unspecified-at-GSS/m-p/213504#M175432</guid>
      <dc:creator>VR46</dc:creator>
      <dc:date>2017-04-28T23:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: SOLR + Kerberos error: GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SOLR-Kerberos-error-GSSException-Failure-unspecified-at-GSS/m-p/213505#M175433</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/740/vrathor.html" nodeid="740"&gt;@Vipin Rathor&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;thank you sooo much. Your hint with the FQDN did the trick.&lt;/P&gt;&lt;P&gt;After putting the FQDN in the curl command, it works nice!&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 01:02:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SOLR-Kerberos-error-GSSException-Failure-unspecified-at-GSS/m-p/213505#M175433</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2017-04-29T01:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: SOLR + Kerberos error: GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SOLR-Kerberos-error-GSSException-Failure-unspecified-at-GSS/m-p/213506#M175434</link>
      <description>&lt;P&gt;Awesome ! Thanks &lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt; for the update. I'm glad that it worked out for you. Cheers.&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 23:07:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SOLR-Kerberos-error-GSSException-Failure-unspecified-at-GSS/m-p/213506#M175434</guid>
      <dc:creator>VR46</dc:creator>
      <dc:date>2017-05-01T23:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: SOLR + Kerberos error: GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SOLR-Kerberos-error-GSSException-Failure-unspecified-at-GSS/m-p/213507#M175435</link>
      <description>&lt;P&gt;@Vipin Rathor:&lt;/P&gt;&lt;P&gt;Can you please help on issue reported in below ticket:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/114311/unable-to-start-solr-service-in-kerberized-environ.html" target="_blank"&gt;https://community.hortonworks.com/questions/114311/unable-to-start-solr-service-in-kerberized-environ.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 16:01:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SOLR-Kerberos-error-GSSException-Failure-unspecified-at-GSS/m-p/213507#M175435</guid>
      <dc:creator>vishwanath_voru</dc:creator>
      <dc:date>2017-07-18T16:01:49Z</dc:date>
    </item>
  </channel>
</rss>

