Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2017 21:32:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 222481] sysutils/rubygem-chef: package installation doesn't necessarily create /var/chef/...; causes some issues with tools
Message-ID:  <bug-222481-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222481

            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@FreeBSD.org
          Reporter: ngie@FreeBSD.org
                CC: renchap@cocoa-x.com
             Flags: maintainer-feedback?(renchap@cocoa-x.com)
                CC: renchap@cocoa-x.com

chef-solo from rubygem-chef-13.2.20 requires /var/chef exist in order to ru=
n,
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.

=3D=3D BEFORE =3D=3D

# 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 directo=
ry @
dir_s_mkdir - /var/chef/nodes>
...

ESC[0mSystem Info:ESC[0m
------------ESC[0m
chef_version=3D13.2.20
ESC[0mruby=3Druby 2.3.4p301 (2017-03-30 revision 58214) [amd64-freebsd11]
ESC[0mprogram_name=3Dchef-solo worker: ppid=3D5888;start=3D14:29:34;
ESC[0mexecutable=3D/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: Ch=
ef
run process exited unsuccessfully (exit code 1)

=3D=3D AFTER =3D=3D

# 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: *****************************************

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222481-13>