mysqld service not running
Posted: Fri Jul 19, 2019 12:31 am
Dear Support Team,
This morning I received a report indicating that the users cannot login into Nagios XI. After some checks I found that the mysqld service was stopped and I was not able to start it.
The tail of the mysqld.log reads as follows:
[root@nagios log]# tail mysqld.log
190718 23:23:43 InnoDB: Error: unable to create temporary file; errno: 28
190718 23:23:43 [ERROR] Plugin 'InnoDB' init function returned error.
190718 23:23:43 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
190718 23:23:43 [ERROR] Can't start server : Bind on unix socket: No space left on device
190718 23:23:43 [ERROR] Do you already have another mysqld server running on socket: /var/lib/mysql/mysql.sock ?
190718 23:23:43 [ERROR] Aborting
190718 23:23:43 [Note] /usr/libexec/mysqld: Shutdown complete
190718 23:23:43 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
I do have space on all partitions:
[root@nagios tmp]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
37G 24G 12G 69% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 477M 95M 357M 21% /boot
I also tried to run the repair_databases.sh script without success.
I rebooted the virtual machine and the problem continues.
Found that on /var/tmp are some directories full of files: check_oracle_health oradiag_nagios oradiag_root
the amount of files is so big that I ran the command find /var/tmp -type f | wc -l to count the files and I aborted it after 30 minutes without any response.
These files are related to an oracle db package installed following nagios xi recommendations in order to monitor several oracle instances.
I believe this unusual amount of files is causing the tmp filesystem to collapse and myslqd cannot run in these conditions.
Any ideas son how to solve this issue?
Thanks,
Alejandro Arroyo
This morning I received a report indicating that the users cannot login into Nagios XI. After some checks I found that the mysqld service was stopped and I was not able to start it.
The tail of the mysqld.log reads as follows:
[root@nagios log]# tail mysqld.log
190718 23:23:43 InnoDB: Error: unable to create temporary file; errno: 28
190718 23:23:43 [ERROR] Plugin 'InnoDB' init function returned error.
190718 23:23:43 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
190718 23:23:43 [ERROR] Can't start server : Bind on unix socket: No space left on device
190718 23:23:43 [ERROR] Do you already have another mysqld server running on socket: /var/lib/mysql/mysql.sock ?
190718 23:23:43 [ERROR] Aborting
190718 23:23:43 [Note] /usr/libexec/mysqld: Shutdown complete
190718 23:23:43 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
I do have space on all partitions:
[root@nagios tmp]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
37G 24G 12G 69% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 477M 95M 357M 21% /boot
I also tried to run the repair_databases.sh script without success.
I rebooted the virtual machine and the problem continues.
Found that on /var/tmp are some directories full of files: check_oracle_health oradiag_nagios oradiag_root
the amount of files is so big that I ran the command find /var/tmp -type f | wc -l to count the files and I aborted it after 30 minutes without any response.
These files are related to an oracle db package installed following nagios xi recommendations in order to monitor several oracle instances.
I believe this unusual amount of files is causing the tmp filesystem to collapse and myslqd cannot run in these conditions.
Any ideas son how to solve this issue?
Thanks,
Alejandro Arroyo