Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cook fails when wrong Nginx app conf #10

Open
cberkhoff opened this issue Oct 12, 2012 · 0 comments
Open

Cook fails when wrong Nginx app conf #10

cberkhoff opened this issue Oct 12, 2012 · 0 comments
Labels

Comments

@cberkhoff
Copy link

Error executing action start on resource 'service[nginx]'

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '1'
---- Begin output of /etc/init.d/nginx start ----
STDOUT: Starting nginx:
STDERR: nginx: [emerg] host not found in upstream "aim" in /etc/nginx/sites-enabled/aim:27
nginx: configuration file /etc/nginx/nginx.conf test failed
---- End output of /etc/init.d/nginx start ----
Ran /etc/init.d/nginx start returned 1

Resource Declaration:

In /tmp/chef-solo/site-cookbooks/nginx/recipes/default.rb

88:
89: service "nginx" do
90: supports :status => true, :restart => true, :reload => true
91: action [:enable, :start]
92: end
93:

Compiled Resource:

Declared in /tmp/chef-solo/site-cookbooks/nginx/recipes/default.rb:89:in `from_file'

service("nginx") do
action [:enable, :start]
supports {:status=>true, :restart=>true, :reload=>true}
retries 0
retry_delay 2
service_name "nginx"
pattern "nginx"
startup_type :automatic
cookbook_name :nginx
recipe_name "default"
end

[2012-10-12T11:17:41-04:00] ERROR: Running exception handlers
[2012-10-12T11:17:41-04:00] ERROR: Exception handlers complete
[2012-10-12T11:17:41-04:00] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out
[2012-10-12T11:17:41-04:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: service[nginx](nginx::default line 89) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /etc/init.d/nginx start ----
STDOUT: Starting nginx:
STDERR: nginx: [emerg] host not found in upstream "aim" in /etc/nginx/sites-enabled/aim:27
nginx: configuration file /etc/nginx/nginx.conf test failed
---- End output of /etc/init.d/nginx start ----
Ran /etc/init.d/nginx start returned 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant