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

Mojo::RabbitMQ::Client gets destroyed too soon using morbo #24

Open
tarkhil opened this issue Jul 12, 2018 · 1 comment
Open

Mojo::RabbitMQ::Client gets destroyed too soon using morbo #24

tarkhil opened this issue Jul 12, 2018 · 1 comment

Comments

@tarkhil
Copy link

tarkhil commented Jul 12, 2018

Hello

When starting Mojolicious::Lite app with morbo (code from chat.pl) Client object gets destroyed right after start
Starting AMQP
Starting app
-- Emit connect in Mojo::IOLoop::Client (1)
-- Emit connect in Mojo::RabbitMQ::Client (1)
Connect
-> "AMQP\1\1\0\t"
Destroying client at /usr/local/lib/perl5/site_perl/Mojo/RabbitMQ/Client.pm line 605.
Mojo::RabbitMQ::Client::DESTROY(Mojo::RabbitMQ::Client=HASH(0x8080b0378)) called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/Poll.pm line 143
eval {...} called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/Poll.pm line 143
eval {...} called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/Poll.pm line 143
Mojo::Reactor::Poll::_try(Mojo::Reactor::EV=HASH(0x80629e480), "I/O watcher", "*Mojo::IOLoop::Stream::new", 1) called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/EV.pm line 49
Mojo::Reactor::EV::ANON(EV::IO=SCALAR(0x80809a708), 2) called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/EV.pm line 25
eval {...} called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/EV.pm line 25
Mojo::Reactor::EV::start(Mojo::Reactor::EV=HASH(0x80629e480)) called at /usr/local/lib/perl5/site_perl/Mojo/IOLoop.pm line 140
Mojo::IOLoop::start(Mojo::IOLoop=HASH(0x8061f1b70)) called at /usr/local/lib/perl5/site_perl/Mojo/Server/Daemon.pm line 43
Mojo::Server::Daemon::run(Mojo::Server::Daemon=HASH(0x803186258)) called at /usr/local/lib/perl5/site_perl/Mojo/Server/Morbo.pm line 69
Mojo::Server::Morbo::_spawn(Mojo::Server::Morbo=HASH(0x8020e2528)) called at /usr/local/lib/perl5/site_perl/Mojo/Server/Morbo.pm line 54
Mojo::Server::Morbo::_manage(Mojo::Server::Morbo=HASH(0x8020e2528)) called at /usr/local/lib/perl5/site_perl/Mojo/Server/Morbo.pm line 34
Mojo::Server::Morbo::run(Mojo::Server::Morbo=HASH(0x8020e2528), "./BinanceInfo") called at /usr/local/bin/morbo line 19
-- Emit write in Mojo::IOLoop::Stream (0)
-- Emit drain in Mojo::IOLoop::Stream (0)
-- Emit read in Mojo::IOLoop::Stream (1)
-- Emit error in Mojo::Reactor::EV (1)
Mojo::Reactor::EV: I/O watcher failed: Can't call method "_read" on an undefined value at /usr/local/lib/perl5/site_perl/Mojo/RabbitMQ/Client.pm line 386.

@SPodjasek
Copy link
Member

As for now I can only confirm this error when using morbo, prefork seems to be working fine.

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

No branches or pull requests

2 participants