fabriziosalmi / proxmox-vm-autoscale

Automatically scale virtual machines resources on Proxmox hosts
MIT License
155 stars 6 forks source link

Too many open ssh sessions #7

Closed burnbrigther closed 1 month ago

burnbrigther commented 1 month ago

Housekeeping is needed on the ssh sessions:

2024-10-02 19:49:52,456 [ERROR] vm_autoscale: Error processing VM 103 on host host1: [Errno 24] Too many open files
2024-10-02 19:49:52,456 [WARNING] vm_autoscale: No notification method is enabled or configured correctly. Message: Error processing VM 103 on host host1: [Errno 24] Too many open files
2024-10-02 19:49:52,456 [ERROR] ssh_utils: Error executing command on XXX.XXX.XXX.XXX: 'NoneType' object has no attribute 'open_session'
2024-10-02 19:49:52,456 [ERROR] vm_resource_manager: Failed to get resource usage for VM 105: 'NoneType' object has no attribute 'open_session'
2024-10-02 19:49:52,456 [ERROR] vm_autoscale: Error processing VM 105 on host host1: 'NoneType' object has no attribute 'open_session'
2024-10-02 19:49:52,456 [WARNING] vm_autoscale: No notification method is enabled or configured correctly. Message: Error processing VM 105 on host host1: 'NoneType' object has no attribute 'open_session'

You will need a process to clean up excessive open ssh sessions. I've ran in to this before and restarting the sshd doesn't cut it. Only a reboot seems to solve this problem.

fabriziosalmi commented 1 month ago

Fixed here, thank you 🍻