您好,登錄后才能下訂單哦!
本篇內容主要講解“使用cf_nise_installer安裝CloudFoundry出現not monitored問題如何解決”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學習“使用cf_nise_installer安裝CloudFoundry出現not monitored問題如何解決”吧!
使用github.com/yudai/cf_nise_installer安裝cf v2的版本,安裝過程一切正常,但是啟動的時候,出現:
warden not monitored
dea_next not monitored
查看日志:/var/vcap/data/sys/log/
{"timestamp":1398210883.1947148,"message":"Configuration","log_level":"info","source":"Warden::Server","data":{"server":{"unix_domain_path":"/var/vcap/data/warden/warden.sock","unix_domain_permissions":511,"container_klass":"Warden::Container::Linux","container_grace_time":300,"job_output_limit":10485760,"quota":{"disk_quota_enabled":true},"allow_nested_warden":false,"container_rootfs_path":"/var/vcap/packages/rootfs_lucid64","container_depot_path":"/var/vcap/data/warden/depot","pidfile":"/var/vcap/sys/run/warden/warden.pid"},"logging":{"level":"debug","file":"/var/vcap/sys/log/warden/warden.log"},"network":{"pool_network":"10.254.0.0/22","deny_networks":[],"allow_networks":[],"mtu":1500},"port":{"pool_start_port":61001,"pool_size":4000},"user":{"pool_start_uid":20000,"pool_size":256}},"thread_id":10985600,"fiber_id":14890600,"process_id":5745,"file":"/var/vcap/data/packages/warden/42/warden/lib/warden/server.rb","lineno":271,"method":"run!"}
{"timestamp":1398210883.2596564,"message":"Exited with status 1 (0.063s): [[\"/var/vcap/data/packages/warden/42/warden/src/closefds/closefds\", \"/var/vcap/data/packages/warden/42/warden/src/closefds/closefds\"], \"/var/vcap/data/packages/warden/42/warden/root/linux/setup.sh\"]","log_level":"warn","source":"Warden::Container::Linux","data":{"stdout":"Usage: /etc/init.d/apparmor {start|stop|restart|reload|force-reload|status|recache}\n","stderr":""},"thread_id":10985600,"fiber_id":14890600,"process_id":5745,"file":"/var/vcap/data/packages/warden/42/warden/lib/warden/container/spawn.rb","lineno":135,"method":"set_deferred_success"}
——沒看出啥來
等啟動完畢后,用命令行:/var/vcap/bosh/bin/monit start warden單獨啟動,結果出現日志:
{"timestamp":1398255657.4987667,"message":"Configuration","log_level":"info","source":"Warden::Server","data":{"server":{"unix_domain_path":"/var/vcap/data/warden/warden.sock","unix_domain_permissions":511,"container_klass":"Warden::Container::Linux","container_grace_time":300,"job_output_limit":10485760,"quota":{"disk_quota_enabled":true},"allow_nested_warden":false,"container_rootfs_path":"/var/vcap/packages/rootfs_lucid64","container_depot_path":"/var/vcap/data/warden/depot","pidfile":"/var/vcap/sys/run/warden/warden.pid"},"logging":{"level":"debug","file":"/var/vcap/sys/log/warden/warden.log"},"network":{"pool_network":"10.254.0.0/22","deny_networks":[],"allow_networks":[],"mtu":1500},"port":{"pool_start_port":61001,"pool_size":4000},"user":{"pool_start_uid":20000,"pool_size":256}},"thread_id":6488200,"fiber_id":10393520,"process_id":5271,"file":"/var/vcap/data/packages/warden/42/warden/lib/warden/server.rb","lineno":271,"method":"run!"}
{"timestamp":1398255657.5916147,"message":"Exited with status 2 (0.091s): [[\"/var/vcap/data/packages/warden/42/warden/src/closefds/closefds\", \"/var/vcap/data/packages/warden/42/warden/src/closefds/closefds\"], \"/var/vcap/data/packages/warden/42/warden/root/linux/setup.sh\"]","log_level":"warn","source":"Warden::Container::Linux","data":{"stdout":" * Unloading AppArmor profiles\n ...done.\n","stderr":"quotacheck: lstat Cannot stat `//home/mattxia/.gvfs': Permission denied\nGuess you'd better run fsck first !\nexiting...\nquotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.\nquotaon: Cannot find quota file on / [/dev/sda1] to turn quotason/off.\n"},"thread_id":6488200,"fiber_id":10393520,"process_id":5271,"file":"/var/vcap/data/packages/warden/42/warden/lib/warden/container/spawn.rb","lineno":135,"method":"set_deferred_success"}
在這個issure種看到一樣的問題
https://github.com/yudai/cf_nise_installer/issues/51
Then i run three commands:
$umount /home/yourname/.gvfs
$find . -inum 554009 -exec rm{} \;
$rm -rf .gvfs
同樣刪除掉.gvfs,再看下日志,已經啟動了(monit隔一段時間拉起一次,看來類似watchdog的功能)
dea不能啟動,應該是因為dea依賴于warden(需要warden來做隔離)
再用/var/vcap/bosh/bin/monit summary查看下,一切正常
CF變化太快,跟去年看的時候已經變化太多了...
后來在其他機器上重裝了一下,還出現這個問題,但是安裝了10.04所有的補丁后,一切OK了,所以解決這個問題首先要安裝10.04的所有補丁,記住!
到此,相信大家對“使用cf_nise_installer安裝CloudFoundry出現not monitored問題如何解決”有了更深的了解,不妨來實際操作一番吧!這里是億速云網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。