Omi.keytab Errors Suddenly Start on Azure Server

At 10:17pm last night, an Azure web server (Bitnami WordPress stack) started generating one error per minute, each one sending an identical email, 600+ emails by morning.

Email Subject
Cron root@HOSTNAME [ ( ! -f /etc/opt/omi/creds/omi.keytab ) -o ( /etc/krb5.keytab -nt /etc/opt/omi/creds/omi.keytab ) ] && /opt/omi/bin/support/ktstrip /etc/krb5.keytab

Email Body
src kt = /etc/krb5.keytab
File /etc/krb5.keytab does not exist
/opt/omi/bin/support/ktstrip: 38: exit: Illegal number: –1


The root user’s crontab file (/var/spool/cron/crontabs/root) was changed last night at 10:16:35pm. The following line was added:

* * * * * [ \( ! -f /etc/opt/omi/creds/omi.keytab \) -o \( /etc/krb5.keytab -nt /etc/opt/omi/creds/omi.keytab \) ] && /opt/omi/bin/support/ktstrip /etc/krb5.keytab /etc/opt/omi/creds/omi.keytab


Thanks to onedotover’s comment in Omi issue 425 on Github, I learned that I could run the following command to remove the new line from the crontab file:

sudo /opt/omi/bin/support/ --unconfigure

I suggest following that issue for the latest updates.


I don’t know why the crontab was changed or by whom. Was this pushed from Azure? What is Omi anyway and why is it on this server?

Update January 26, 2018

According to comments on the Github issue cited above, a patch was pushed two days ago that unwittingly included this bug. They are considering pushing a hotfix ahead of the next full version, but the workaround in the meantime is to run the command shown above.

4 thoughts on “Omi.keytab Errors Suddenly Start on Azure Server

  1. Tom Horwood

    Thanks for the tip. Found 5000 emails this morning. Nothing like an error that kicks off at the start of a long weekend. It’s been a while since a google search returned only two results – one of which was useful. Reminds me of the old Googlewhack days.

  2. Juliano

    don’t know if it’s just me but when you copy/paste that line the –unconfigure comes as _unconfigure, which errors (it actually loops into infinite error)

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.

This site uses Akismet to reduce spam. Learn how your comment data is processed.