Bug 41983 - "Software error" message instead of search results
Summary: "Software error" message instead of search results
Status: RESOLVED FIXED
Alias: None
Product: freedesktop.org
Classification: Unclassified
Component: Bugzilla (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: fd.o Admin Massive
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-18 21:50 UTC by Rainer Bielefeld Retired
Modified: 2019-02-16 16:31 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Bookmarks for a test (12.30 KB, text/html)
2011-10-18 21:50 UTC, Rainer Bielefeld Retired
Details

Description Rainer Bielefeld Retired 2011-10-18 21:50:10 UTC
Created attachment 52509 [details]
Bookmarks for a test

When I try to open several prepared search pages simultaneously in my "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110928 Firefox/7.0.1 SeaMonkey/2.4.1" I frequently get an error Message (see end of the report) instead of the search result for some of the pages.

Steps to reproduce:
1. Created a bookmark entry for several Browser Tabs from attached 
   "Bookmarksextract.html"
2. open group of Tabs for all listed pages together ("Open all in Tabs") so
   that several Browser Tabs open for all search results
   Expected: all search result listings available
   Actual: some Tabs only contain a Software Error message as below

I see the same problem opening several Reports simultaneously. I have been using these queries for months, the problem came up after upgrade to Bugzilla 4.

When I refresh/update the Tab the search result will appear.

Software error:
DBD::Pg::db do failed: ERROR: could not serialize access due to concurrent update [for Statement "DELETE FROM profile_search WHERE id = ?"] at Bugzilla/Search/Bugzilla::Search::Recent::create('Bugzilla::Search::Recent', 'HASH(0x3b14070)') called at Bugzilla/Search/Recent.pm line 75
Bugzilla::Search::Recent::create_placeholder('Bugzilla::Search::Recent') called at Bugzilla/CGI.pm line 450
Bugzilla::CGI::redirect_search_url('Bugzilla::CGI=HASH(0x38df080)') called at /srv/bugs.freedesktop.org/www/buglist.cgi line 84
Comment 1 Rainer Bielefeld Retired 2011-10-22 23:36:59 UTC
This problem remains after fix for "Bug 42096 - Error message submitting LibreOffice bug report or adding comment" (not unexpectedly)
Comment 2 Rainer Bielefeld Retired 2012-01-02 22:51:56 UTC
It's annoying
Comment 3 Rainer Bielefeld Retired 2012-01-05 07:48:56 UTC
Most horrible Time is from 06:00 ... 09:00 UTC
Comment 4 Rainer Bielefeld Retired 2012-01-12 22:24:32 UTC
It seems we have had some progress with "Bug 44441 - Gateway Time-out", but situations with this problem is worse than ever.
Comment 5 Tollef Fog Heen 2012-03-18 13:08:50 UTC
Has this improved recently?  I've moved annarchy into a VM with some more resources, but am still looking at moving the backend to a faster machine and possibly also moving the bugzilla frontend to its own VM.
Comment 6 Rainer Bielefeld Retired 2012-03-18 14:21:12 UTC
I did a quick test and still see many messages like 

Software error:
DBD::Pg::db do failed: ERROR:  could not serialize access due to concurrent update [for Statement "DELETE FROM profile_search WHERE id = ?"] at Bugzilla/Search/Recent.pm line 67
	Bugzilla::Search::Recent::create('Bugzilla::Search::Recent', 'HASH(0x2df8fa8)') called at Bugzilla/Search/Recent.pm line 75
	Bugzilla::Search::Recent::create_placeholder('Bugzilla::Search::Recent') called at Bugzilla/CGI.pm line 450
	Bugzilla::CGI::redirect_search_url('Bugzilla::CGI=HASH(0x2a3a178)') called at /srv/bugs.freedesktop.org/www/buglist.cg

Tis one for
<https://bugs.freedesktop.org/buglist.cgi?chfieldto=Now&query_format=advanced&chfieldfrom=2012-02-29&list_id=48483&product=LibreOffice>

This generally happens when I start several queries the same time, when I start a single query I only seldom see such a problem.

Did you work on the machines today? For several hours I had no access.
Comment 7 Rainer Bielefeld Retired 2012-03-26 21:13:45 UTC
Might be account / login related. I tried 3 times without being logged in and opened all queries simultaneously, no problem at all.

Tried 3 times with a test account, always 11 query failed.

Tried 3 times with my account, always most queries failed.
Comment 8 Rainer Bielefeld Retired 2012-03-28 21:24:46 UTC
100% reproducible: logged in I get the error message, doing the queries simultaneously without being logged in works fine.
Comment 9 Tollef Fog Heen 2012-04-15 12:45:58 UTC
Ok, I think I know what the problem here is.

Your bookmark includes 12 searches, while bugzilla by default only caches 10 of the latest searches, and it then runs into transaction semantics in postgres.

I've bumped the max number to 20 now, can you see if you can still reproduce the problem?
Comment 10 Frédéric Buclin 2012-04-23 16:53:21 UTC
When you are logged out, Bugzilla doesn't store your last X queries, which is why it doesn't fail in this case. I will check if I can reproduce upstream with PostgreSQL.
Comment 11 Rainer Bielefeld Retired 2012-04-23 21:47:30 UTC
Hi, for a test today did simultanously 11 queries what are in a bookmark group of my seamonkey:
 1 .<https://bugs.freedesktop.org/buglist.cgi?query_format=specific&order=relevance%20desc&bug_status=__open__&product=LibreOffice&list_id=29718> failed 
 2 .<https://bugs.freedesktop.org/buglist.cgi?type1-0-0=notsubstring&type0-1-0=nowordssubstr&field0-1-0=commenter&field0-0-0=commenter&emailtype1=exact&query_based_on=LibO_Unconfirmed_4&emailassigned_to1=1&query_format=advanced&value0-2-0=jeffdchang%40gmail.com%20%20yfjiang%40novell.com&value0-1-0=andre.schnabel%40gmx.net%20drew%40baseanswers.com%20%20%20maand%40gmx.de%20%20wope%40gmx.com%20%20baur.steven%40googlemail.com%20%20dmx404%40gmail.com&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=NEEDINFO&value1-0-0=CONFIRMED&field0-2-0=commenter&email1=libreoffice-bugs%40lists.freedesktop.org&type0-0-0=nowordssubstr&value0-0-0=LibreOffice%40bielefeldundbuss.de%20%20%20detective.conan.1412%40gmail.com%20%20iamtester8%40gmail.com%20jbf.faure%40orange.fr%20%20jr%40natural-computing.de%20%20fyvaao%40ya.ru%20%20vitriol_vitriol%40katamail.com%20%20gerard.fargeot%40orange.fr%20%20bugs%40eikota.de&type0-2-0=nowordssubstr&field1-0-0=status_whiteboard&product=LibreOffice&known_name=LibO_Unconfirmed_4&list_id=68312> failed
 3 .<https://bugs.freedesktop.org/buglist.cgi?query_format=advanced&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&product=LibreOffice&list_id=29707> failed
 4 .<https://bugs.freedesktop.org/buglist.cgi?chfieldto=-1d&query_format=advanced&chfieldfrom=-2d&product=LibreOffice&list_id=68305> successful
 5 .<https://issues.apache.org/ooo/buglist.cgi?chfieldto=-1d;query_format=advanced;chfieldfrom=-2d;list_id=10019> successful
 6 .<https://bugs.freedesktop.org/buglist.cgi?chfieldto=Now&query_format=advanced&chfieldfrom=2012-02-29&list_id=48483&product=LibreOffice> failed
 7 .<https://issues.apache.org/ooo/buglist.cgi?chfieldto=Now;query_format=advanced;chfieldfrom=2012-02-29;list_id=7369> successful
 8 .<https://bugs.freedesktop.org/buglist.cgi?chfieldto=Now&chfield=resolution&query_format=advanced&chfieldfrom=2012-03-01&chfieldvalue=FIXED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&product=LibreOffice&list_id=68308> successful
 9 .<https://bugs.freedesktop.org/buglist.cgi?keywords=regression&keywords_type=allwords&field0-0-0=version&type0-0-1=casesubstring&field0-0-1=version&query_format=advanced&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=NEEDINFO&bug_status=PLEASETEST&value0-0-1=3.5&type0-0-0=anywordssubstr&value0-0-0=daily%20master&product=LibreOffice&list_id=68309> successful
10 .<https://bugs.freedesktop.org/buglist.cgi?chfieldto=2011-10-30&chfield=[Bug%20creation]&emailassigned_to1=1&query_format=advanced&chfieldfrom=2010-09-01&field0-0-0=commenter&bug_status=NEW&email1=libreoffice-bugs%40lists.freedesktop.org&type0-0-0=anywordssubstr&value0-0-0=LibreOffice%40bielefeldundbuss.de%2C%20detective.conan.1412%40gmail.com%2C%20iamtester8%40gmail.com%2C%20jbf.faure%40orange.fr%2C%20jr%40natural-computing.de%2C%20%20fyvaao%40ya.ru%2C%20vitriol_vitriol%40katamail.com%2C%20gerard.fargeot%40orange.fr%2C%20bugs%40eikota.de%2C%20andre.schnabel%40gmx.net%2C%20drew%40baseanswers.com%2C%20maand%40gmx.de%2C%20wope%40gmx.com%2C%20baur.steven%40googlemail.com%2C%20%20dmx404%40gmail.com%2C%20jeffdchang%40gmail.com%2C%20yfjiang%40novell.com%20&product=LibreOffice&emailtype1=exact&list_id=68310> successful
11 .<https://bugs.freedesktop.org/buglist.cgi?chfieldto=2011-10-31&chfield=[Bug%20creation]&emailassigned_to1=1&query_format=advanced&chfieldfrom=2010-09-01&field0-0-0=commenter&bug_status=NEW&email1=libreoffice-bugs%40lists.freedesktop.org&type0-0-0=anywordssubstr&value0-0-0=LibreOffice%40bielefeldundbuss.de%2C%20detective.conan.1412%40gmail.com%2C%20iamtester8%40gmail.com%2C%20jbf.faure%40orange.fr%2C%20jr%40natural-computing.de%2C%20%20fyvaao%40ya.ru%2C%20vitriol_vitriol%40katamail.com%2C%20gerard.fargeot%40orange.fr%2C%20bugs%40eikota.de%2C%20andre.schnabel%40gmx.net%2C%20drew%40baseanswers.com%2C%20maand%40gmx.de%2C%20wope%40gmx.com%2C%20baur.steven%40googlemail.com%2C%20%20dmx404%40gmail.com%2C%20jeffdchang%40gmail.com%2C%20yfjiang%40novell.com%20&product=LibreOffice&emailtype1=exact&list_id=68311> successful

After that I deleeted some searches I do not use any longer:
x)  <https://bugs.freedesktop.org/buglist.cgi?cmdtype=dorem&remaction=run&namedcmd=x>
LibO_Unconfirmed_5a) 
LibO_Unconfirmed_2) <https://bugs.freedesktop.org/buglist.cgi?cmdtype=dorem&remaction=run&namedcmd=LibO_Unconfirmed_2>
LibO_Unconfirmed_3) <https://bugs.freedesktop.org/buglist.cgi?cmdtype=dorem&remaction=run&namedcmd=LibO_Unconfirmed_3>

After that I did the queries again (from my bookmark group)
again queries failed:
69323: 2 attempts with browser's update button failed
69326: 2 attempts with browser's update button failed
48483: 2 attempts with browser's update button failed

I wojnder why I do not see those query IDs  in the list 1. ... 11.
Comment 12 Rainer Bielefeld Retired 2012-04-25 00:58:55 UTC
Results of comment 11 might partly have been caused by an other different issue, see "Bug 49133 - Valid query without result, only blank page shown".

I will do some further research, soon.
Comment 13 Daniel Stone 2019-02-16 16:31:09 UTC
Hopefully we've now solved this by just deprecating Bugzilla.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.