温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

使用cf_nise_installer安装CloudFoundry出现not monitored问题如何解决

发布时间:2021-07-26 21:44:23 来源:亿速云 阅读:132 作者:chen 栏目:云计算

本篇内容主要讲解“使用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问题如何解决”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI