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"}