I am trying to setup a Ubuntu 12.04 LTS with chef. I am getting this error, which I'm assuming is related to my user permissions:
Chef Client failed. 3 resources updated in 5.613887095 seconds [2014-04-13T09:44:41+09:00] ERROR: service[ssh] (basic-security-tlq::default line 59) had an error: Errno::EACCES: Permission denied - /usr/sbin/update-rc.d -n -f ssh remove [2014-04-13T09:44:41+09:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
edit: these are the permissions for the file mentioned in the err log:
-rwxr-xr-x 1 root root 16894 Apr 14 2012 update-rc.d
I've setup other servers (with ubuntu 12.04) using this recipe with no issues, but this is being run on a machine with a different hosting provider. I'm temped to ssh in and start
chmoding file, but that seems a bit drastic. The chef recipe is cooked as
root which is confusing me even more as I thought this user had full permissions?
This may be more appropriate for stackOverflow, but since it's permissions related I thought I'd try here first.
update2: I tried doing
chown root update-rc.d and it still throws the same error. I am starting to wonder if it isn't an SSL problem because of this line in the error
ERROR: service[ssh], but not sure how to investigate that.