Skip to content

Instantly share code, notes, and snippets.

@libryder
Created January 31, 2012 00:53
Show Gist options
  • Save libryder/165a869be07c65d07d13 to your computer and use it in GitHub Desktop.
Save libryder/165a869be07c65d07d13 to your computer and use it in GitHub Desktop.
config/adhearsion.rb
-- [line 32] config.punchblock.platform = :asterisk # Your AMI username | typo
----------------------------------------
Stopping adhearsion (Ctrl+C) while it is idle threw the following:
[2012-01-31 00:48:24] INFO Adhearsion::Initializer: Received INT signal. Shutting down.
[2012-01-31 00:48:24] INFO Adhearsion::Process: Transitioning from booting to force_stop with 0 active calls due to shutdown event.
[2012-01-31 00:48:24] INFO Adhearsion::PunchblockPlugin::Initializer: Shutting down while connecting. Breaking the connection block.
[2012-01-31 00:48:24] DEBUG Punchblock::Translator::Asterisk: Shutting down
[2012-01-31 00:48:24] INFO Adhearsion::Initializer: Adhearsion v2.0.0.alpha2 initialized!
Punchblock::Translator::Asterisk crashed!
ThreadError: Attempt to unlock a mutex which is not locked
/usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/gems/celluloid-0.8.0/lib/celluloid/mailbox.rb:101:in `unlock'
/usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/gems/celluloid-0.8.0/lib/celluloid/mailbox.rb:101:in `ensure in shutdown'
/usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/gems/celluloid-0.8.0/lib/celluloid/mailbox.rb:101:in `shutdown'
/usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/gems/celluloid-0.8.0/lib/celluloid/actor.rb:212:in `cleanup'
/usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/gems/celluloid-0.8.0/lib/celluloid/actor.rb:138:in `run'
/usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/gems/celluloid-0.8.0/lib/celluloid/actor.rb:89:in `block in initialize'
/usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/gems/celluloid-0.8.0/lib/celluloid/thread_pool.rb:46:in `call'
/usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/gems/celluloid-0.8.0/lib/celluloid/thread_pool.rb:46:in `block in create'
I had to kill -9 to kill the adhearsion process at this point.
------------------------------------------
Stopping adhearsion (Ctrl+C) before it is initialized throws the following:
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': Interrupt
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:7:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/ext/ext_conf_builder.rb:8:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/ext.rb:16:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:9:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/source.rb:3:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/dsl.rb:14:in `initialize'
from /usr/local/rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/dsl.rb:6:in `new'
from /usr/local/rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/dsl.rb:6:in `evaluate'
from /usr/local/rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/definition.rb:17:in `build'
from /usr/local/rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler.rb:138:in `definition'
from /usr/local/rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler.rb:126:in `load'
from /usr/local/rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler.rb:110:in `setup'
from /usr/local/rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/setup.rb:7:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
-------------------------------------------------
Got the following exception while trying to duplicate the bug that locked adhearsion up:
[2012-01-31 00:52:06] INFO Adhearsion::Initializer: Received INT signal. Shutting down.
[2012-01-31 00:52:06] INFO Adhearsion::Process: Transitioning from booting to force_stop with 0 active calls due to shutdown event.
[2012-01-31 00:52:06] DEBUG Punchblock::Translator::Asterisk: Shutting down
[2012-01-31 00:52:06] INFO Adhearsion::PunchblockPlugin::Initializer: Shutting down while connecting. Breaking the connection block.
[2012-01-31 00:52:06] INFO Adhearsion::Initializer: Adhearsion v2.0.0.alpha2 initialized!
/usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/gems/pry-0.9.8.1/lib/pry.rb:163:in `require': no such file to load -- readline (LoadError)
from /usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/gems/pry-0.9.8.1/lib/pry.rb:163:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/bundler/gems/adhearsion-26e3897a4f2e/lib/adhearsion/console.rb:1:in `require'
from /usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/bundler/gems/adhearsion-26e3897a4f2e/lib/adhearsion/console.rb:1:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/bundler/gems/adhearsion-26e3897a4f2e/lib/adhearsion/initializer.rb:214:in `block (2 levels) in launch_console'
from /usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/bundler/gems/adhearsion-26e3897a4f2e/lib/adhearsion/foundation/exception_handler.rb:4:in `catching_standard_errors'
from /usr/local/rvm/gems/ruby-1.9.2-p290@ahn2alpha/bundler/gems/adhearsion-26e3897a4f2e/lib/adhearsion/initializer.rb:213:in `block in launch_console'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment