Chef:Addressable :: URI :: InvalidURIError

时间:2017-05-04 10:52:45

标签: ubuntu networking chef ubuntu-16.04

我跑了"厨师验证"在我的工作站/本地机器上,得到了这个错误结果。

mike@mike-pc:/opt/chefdk$ chef verify
 Running verification for component 'berkshelf'
 Running verification for component 'test-kitchen'
 Running verification for component 'tk-policyfile-provisioner'
 Running verification for component 'chef-client'
 Running verification for component 'chef-dk'
 Running verification for component 'chef-provisioning'
 Running verification for component 'chefspec'
 Running verification for component 'generated-cookbooks-pass-chefspec'
 Running verification for component 'rubocop'
 Running verification for component 'fauxhai'
 Running verification for component 'knife-spork'
 Running verification for component 'kitchen-vagrant'
 Running verification for component 'package installation'
 Running verification for component 'openssl'
 Running verification for component 'inspec'
 Running verification for component 'delivery-cli'
 Running verification for component 'git'
 Running verification for component 'opscode-pushy-client'
 Running verification for component 'chef-sugar'
 ...

 An error occurred in a `before(:suite)` hook.
 Failure/Error: raise InvalidURIError, "Invalid scheme format: #{new_scheme}"

Addressable::URI::InvalidURIError:
  Invalid scheme format: 127.0.0.1
 # /home/mike-pc/.chefdk/gem/ruby/2.3.0/gems/berkshelf-5.6.4/lib/berkshelf/source.rb:58:in `build_universe'
 # /home/mike-pc/.chefdk/gem/ruby/2.3.0/gems/berkshelf-5.6.4/lib/berkshelf/installer.rb:21:in `block (2 levels) in build_universe'


 Finished in 0.25155 seconds (files took 1.57 seconds to load)
 0 examples, 0 failures

我执行了#34;厨房诊断 - 所有"并发现我的URI无效:

instances:
  default-centos-72:
    platform:
      os_type: unix
      shell_type: bourne
    state_file:
      hostname: 127.0.0.1
      last_action: create
      last_error: Addressable::URI::InvalidURIError
      port: '2222'

如何解决此问题?

1 个答案:

答案 0 :(得分:0)

chef verify不是您应该运行的命令。这是ChefDK开发人员和发布团队的目标。