puppet客户端执行的时候,在第二次调试的时候,会遇到如下的报错。
/usr/lib/ruby/site_ruby/1.8/puppet/util/plugins.rb:49:in `expand_path': No such file or directory - getcwd (Errno::ENOENT)
from /usr/lib/ruby/site_ruby/1.8/puppet/util/plugins.rb:49:in `look_in'
from /usr/lib/ruby/site_ruby/1.8/puppet/util/plugins.rb:49:in `collect'
from /usr/lib/ruby/site_ruby/1.8/puppet/util/plugins.rb:49:in `look_in'
from /usr/lib/ruby/site_ruby/1.8/puppet/util/plugins.rb:54
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:2:in `require'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:2
from /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:1:in `require'
from /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:1
from /usr/sbin/puppetd:3:in `require'
from /usr/sbin/puppetd:3
经过网上的查询得知:
提供点线索,我出现这类问题的时候是由于在exec中设置了environment修改了当前终端的环境变量导致的,断开重连再次执行就恢复了。
阅读(1636) | 评论(0) | 转发(0) |