apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13

Ubuntu
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13

文章 yehlu »

https://blog.gspirits.org/wp/1858

在ubuntu 18.04,MariaDB 10.1.34裝好之後,啟動發生問題?真奇怪,現象是
sudo systemctl start mariadb

後,卡住,約一分鐘後mysqld process自己結束,
systemctl status mariadb

說 mariadb.service: Start operation timed out. Terminating.

用 journalctl -xe 顯示有一堆mariadb相關的mysqld apparmor=”DENIED” 訊息,例如:
Aug 18 15:14:37 G3258-H87TN kernel: [ 2336.888019] audit: type=1400 audit(1534576477.647:87): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/sys/devices/system/node/" pid=15348 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Aug 18 15:51:01 G3258-H87TN kernel: [ 1825.518188] audit: type=1400 audit(1534578661.329:33): apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=9354 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=107 ouid=0

查了一下,網上高人指出是apparmor的問題,為什麼?不知道,就目錄權限之類的問題。

解決之法是:安裝 apparmor-utils
sudo apt-get install apparmor-utils


sudo aa-complain /usr/sbin/mysqld


sudo aa-disable /usr/sbin/mysqld

Reboot之就好了。

還是怕忘記,記起來參考。
回覆文章

回到「Ubuntu」