No space left on device: AH00023: Couldn’t create the ssl-cache mutex . Решение проблемы.

Возникла следующая проблема при перезагрузке сервера:

root ~ # systemctl restart httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

Чтобы посмотреть, что же произошло выполнил следующую команду:

root ~ # systemctl -l status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Чт 2020-03-05 11:30:52 CET; 5min ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 23833 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 31289 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  Process: 23831 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 23831 (code=exited, status=1/FAILURE)

мар 05 11:30:52 CentOS-76-64-minimal systemd[1]: Starting The Apache HTTP Server...
мар 05 11:30:52 CentOS-76-64-minimal systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
мар 05 11:30:52 CentOS-76-64-minimal kill[23833]: kill: cannot find process ""
мар 05 11:30:52 CentOS-76-64-minimal systemd[1]: httpd.service: control process exited, code=exited status=1
мар 05 11:30:52 CentOS-76-64-minimal systemd[1]: Failed to start The Apache HTTP Server.
мар 05 11:30:52 CentOS-76-64-minimal systemd[1]: Unit httpd.service entered failed state.
мар 05 11:30:52 CentOS-76-64-minimal systemd[1]: httpd.service failed.

Посмотрел error_log:

root ~ # tail -f /var/log/httpd/error_log
 [Thu Mar 05 11:53:14.038348 2020] [suexec:notice] [pid 24297] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
 [Thu Mar 05 11:53:14.039025 2020] [core:emerg] pid 24297No space left on device: AH00023: Couldn't create the ssl-cache mutex
 AH00016: Configuration Failed

Решение

Чтобы решить данную проблему нужно выполнить следующие команды:

root ~ # ipcs | grep apache | awk '{print $2}' > sem.txt
root ~ # for i in `cat sem.txt`; do { ipcrm -s $i; }; done;
root ~ # service httpd restart
Redirecting to /bin/systemctl restart httpd.service

Спасибо за подсказку: https://www.wachid.web.id/2019/08/how-to-solve-no-space-left-on-device.html или подробнее расписано здесь: http://www.lifelinux.com/how-to-fix-apache-error-28no-space-left-on-device/

0 0 vote
Article Rating
Подписаться
Уведомление о
guest
0 Комментарий
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x