Skip to content

Commit b6e4373

Browse files
committed
issue2550743 - Reindex with MySQL Server failed. It looks like
indexing large documents may require increasing mysql's max_allowed_packet setting. Documented the issue in doc/mysql.txt.
1 parent e91290a commit b6e4373

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

CHANGES.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ Fixed:
245245
Diagnosis and fix with patch by R David Murray. Support for
246246
restoring retired but active queries, html layout changes and doc
247247
by John Rouillard.
248-
- issue2550785: Using login from search (or logout) fails. when
248+
- issue2550785: Using login from search (or logout) fails. When
249249
logging in from a search page or after a logout it fails with an
250250
error. These failures have been fixed. The fix also keeps the user
251251
on the same page they started from before the login. There are two
@@ -258,6 +258,12 @@ Fixed:
258258
the simple dropdown search item, retired values are now removed from
259259
the expression editor. (We have an open question as to whether this
260260
is desirable.)
261+
- issue2550743 - Reindex with MySQL Server failed. It looks like
262+
indexing large documents may require increasing mysql's
263+
max_allowed_packet setting. Documented the issue in doc/mysql.txt.
264+
Possible solutions include: increasing value of MySQL parameter,
265+
changing the full text search engine to whoosh or xapian. Problem
266+
report by telsch. Analysis/doc by John Rouillard.
261267

262268
2016-01-11: 1.5.1
263269

doc/mysql.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,33 @@ to install:
1818
``roundup/backends/back_mysql.py`` file to enable DBD instead of InnoDB.
1919
2. Python MySQL interface - http://sourceforge.net/projects/mysql-python
2020

21+
22+
Other Configuration
23+
===================
24+
25+
If you are indexing large documents (e.g attached file contents)
26+
using MySQL, you may need to increase the max_allowed_packet size.
27+
If you don't you can see the error::
28+
29+
'MySql Server has gone away (2006)'
30+
31+
To do this edit /etc/my.conf and change::
32+
33+
[mysqld]
34+
max_allowed_packet = 1M
35+
36+
the 'max_allowed_packet' value from '1M' to '64M' or
37+
larger.
38+
39+
Alternatively you can install an alternate indexer (whoosh, xapian
40+
etc.) and force the tracker to use it by setting the ``indexer``
41+
setting in the tracker's ``config.ini``.
42+
43+
This fix was supplied by telsch. See issue
44+
http://issues.roundup-tracker.org/issue2550743 for further info or if
45+
you are interested in developing a patch to roundup to help work
46+
around this issue.
47+
2148
Running the MySQL tests
2249
=======================
2350

0 commit comments

Comments
 (0)