Ad Widget

Collapse

Zabbix looses DB connection after a few seconds

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FFB-Group
    Junior Member
    • Jan 2023
    • 14

    #1

    Zabbix looses DB connection after a few seconds

    We recently upgradet our Zabbix from 6.0.9 to 6.0.12


    Now we have some strange behaviour from our zabbix service while trying to connect to our database.
    We use a mysql database.

    After a reboot the server conntects to the database, but after a few seconds he looses the connetcion.

    Furthermore, after that happend i was not able to stop the mysql services with "systemctl". And i cant normaly shutdown the machine anymore and I had to forceoff the machine.


    Following the errors of the zabbix.server error log and the mysql error log.

    Click image for larger version

Name:	image.png
Views:	346
Size:	58.6 KB
ID:	457620


    What i already tried:

    - restart Server
    - stop and restart services
    - checking for new updates and upgrade them
    Attached Files
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    The "Too many open files" error is likely where you should start.

    You may need to use "systemctl edit" or create a systemctl "drop in" file to increase the number of files that the 'zabbix' user can have open at once. You probably want to read the systemctl documentation for "LimitNOFILE" and "systemctl edit".

    Comment

    • FFB-Group
      Junior Member
      • Jan 2023
      • 14

      #3
      That already helped, we have had made some changes with the "systemctl edit" but i had to configure the "LimitNOFILE" in "/etc/systemd/system.conf". Now its working again, thanks

      Comment

      Working...