Skip Menu |

This queue is for tickets about the metabase-relayd CPAN distribution.

Report information
The Basics
Id: 63040
Status: open
Priority: 0/
Queue: metabase-relayd

People
Owner: Nobody in particular
Requestors: njh [...] bandsman.co.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.20
Fixed in: (no value)



Subject: Doesn't retry when the network fails
As I understand it, if the network goes down metabase-relayd queues submissions and sends when the system comes back up. In fact what happens is a cryptic message in the log, and nothing gets sent when the network is back. Here is a sample message: Submit 'Xovryjzx3xGL2NB2fPMM+A==' (8.95828819274902s) error: fact submission failed {"error":"submission was not stored: GUID conflicts with an existing object at /home/ubuntu/perl5/lib/perl5/Metabase/Librarian.pm line 52\n\tMetabase::Librarian::store('Metabase::Librarian=HASH(0xc4aacf0)', 'CPAN::Testers::Report=HASH(0xc70fa18)') called at /home/ubuntu/perl5/lib/perl5/Metabase/Gateway.pm line 303\n\tMetabase::Gateway::enqueue('CPAN::Testers::Metabase::AWS=HASH(0xb04c828)', 'CPAN::Testers::Report=HASH(0xc70fa18)') called at /home/ubuntu/perl5/lib/perl5/Metabase/Gateway.pm line 253\n\teval {...} called at /home/ubuntu/perl5/lib/perl5/Metabase/Gateway.pm line 253\n\tMetabase::Gateway::handle_submission('CPAN::Testers::Metabase::AWS=HASH(0xb04c828)', 'HASH(0xc70f588)', '30f4dfbe-2aae-11df-837a-5e0a49663a4f', 'n2GuA9sbkpgLQk5NmdsiyqrkCrA') called at /home/ubuntu/git/metabase-web/script/../lib/Metabase/Web/Controller/Root.pm line 42\n\teval {...} called at /home/ubuntu/git/metabase-web/script/../lib/Metabase/Web/Controller/Root.pm line 41\n\tMetabase::Web::Controller::Root::submit_POST('Metabase::Web::Controller::Root=HASH(0xc024e70)', 'Metabase::Web=HASH(0xc7531b8)', 'CPAN-Testers-Report') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Action.pm line 65\n\tCatalyst::Action::execute('Catalyst::Action::REST=HASH(0xc0cc638)', 'Metabase::Web::Controller::Root=HASH(0xc024e70)', 'Metabase::Web=HASH(0xc7531b8)', 'CPAN-Testers-Report') called at /home/ubuntu/perl5/lib/perl5/Catalyst.pm line 1603\n\teval {...} called at /home/ubuntu/perl5/lib/perl5/Catalyst.pm line 1603\n\tCatalyst::execute('Metabase::Web=HASH(0xc7531b8)', 'Metabase::Web::Controller::Root', 'Catalyst::Action::REST=HASH(0xc0cc638)', 'CPAN-Testers-Report') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Action/REST.pm line 122\n\tCatalyst::Action::REST::dispatch('Catalyst::Action::REST=HASH(0xc0cc638)', 'Metabase::Web=HASH(0xc7531b8)') called at /home/ubuntu/perl5/lib/perl5/Catalyst/ActionChain.pm line 39\n\tCatalyst::ActionChain::dispatch('Catalyst::ActionChain=HASH(0xc74f7a8)', 'Metabase::Web=HASH(0xc7531b8)') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Controller.pm line 110\n\tCatalyst::Controller::_ACTION('Metabase::Web::Controller::Root=HASH(0xc024e70)', 'Metabase::Web=HASH(0xc7531b8)', 'CPAN-Testers-Report') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Action.pm line 65\n\tCatalyst::Action::execute('Catalyst::Action=HASH(0xc0ca990)', 'Metabase::Web::Controller::Root=HASH(0xc024e70)', 'Metabase::Web=HASH(0xc7531b8)', 'CPAN-Testers-Report') called at /home/ubuntu/perl5/lib/perl5/Catalyst.pm line 1603\n\teval {...} called at /home/ubuntu/perl5/lib/perl5/Catalyst.pm line 1603\n\tCatalyst::execute('Metabase::Web=HASH(0xc7531b8)', 'Metabase::Web::Controller::Root', 'Catalyst::Action=HASH(0xc0ca990)') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Action.pm line 60\n\tCatalyst::Action::dispatch('Catalyst::Action=HASH(0xc0ca990)', 'Metabase::Web=HASH(0xc7531b8)') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Dispatcher.pm line 257\n\tCatalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0xa137088)', 'forward', 'Metabase::Web=HASH(0xc7531b8)', '_ACTION') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Dispatcher.pm line 237\n\tCatalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0xa137088)', 'Metabase::Web=HASH(0xc7531b8)', '_ACTION') called at /home/ubuntu/perl5/lib/perl5/Catalyst.pm line 369\n\tCatalyst::forward('Metabase::Web=HASH(0xc7531b8)', '_ACTION') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Controller.pm line 84\n\tCatalyst::Controller::_DISPATCH('Metabase::Web::Controller::Root=HASH(0xc024e70)', 'Metabase::Web=HASH(0xc7531b8)', 'CPAN-Testers-Report') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Action.pm line 65\n\tCatalyst::Action::execute('Catalyst::Action=HASH(0xc0caed0)', 'Metabase::Web::Controller::Root=HASH(0xc024e70)', 'Metabase::Web=HASH(0xc7531b8)', 'CPAN-Testers-Report') called at /home/ubuntu/perl5/lib/perl5/Catalyst.pm line 1603\n\teval {...} called at /home/ubuntu/perl5/lib/perl5/Catalyst.pm line 1603\n\tCatalyst::execute('Metabase::Web=HASH(0xc7531b8)', 'Metabase::Web::Controller::Root', 'Catalyst::Action=HASH(0xc0caed0)') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Action.pm line 60\n\tCatalyst::Action::dispatch('Catalyst::Action=HASH(0xc0caed0)', 'Metabase::Web=HASH(0xc7531b8)') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Dispatcher.pm line 257\n\tCatalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0xa137088)', 'forward', 'Metabase::Web=HASH(0xc7531b8)', '//_DISPATCH') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Dispatcher.pm line 237\n\tCatalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0xa137088)', 'Metabase::Web=HASH(0xc7531b8)', '//_DISPATCH') called at /home/ubuntu/perl5/lib/perl5/Catalyst.pm line 369\n\tCatalyst::forward('Metabase::Web=HASH(0xc7531b8)', '//_DISPATCH') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Dispatcher.pm line 105\n\tCatalyst::Dispatcher::dispatch('Catalyst::Dispatcher=HASH(0xa137088)', 'Metabase::Web=HASH(0xc7531b8)') called at /home/ubuntu/perl5/lib/perl5/Catalyst.pm line 1551\n\tCatalyst::dispatch('Metabase::Web=HASH(0xc7531b8)') called at /home/ubuntu/perl5/lib/perl5/Catalyst.pm line 1888\n\teval {...} called at /home/ubuntu/perl5/lib/perl5/Catalyst.pm line 1879\n\tCatalyst::handle_request('Metabase::Web', 'env', 'HASH(0xaaa39f8)') called at /home/ubuntu/perl5/lib/perl5/Catalyst/Engine/FastCGI.pm line 147\n\tCatalyst::Engine::FastCGI::run('Catalyst::Engine::FastCGI=HASH(0xaa86af8)', 'Metabase::Web', '127.0.0.1:5000', 'HASH(0xa0f1c08)') called at /home/ubuntu/perl5/lib/perl5/Catalyst.pm line 2181\n\tCatalyst::run('Metabase::Web', '127.0.0.1:5000', 'HASH(0xa0f1c08)') called at /home/ubuntu/perl5/lib/perl5/Catalyst/ScriptRole.pm line 62\n\tCatalyst::ScriptRole::_run_application('Catalyst::Script::FastCGI=HASH(0xa372210)') called at /home/ubuntu/perl5/lib/perl5/Catalyst/ScriptRole.pm line 51\n\tCatalyst::ScriptRole::run('Catalyst::Script::FastCGI=HASH(0xa372210)') called at /home/ubuntu/perl5/lib/perl5/i486-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 48\n\tClass::MOP::Method::Wrapped::__ANON__('Catalyst::Script::FastCGI=HASH(0xa372210)') called at /home/ubuntu/perl5/lib/perl5/i486-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 89\n\tCatalyst::Script::FastCGI::run('Catalyst::Script::FastCGI=HASH(0xa372210)') called at /home/ubuntu/perl5/lib/perl5/Catalyst/ScriptRunner.pm line 20\n\tCatalyst::ScriptRunner::run('Catalyst::ScriptRunner', 'Metabase::Web', 'FastCGI') called at /home/ubuntu/git/metabase-web/script/metabase_web_fastcgi.pl line 4"}
Subject: Re: [rt.cpan.org #63040] Doesn't retry when the network fails
Date: Tue, 16 Nov 2010 14:11:27 +0000
To: "njh [...] bandsman.co.uk via RT" <bug-metabase-relayd [...] rt.cpan.org>
From: "Chris 'BinGOs' Williams" <chris [...] bingosnet.co.uk>
On Tue, Nov 16, 2010 at 08:58:52AM -0500, njh@bandsman.co.uk via RT wrote: Show quoted text
> Tue Nov 16 08:58:52 2010: Request 63040 was acted upon. > Transaction: Ticket created by njh@bandsman.co.uk > Queue: metabase-relayd > Subject: Doesn't retry when the network fails > Broken in: 0.20 > Severity: Important > Owner: Nobody > Requestors: njh@bandsman.co.uk > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=63040 > > > > As I understand it, if the network goes down metabase-relayd queues > submissions and sends when the system comes back up. > > In fact what happens is a cryptic message in the log, and nothing gets > sent when the network is back. > > Here is a sample message: > > Submit 'Xovryjzx3xGL2NB2fPMM+A==' (8.95828819274902s) error: fact > submission failed > {"error":"submission was not stored: GUID conflicts with an existing > object at /home/ubuntu/perl5/lib/perl5/Metabase/Librarian.pm line > 52\n\tMetabase::Librarian::store('Metabase::Librarian=HASH(0xc4aacf0)', > 'CPAN::Testers::Report=HASH(0xc70fa18)') called at > /home/ubuntu/perl5/lib/perl5/Metabase/Gateway.pm line > 303\n\tMetabase::Gateway::enqueue('CPAN::Testers::Metabase::AWS=HASH(0xb04c828)', > 'CPAN::Testers::Report=HASH(0xc70fa18)') called at > /home/ubuntu/perl5/lib/perl5/Metabase/Gateway.pm line 253\n\teval {...} > called at /home/ubuntu/perl5/lib/perl5/Metabase/Gateway.pm line > 253\n\tMetabase::Gateway::handle_submission('CPAN::Testers::Metabase::AWS=HASH(0xb04c828)', > 'HASH(0xc70f588)', '30f4dfbe-2aae-11df-837a-5e0a49663a4f', > 'n2GuA9sbkpgLQk5NmdsiyqrkCrA') called at > /home/ubuntu/git/metabase-web/script/../lib/Metabase/Web/Controller/Root.pm > line 42\n\teval {...} called at
The cryptic message is what was reported back from trying to submit. This looks to me like the retry attempt of a submission that previously failed for some reason (network timeout or some such) resulting in it being requeued. On retry the metabase is rejecting the submission because a report with the same GUID exists already (ie. the cryptic message). The relayd tosses the report at this point, because it has been submitted already. -- Chris Williams aka BinGOs PGP ID 0x4658671F http://www.gumbynet.org.uk ==========================
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.