[Bug 222481] sysutils/rubygem-chef: package installation doesn't necessarily create /var/chef/...; causes some issues with tools

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Sep 20 21:32:31 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222481

            Bug ID: 222481
           Summary: sysutils/rubygem-chef: package installation doesn't
                    necessarily create /var/chef/...; causes some issues
                    with tools
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: ngie at FreeBSD.org
                CC: renchap at cocoa-x.com
             Flags: maintainer-feedback?(renchap at cocoa-x.com)
                CC: renchap at cocoa-x.com

chef-solo from rubygem-chef-13.2.20 requires /var/chef exist in order to run,
but unfortunately installing the package didn't create the directory. This
results in a slightly cryptic error when trying to run chef-solo from the
package.

Creating /var/chef beforehand, then rerunning chef-solo allows it to run to
completion.

== BEFORE ==

# chef-solo
[2017-09-20T14:29:33-07:00] WARN: *****************************************
[2017-09-20T14:29:33-07:00] WARN: Did not find config file: /etc/chef/solo.rb,
using command line options.
[2017-09-20T14:29:33-07:00] WARN: *****************************************
[2017-09-20T14:29:33-07:00] WARN: No cookbooks directory found at or above
current directory.  Assuming /var/chef.
[2017-09-20T14:29:33-07:00] WARN: *****************************************
[2017-09-20T14:29:33-07:00] WARN: Did not find config file:
/etc/chef/client.rb, using command line options.
[2017-09-20T14:29:33-07:00] WARN: *****************************************
Starting Chef Client, version 13.2.20ESC[0m
[2017-09-20T14:29:36-07:00] ERROR: #<Errno::ENOENT: No such file or directory @
dir_s_mkdir - /var/chef/nodes>
...

ESC[0mSystem Info:ESC[0m
------------ESC[0m
chef_version=13.2.20
ESC[0mruby=ruby 2.3.4p301 (2017-03-30 revision 58214) [amd64-freebsd11]
ESC[0mprogram_name=chef-solo worker: ppid=5888;start=14:29:34;
ESC[0mexecutable=/usr/local/bin/chef-soloESC[0m

ESC[0mESC[0m
Running handlers:ESC[0m
[2017-09-20T14:29:36-07:00] ERROR: Running exception handlers
Running handlers complete
ESC[0m[2017-09-20T14:29:36-07:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 02 secondsESC[0m
[2017-09-20T14:29:36-07:00] FATAL: Stacktrace dumped to
/etc/chef/local-mode-cache/cache/chef-stacktrace.out
[2017-09-20T14:29:36-07:00] FATAL: Please provide the contents of the
stacktrace.out file if you file a bug report
[2017-09-20T14:29:36-07:00] ERROR: 500 "Internal Server Error"
[2017-09-20T14:29:36-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef
run process exited unsuccessfully (exit code 1)

== AFTER ==

# chef-solo
[2017-09-20T14:31:41-07:00] WARN: *****************************************
[2017-09-20T14:31:41-07:00] WARN: Did not find config file: /etc/chef/solo.rb,
using command line options.
[2017-09-20T14:31:41-07:00] WARN: *****************************************
[2017-09-20T14:31:41-07:00] WARN: No cookbooks directory found at or above
current directory.  Assuming /var/chef.
[2017-09-20T14:31:41-07:00] WARN: *****************************************
[2017-09-20T14:31:41-07:00] WARN: Did not find config file:
/etc/chef/client.rb, using command line options.
[2017-09-20T14:31:41-07:00] WARN: *****************************************
Starting Chef Client, version 13.2.20ESC[0m
resolving cookbooks for run list: []ESC[0m
Synchronizing Cookbooks:ESC[0m
Installing Cookbook Gems:ESC[0m
Compiling Cookbooks...ESC[0m
[2017-09-20T14:31:43-07:00] WARN: Node fbsd11 has an empty run list.
Converging 0 resourcesESC[0m
ESC[0m
Running handlers:ESC[0m
Running handlers complete
ESC[0mChef Client finished, 0/0 resources updated in 02 secondsESC[0m
[2017-09-20T14:31:43-07:00] WARN: *****************************************
[2017-09-20T14:31:43-07:00] WARN: Did not find config file:
/etc/chef/client.rb, using command line options.
[2017-09-20T14:31:43-07:00] WARN: *****************************************

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list