Skip to main content
wert_1311
Gold ⭐️
February 22, 2022
Solved

Kerberos Logging

Hello,
How do I check the location where Kerberos is writing logs?
I checked the location which is mentioned in krb5.conf (default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log) however the log files mentioned in this location are empty. Am I checking an incorrect location?

 

Secondly logs on Hue Server & KT renewer is not getting updated / current.

 

Any help/guidance is appreciated.

araujo
araujoAnswer
Platinum ⭐️⭐️⭐️
February 25, 2022

@wert_1311 ,

 

Kerberos issue can be a hard thing to troubleshoot. I've done a LOT of troubleshooting involving Kerberos and I still find myself stumped at times.

 

What's in the krb5kdc.log rarely matters. The best way to find out what's going on is to look at the client log.

Enable debug logging for your application and ensure you also toggle debug mode for the Kerberos modules with -Dsun.security.krb5.debug=true for your application.

 

Look at and read the logs carefully, and google a lot 🙂 Kerberos debug logs are rarely intuitive.

If you can share some of that here it might help us find some clues as to what is going on. If you can't, I understand.

 

Good luck.

André

 

-- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.

15 replies

araujo
Platinum ⭐️⭐️⭐️
Platinum ⭐️⭐️⭐️
February 23, 2022

Hi @wert_1311 ,

 


How do I check the location where Kerberos is writing logs?
I checked the location which is mentioned in krb5.conf (default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log) however the log files mentioned in this location are empty. Am I checking an incorrect location?

Can you explain what you are trying to verify/check?

What sort of Kerberos information are you looking for? What kind of problem are you troubleshooting?

 

Secondly logs on Hue Server & KT renewer is not getting updated / current.

Do you mean that the logs have not been updated for a while? Is the disk full?

What's the location of the logs that you're looking at?

Have you double-checked that you are checking the logs in the correct hosts, where the Hue Server and KT Renewer is deployed to?

 

Cheers,

André

 

Translate
-- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.
wert_1311
wert_1311Author
Gold ⭐️
February 23, 2022

Hi @araujo 

Appericate your reply, regarding the first part of the question, I am trying to check the KDC server logs to troubleshoot an issue wherein an application is unable to renew its ticket, hence wanted to check the logs.
Now for the second issue, the logs are not getting written in /var/log/hue/ (on the host where the roles are configured) for kt_renewer.log & runcpserver.log as the timestamp on both on them show Nov 24. There is ample Disk Space available.

 

Thanks 

Wert

Translate
wert_1311
wert_1311Author
Gold ⭐️
February 23, 2022

Hi @araujo,

Yes we are using MIT Kerberose, below is the configs of /var/kerberos/krb5kdc/kdc.conf

 

Spoiler

[kdcdefaults]
kdc_ports = 88
kdc_tcp_ports = 88

[realms]
MY_COMPANY.COM = {
#master_key_type = aes256-cts
acl_file = /var/kerberos/krb5kdc/kadm5.acl
dict_file = /usr/share/dict/words
max_renewable_life = 7d 0h 0m 0s
forwardable = true
udp_preference_limit = 1
admin_keytab = /var/kerberos/krb5kdc/kadm5.keytab
supported_enctypes = aes256-cts:normal aes128-cts:normal des3-hmac-sha1:normal arcfour-hmac:normal camellia256-cts:normal camellia128-cts:normal des-hmac-sha1:normal des-cbc-md5:normal des-cbc-crc:normal
 default_principal_flags = +renewable, +forwardable
database_name = /opt/localkrb5/krb5kdc/principal
}

I do not see any infomation about logging in this.

 

 

Regarding the second issue I have found a solution - https://my.cloudera.com/knowledge/Logs-are-not-updating-in-varloghue-after-upgrading-to-CDH-6?id=87842 

 

Thanks 

Wert

Translate