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

Subsequent runs of asterisk-cookbook fail with error "unimrcp-server is already running" #13

Open
bklang opened this issue Oct 9, 2014 · 0 comments

Comments

@bklang
Copy link

bklang commented Oct 9, 2014

This is using Telephony-Dev-Box. Running "vagrant provision asterisk" on an already provisioned node yields this:

==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: Platform ubuntu version 12.04 found
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] falling back to process table inspection
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] attempting to match 'unimrcp-server' (/unimrcp-server/) against process list
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] running: false
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 0, action stop, priority 20
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 1, action stop, priority 20
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 2, action start, priority 20
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 3, action start, priority 20
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 4, action start, priority 20
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 5, action start, priority 20
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 6, action stop, priority 20
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] already enabled - nothing to do
==> asterisk: [2014-10-09T02:47:09+00:00] INFO: Processing service[unimrcp-server] action start (mojolingo-misc::mrcp_server_config line 16)
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: Platform ubuntu version 12.04 found
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] falling back to process table inspection
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] attempting to match 'unimrcp-server' (/unimrcp-server/) against process list
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] running: false
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 0, action stop, priority 20
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 1, action stop, priority 20
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 2, action start, priority 20
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 3, action start, priority 20
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 4, action start, priority 20
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 5, action start, priority 20
==> asterisk: [2014-10-09T02:47:09+00:00] DEBUG: service[unimrcp-server] runlevel 6, action stop, priority 20
==> asterisk:
==> asterisk: ================================================================================
==> asterisk: Error executing action `start` on resource 'service[unimrcp-server]'
==> asterisk: ================================================================================
==> asterisk:
==> asterisk:
==> asterisk: Mixlib::ShellOut::ShellCommandFailed
==> asterisk: ------------------------------------
==> asterisk: Expected process to exit with [0], but received '1'
==> asterisk:
==> asterisk: ---- Begin output of /etc/init.d/unimrcp-server start ----
==> asterisk:
==> asterisk: STDOUT: Starting unimrcpserver...
==> asterisk:
==> asterisk: unimrcpserver is already running.
==> asterisk:
==> asterisk: STDERR:
==> asterisk:
==> asterisk: ---- End output of /etc/init.d/unimrcp-server start ----
==> asterisk:
==> asterisk: Ran /etc/init.d/unimrcp-server start returned 1
==> asterisk:
==> asterisk:
==> asterisk: Resource Declaration:
==> asterisk: ---------------------
==> asterisk: # In /tmp/vagrant-chef-2/chef-solo-1/cookbooks/mojolingo-misc/recipes/mrcp_server_config.rb
==> asterisk:
==> asterisk:
==> asterisk:
==> asterisk:  16: service 'unimrcp-server' do
==> asterisk:
==> asterisk:  17:   action [:enable, :start]
==> asterisk:
==> asterisk:  18: end
==> asterisk:
==> asterisk:
==> asterisk:
==> asterisk: Compiled Resource:
==> asterisk: ------------------
==> asterisk: # Declared in /tmp/vagrant-chef-2/chef-solo-1/cookbooks/mojolingo-misc/recipes/mrcp_server_config.rb:16:in `from_file'
==> asterisk:
==> asterisk:
==> asterisk:
==> asterisk: service("unimrcp-server") do
==> asterisk:
==> asterisk:   action [:enable, :start]
==> asterisk:
==> asterisk:   supports {:restart=>false, :reload=>false, :status=>false}
==> asterisk:
==> asterisk:   retries 0
==> asterisk:
==> asterisk:   retry_delay 2
==> asterisk:
==> asterisk:   guard_interpreter :default
==> asterisk:
==> asterisk:   service_name "unimrcp-server"
==> asterisk:
==> asterisk:   enabled true
==> asterisk:
==> asterisk:   pattern "unimrcp-server"
==> asterisk:
==> asterisk:   cookbook_name :"mojolingo-misc"
==> asterisk:
==> asterisk:   recipe_name "mrcp_server_config"
==> asterisk:
==> asterisk: end
==> asterisk:
==> asterisk:
==> asterisk:
==> asterisk: [2014-10-09T02:47:10+00:00] INFO: Running queued delayed notifications before re-raising exception
==> asterisk: [2014-10-09T02:47:10+00:00] DEBUG: Re-raising exception: Mixlib::ShellOut::ShellCommandFailed - service[unimrcp-server] (mojolingo-misc::mrcp_server_config line 16) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
==> asterisk: ---- Begin output of /etc/init.d/unimrcp-server start ----
==> asterisk: STDOUT: Starting unimrcpserver...
==> asterisk: unimrcpserver is already running.
==> asterisk: STDERR:
==> asterisk: ---- End output of /etc/init.d/unimrcp-server start ----
==> asterisk: Ran /etc/init.d/unimrcp-server start returned 1
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mixlib-shellout-1.6.0/lib/mixlib/shellout.rb:272:in `invalid!'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mixlib-shellout-1.6.0/lib/mixlib/shellout.rb:259:in `error!'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/mixin/shell_out.rb:43:in `shell_out!'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/service/init.rb:54:in `start_service'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/service.rb:90:in `block in action_start'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/mixin/why_run.rb:52:in `call'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/mixin/why_run.rb:52:in `add_action'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider.rb:156:in `converge_by'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/service.rb:89:in `action_start'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider.rb:121:in `run_action'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource.rb:648:in `run_action'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/runner.rb:49:in `run_action'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/runner.rb:81:in `block (2 levels) in converge'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/runner.rb:81:in `each'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/runner.rb:81:in `block in converge'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection.rb:98:in `block in execute_each_resource'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection.rb:96:in `execute_each_resource'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/runner.rb:80:in `converge'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:345:in `converge'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:431:in `do_run'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:213:in `block in run'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:207:in `fork'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:207:in `run'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application.rb:236:in `run_chef_client'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/solo.rb:226:in `block in run_application'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/solo.rb:218:in `loop'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/solo.rb:218:in `run_application'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application.rb:55:in `run'
==> asterisk:   /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/bin/chef-solo:25:in `<top (required)>'
==> asterisk:   /usr/bin/chef-solo:23:in `load'
==> asterisk:   /usr/bin/chef-solo:23:in `<main>'
==> asterisk: [2014-10-09T02:47:10+00:00] ERROR: Running exception handlers
==> asterisk: [2014-10-09T02:47:10+00:00] ERROR: Exception handlers complete
==> asterisk: [2014-10-09T02:47:10+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> asterisk: [2014-10-09T02:47:10+00:00] DEBUG: Mixlib::ShellOut::ShellCommandFailed: service[unimrcp-server] (mojolingo-misc::mrcp_server_config line 16) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
==> asterisk: ---- Begin output of /etc/init.d/unimrcp-server start ----
==> asterisk: STDOUT: Starting unimrcpserver...
==> asterisk: unimrcpserver is already running.
==> asterisk: STDERR:
==> asterisk: ---- End output of /etc/init.d/unimrcp-server start ----
==> asterisk: Ran /etc/init.d/unimrcp-server start returned 1
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mixlib-shellout-1.6.0/lib/mixlib/shellout.rb:272:in `invalid!'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mixlib-shellout-1.6.0/lib/mixlib/shellout.rb:259:in `error!'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/mixin/shell_out.rb:43:in `shell_out!'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/service/init.rb:54:in `start_service'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/service.rb:90:in `block in action_start'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/mixin/why_run.rb:52:in `call'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/mixin/why_run.rb:52:in `add_action'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider.rb:156:in `converge_by'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/service.rb:89:in `action_start'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider.rb:121:in `run_action'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource.rb:648:in `run_action'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/runner.rb:49:in `run_action'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/runner.rb:81:in `block (2 levels) in converge'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/runner.rb:81:in `each'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/runner.rb:81:in `block in converge'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection.rb:98:in `block in execute_each_resource'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/resource_collection.rb:96:in `execute_each_resource'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/runner.rb:80:in `converge'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:345:in `converge'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:431:in `do_run'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:213:in `block in run'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:207:in `fork'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:207:in `run'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application.rb:236:in `run_chef_client'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/solo.rb:226:in `block in run_application'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/solo.rb:218:in `loop'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/solo.rb:218:in `run_application'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application.rb:55:in `run'
==> asterisk: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/bin/chef-solo:25:in `<top (required)>'
==> asterisk: /usr/bin/chef-solo:23:in `load'
==> asterisk: /usr/bin/chef-solo:23:in `<main>'
==> asterisk: [2014-10-09T02:47:10+00:00] ERROR: service[unimrcp-server] (mojolingo-misc::mrcp_server_config line 16) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
==> asterisk: ---- Begin output of /etc/init.d/unimrcp-server start ----
==> asterisk: STDOUT: Starting unimrcpserver...
==> asterisk: unimrcpserver is already running.
==> asterisk: STDERR:
==> asterisk: ---- End output of /etc/init.d/unimrcp-server start ----
==> asterisk: Ran /etc/init.d/unimrcp-server start returned 1
==> asterisk: [2014-10-09T02:47:10+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant