I am attempting to setup a chef server (v12) using this guide. I follow it to the letter and have tried on both Ubuntu 14.04 and 12.04.5, I have also tried on Centos 7. Everything works great until I have to create a user. I run the command and it returns ERROR: CONFIGURATION ERROR:Specified config file /etc/opscode/pivotal.rb does not exist.
I then spun up a Ubuntu 14.04 VM on my PC from a vanilla iso and followed the same guide and it works perfectly. I haven’t tried on another VPS provider yet however it’s strange that it works on the VM but not Digital Ocean.
Has anyone else had this issue or even better does anyone know how to fix it?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This question was answered by @cbrowne:
I know it’s a few months since the question was asked. I also had this problem when running
chef-server-ctl user-create ...What solved this problem for me was running the command
chef-server-ctl ...with sudo. Unless you are logged in as root user (which you probably shouldn’t be!), your current user wouldn’t have permissions to create the file/etc/opscode/pivotal.rbI had a few other problems with the server not starting correctly but the following commands auto-solved the problem and cleaned up any mistakes I made:
sudo chef-server-ctl reconfigure sudo chef-server-ctl restart
You can see the comment here.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.