From d6da86ef1d802494a18d7de5bdebff3da056113a Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: May 25 2022 09:26:16 +0000 Subject: PR#3370: kojid: don't fail on missing ccache file Merges #3370 https://pagure.io/koji/pull-request/3370 Fixes: #3369 https://pagure.io/koji/issue/3369 When ccache doesn't exist, kojid will not start --- diff --git a/builder/kojid b/builder/kojid index 248f1fb..cd2e1ed 100755 --- a/builder/kojid +++ b/builder/kojid @@ -6624,7 +6624,7 @@ if __name__ == "__main__": krb_principal = options.host_principal_format % socket.getfqdn() try: # Check ccache is not empty or authentication will fail - if os.stat(options.ccache).st_size == 0: + if os.path.exists(options.ccache) and os.stat(options.ccache).st_size == 0: os.remove(options.ccache) session.gssapi_login(principal=krb_principal,