2019年1月1日 星期二

openmediavault 4.1.3出現大量錯誤訊息 rrdcached plugin: Failed to connect to RRDCacheD...

安裝完openmediavault 4.1.3 amd64版
發現/var/log/syslog不斷重複湧出錯誤訊息

collectd[3588]: rrdcached plugin: Failed to connect to RRDCacheD at unix:/var/run/rrdcached.sock: Unable to connect to rrdcached: No such file or directory (status=2)

試了forum.openmediavault.org討論區內大部分的建議無效

偶然發現下面這篇,照做終於搞定
原文: https://forum.openmediavault.org/index.php/Thread/21693-rrdcached-plugin-error/

解法提供者racoonsn發現,手動跑rrdcached可正常執行
/usr/bin/rrdcached -B -F -f 3600 -w 900 -b /var/lib/rrdcached/db/ -j /var/lib/rrdcached/journal/ -p /var/run/rrdcached.pid -l unix:/var/run/rrdcached.sock
(我對照過 /etc/default/rrdcached內容完全一樣)

懷疑是/etc/init.d/rrdcached內有甚麼地方寫錯了(本項無結論)

(略)
總之,實測成功的解法如下:

先確認 /sbin/ 內有兩個script
(make sure these two files exist)
   /sbin/start-stop-daemon
   /sbin/start-stop-daemon.REAL
其中,可正常執行的是第二個(.REAL),因此
(we want system to execute the one with extension .REAL so...)

step 1.把第一個備份起來(backup original script)
  mv /sbin/start-stop-daemon /sbin/start-stop-daemon.bak

step 2.把第二個更名(rename .REAL to the same name w/o extension)
  mv /sbin/start-stop-daemon.REAL /sbin/start-stop-daemon

step 3.重新開機(reboot)
  reboot

成功了!


1 則留言:

  1. emperor casino
    Emperor casino. Welcome to the online casino. It is one of the best in the world created by 바카라 사이트 one 1xbet korean of the oldest casinos in the world. Here's what you 제왕카지노 will get.

    回覆刪除