我在工作站/本地计算机上运行了“首席验证”,并得到了此错误结果。
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
我执行了“厨房诊断-all”,发现我有无效的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'
我该如何解决这个问题?
最佳答案
错误非常明显:
Addressable::URI::InvalidURIError:
Invalid scheme format: 127.0.0.1
我认为您在“ 127.0.0.1”之前缺少“ http://”。
关于ubuntu - 厨师:可寻址:: URI::InvalidURIError,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/43780864/