Actions
action #121378
openload_templates sometimes fails with "unknown error code", then works after a while
Start date:
2022-12-02
Due date:
% Done:
0%
Estimated time:
Description
On our Fedora deployments, I often notice that a run of load_templates
fails with:
unknown error code - host localhost unreachable? at /usr/share/openqa/script/load_templates line 114.
if I run it again, it'll often fail the same way, but after a few tries, it'll suddenly work fine. There doesn't seem to be any rhyme or reason to when this happens, and I don't see anything in the logs.
If I edit load_templates
to dump the response before dying with that rather unhelpful message, I get this:
do {
my $a = bless({
content => bless({
asset => bless({ auto_upgrade => 1 }, "Mojo::Asset::Memory"),
events => { read => [sub { ... }] },
headers => bless({ headers => {} }, "Mojo::Headers"),
read => 'fix',
}, "Mojo::Content::Single"),
error => { message => "Premature connection close" },
events => {},
finished => 2,
json => undef,
state => "finished",
}, "Mojo::Message::Response");
$a->{content}{read} = $a->{content}{events}{read}[0];
$a;
}
so the error seems to be "Premature connection close".
Actions