The update_db.py script is failing with the following traceback:
Traceback (most recent call last):
File "bin/update_db", line 41, in <module>
oopstools.scripts.update_db.main()
File "/srv/lp-oops.canonical.com/cgi-bin/lpoops/src/oopstools/scripts/update_db.py", line 16, in main
for oops in oops_store.find_oopses(start_date):
File "/srv/lp-oops.canonical.com/cgi-bin/lpoops/src/oopstools/oops/dboopsloader.py", line 113, in find_oopses
oops = self._load_oops(datedir, filename)
File "/srv/lp-oops.canonical.com/cgi-bin/lpoops/src/oopstools/oops/dboopsloader.py", line 128, in _load_oops
os.path.join(datedir, filename))
File "/srv/lp-oops.canonical.com/cgi-bin/lpoops/src/oopstools/oops/models.py", line 515, in from_pathname
data, reqvars, statements, traceback = _parse_msg(msg)
File "/srv/lp-oops.canonical.com/cgi-bin/lpoops/src/oopstools/oops/models.py", line 412, in _parse_msg
exception_type, msg.getheader('exception-value'), prefix)
File "/srv/lp-oops.canonical.com/cgi-bin/lpoops/src/oopstools/oops/models.py", line 362, in _normalize_exception_value
evalue = replace_variables(evalue)
File "/srv/lp-oops.canonical.com/cgi-bin/lpoops/src/oopstools/oops/helpers.py", line 87, in replace_variables
s = re.sub(r"'(?:\\\\|\\[^\\]|[^'])*'", '$STRING', s)
File "/usr/lib/python2.6/re.py", line 151, in sub
return _compile(pattern, 0).sub(repl, string, count)
MemoryError
This is caused by an 196M OOPS report which contains a huge SQL statement.
The update_db.py script is failing with the following traceback:
Traceback (most recent call last): scripts. update_ db.main( ) oops.canonical. com/cgi- bin/lpoops/ src/oopstools/ scripts/ update_ db.py", line 16, in main find_oopses( start_date) : oops.canonical. com/cgi- bin/lpoops/ src/oopstools/ oops/dboopsload er.py", line 113, in find_oopses oops(datedir, filename) oops.canonical. com/cgi- bin/lpoops/ src/oopstools/ oops/dboopsload er.py", line 128, in _load_oops join(datedir, filename)) oops.canonical. com/cgi- bin/lpoops/ src/oopstools/ oops/models. py", line 515, in from_pathname oops.canonical. com/cgi- bin/lpoops/ src/oopstools/ oops/models. py", line 412, in _parse_msg 'exception- value') , prefix) oops.canonical. com/cgi- bin/lpoops/ src/oopstools/ oops/models. py", line 362, in _normalize_ exception_ value variables( evalue) oops.canonical. com/cgi- bin/lpoops/ src/oopstools/ oops/helpers. py", line 87, in replace_variables r"'(?:\ \\\|\\[ ^\\]|[^ '])*'", '$STRING', s) python2. 6/re.py" , line 151, in sub
File "bin/update_db", line 41, in <module>
oopstools.
File "/srv/lp-
for oops in oops_store.
File "/srv/lp-
oops = self._load_
File "/srv/lp-
os.path.
File "/srv/lp-
data, reqvars, statements, traceback = _parse_msg(msg)
File "/srv/lp-
exception_type, msg.getheader(
File "/srv/lp-
evalue = replace_
File "/srv/lp-
s = re.sub(
File "/usr/lib/
return _compile(pattern, 0).sub(repl, string, count)
MemoryError
This is caused by an 196M OOPS report which contains a huge SQL statement.