Help to create chef workstation on Ubuntu 16.04.5

Hi All,

Good day !!

I am trying to create a chef workstation in an Ubuntu 16.04.5. I have followed the steps mentioned for Ubuntu 14.04 with only change in the installer file for Ubuntu 16.04.5. Post the installation steps, I ran "chef verify" command. Please see the output below :

# chef verify
[WARN] This is an internal command used by the ChefDK development team. If you are a ChefDK user, please do not run it.
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 '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'
#<Thread:0x0000000001967c00@/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/command/verify.rb:566 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
        12: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/command/verify.rb:570:in `block (2 levels) in invoke_tests'
        11: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:99:in `run_smoke_test'
        10: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:99:in `instance_eval'
         9: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/command/verify.rb:444:in `block (2 levels) in <class:Verify>'
         8: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:164:in `tmpdir'
         7: from /opt/chefdk/embedded/lib/ruby/2.5.0/tmpdir.rb:89:in `mktmpdir'
         6: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:165:in `block in tmpdir'
         5: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/command/verify.rb:445:in `block (3 levels) in <class:Verify>'
         4: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:128:in `sh!'
         3: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:128:in `tap'
         2: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:128:in `block in sh!'
         1: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/mixlib-shellout-2.3.2/lib/mixlib/shellout.rb:280:in `error!'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/mixlib-shellout-2.3.2/lib/mixlib/shellout.rb:293:in `invalid!': Expected process to exit with [0], but received '101' (Mixlib::ShellOut::ShellCommandFailed)
---- Begin output of delivery setup --user=shipit --server=delivery.shipit.io --ent=chef --org=squirrels ----
STDOUT: 
STDERR: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ColorOutOfRange', libcore/result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ColorOutOfRange', libcore/result.rs:945:5
---- End output of delivery setup --user=shipit --server=delivery.shipit.io --ent=chef --org=squirrels ----
Ran delivery setup --user=shipit --server=delivery.shipit.io --ent=chef --org=squirrels returned 101
Running verification for component 'chef-sugar'
..........Traceback (most recent call last):
        12: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/command/verify.rb:570:in `block (2 levels) in invoke_tests'
        11: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:99:in `run_smoke_test'
        10: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:99:in `instance_eval'
         9: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/command/verify.rb:444:in `block (2 levels) in <class:Verify>'
         8: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:164:in `tmpdir'
         7: from /opt/chefdk/embedded/lib/ruby/2.5.0/tmpdir.rb:89:in `mktmpdir'
         6: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:165:in `block in tmpdir'
         5: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/command/verify.rb:445:in `block (3 levels) in <class:Verify>'
         4: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:128:in `sh!'
         3: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:128:in `tap'
         2: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-dk-3.1.0/lib/chef-dk/component_test.rb:128:in `block in sh!'
         1: from /opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/mixlib-shellout-2.3.2/lib/mixlib/shellout.rb:280:in `error!'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/mixlib-shellout-2.3.2/lib/mixlib/shellout.rb:293:in `invalid!': Expected process to exit with [0], but received '101' (Mixlib::ShellOut::ShellCommandFailed)
---- Begin output of delivery setup --user=shipit --server=delivery .shipit.io --ent=chef --org=squirrels ----
STDOUT: 
STDERR: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ColorOutOfRange', libcore/result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ColorOutOfRange', libcore/result.rs:945:5
---- End output of delivery setup --user=shipit --server=delivery .shipit.io --ent=chef --org=squirrels ----
Ran delivery setup --user=shipit --server=delivery .shipit.io --ent=chef --org=squirrels returned 101

Did anyone came across anything similar ?

The OS is updated with all new version. OS details are as follows
root@chef-work# cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.5 LTS"
VERSION_ID="16.04"

Thanks and Regards,
Praveen

Praveen,

That message shouldn't really be of any concern to the average end user. As noted at the top of the output:

[WARN] This is an internal command used by the ChefDK development team. If you are a ChefDK user, please do not run it.

The failure there is specifically around delivery-cli, which is primarily for Automate customers and so shouldn't affect general usage if it's even a bug. That is to say I'd not worry about the output of that command.

Seth Thomas

1 Like

Hi Seth,

I completely agree with you. Since it was the first time for me, I just thought of posting in forum to see if anyone has got similar output. As you said, we just need to ignore it. Workstation functionalities are all working good and it does it job well.

Thanks again Seth !!

Regards,
Praveen