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

Adhearsion fails to shutdown when using standalone XMPP connection #11

Open
bklang opened this issue Jun 20, 2015 · 0 comments
Open

Adhearsion fails to shutdown when using standalone XMPP connection #11

bklang opened this issue Jun 20, 2015 · 0 comments

Comments

@bklang
Copy link
Member

bklang commented Jun 20, 2015

This is an Adhearsion-on-Asterisk application that is using XMPP for messaging. Because it's not Rayo, there is no Punchblock XMPP connection, so this is using the Adhearsion-XMPP connection separately.

Here is the log from stopping Adhearsion with a single CTRL+C

[2015-06-20 14:59:17.576] INFO  Adhearsion::Initializer: Received SIGINT. Shutting down.
[2015-06-20 14:59:17.576] INFO  Adhearsion::Process: Transitioning from running to stopping with 0 active calls due to shutdown event.
[2015-06-20 14:59:17.577] DEBUG Punchblock::Connection::Asterisk: Finalizing stream
[2015-06-20 14:59:17.578] WARN  Celluloid: Terminating task: type=:call, meta={:method_name=>:run}, status=:iowait
[2015-06-20 14:59:17.580] WARN  Celluloid: Terminating task: type=:call, meta={:method_name=>:run}, status=:iowait
[2015-06-20 14:59:17.580] INFO  Adhearsion::PunchblockPlugin::Initializer: Shutting down while connecting. Breaking the connection block.
[2015-06-20 14:59:17.581] INFO  Adhearsion::Console: Adhearsion Console shutting down
[2015-06-20 14:59:17.581] INFO  Adhearsion::Process: Adhearsion shut down

Then 1 minute of time passes by with no additional log messages, until this:

[2015-06-20 15:00:20.588] FATAL Adhearsion::XMPP::Connection: <RuntimeError> Stream not ready!
    /var/lib/gems/2.1.0/gems/blather-1.0.0/lib/blather/client/client.rb:218:in `stream'
    /var/lib/gems/2.1.0/gems/blather-1.0.0/lib/blather/client/client.rb:171:in `block in close'
    /var/lib/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:968:in `call'
    /var/lib/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:968:in `block in run_deferred_callbacks'
    /var/lib/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:965:in `times'
    /var/lib/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:965:in `run_deferred_callbacks'
    /var/lib/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
    /var/lib/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
    /data/apps/talkbox/current/adhearsion-xmpp/lib/adhearsion/xmpp/connection.rb:30:in `block in connect'
    /var/lib/gems/2.1.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
    /var/lib/gems/2.1.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
[2015-06-20 15:00:20.589] ERROR Adhearsion::Initializer: Error after joining Thread Thread. Stream not ready!
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