Authentication failure "[Errno 24] Too many open files" during vCenter Appliance Management Interface (VAMI) login
search cancel

Authentication failure "[Errno 24] Too many open files" during vCenter Appliance Management Interface (VAMI) login

book

Article ID: 430003

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • The vCenter Appliance Management Interface (VAMI) login fails with the following error:
    Error: Exception in invoking authentication handler [Errno 24] Too many open files.


  • The appliance may also return the following error:
    Error: Exception in invoking authentication handler /usr/bin/python: undefined symbol: pam_start


  • Additionally, the /var/log/vmware/applmgmt/applmgmt.log file contains repeated tracebacks similar to the following:
    <YYYY-MM-DDTHH:MM:SS> [9933]ERROR:vmware.appliance.syslog.syslog_lib:Got exception in _getIPEb, failure = [Failure instance: Traceback: <class 'OSError'>: [Errno 24] Too many open files

  • SSH sessions to the vCenter may become unresponsive or hang during login.  The vCenter would have to be restarted to regain SSH access.

  • vCenter VAMI 5480/#/login shows 500 - OK

Environment

VMware vCenter 9.0.x

Cause

The issue is caused by a socket connection leak within the applmgmt process. Continuous syslog API messages sent to applmgmt result in accumulated socket connections (specifically targeting port 514) that are not properly cleared. When the process reaches the Linux default limit of 1024 open files, it can no longer open new files or sockets. This breaks VAMI authentication and causes SSH to become unresponsive due to process overload.

To confirm if the vCenter is experiencing this specific socket leak, perform the following verification steps:

  1. Obtain the applmgmt process ID (PID) by running the following command:

    pgrep -alf applmgmt | grep serve

    Expected output:
    <PID> /usr/bin/python /usr/lib/applmgmt/base/bin/vherdrunner /usr/lib/applmgmt/transport/bin/serve

  2. Use the socket statistics utility to check for port 514 connections used by syslog. Replace <PID> with the process ID identified in Step 1:
    ss -pant | grep <PID> | grep 514

Resolution

This issue is resolved in VMware vCenter 9.1. To download this release, reference the following Knowledge Base article:
Download Broadcom products, patches and software

If the issue is confirmed on vCenter 9.0 and immediate remediation is required prior to upgrading, contact Broadcom Support and reference this Knowledge Base article to obtain the workaround.
Contact Broadcom support