Debian 8 fresh Chef installation error

Posted on Leave a commentPosted in IT

Missing folder under debian 8 jessie, Error output:

Recipe: enterprise::runit_systemd
  * template[/usr/lib/systemd/system/private_chef-runsvdir-start.service] action create
    * Parent directory /usr/lib/systemd/system does not exist.
    ================================================================================
    Error executing action `create` on resource 'template[/usr/lib/systemd/system/private_chef-runsvdir-start.service]'
    ================================================================================

    Chef::Exceptions::EnclosingDirectoryDoesNotExist
    ------------------------------------------------
    Parent directory /usr/lib/systemd/system does not exist.

Just a small issue with a fresh install under Debian 8.
The folder /usr/lib/systemd/system does not necessary exist on a fresh install of Debian and there is an error in the receipe : /opt/opscode/embedded/cookbooks/cache/cookbooks/enterprise/recipes/runit_systemd.rb

Just creating the folder manually fix the problem :

mkdir /usr/lib/systemd/system

 

https://github.com/chef-cookbooks/chef-server/issues/86

 

PS: for most cases solo will be enough:

curl https://www.opscode.com/chef/install.sh | sudo bash