I already raised following parameters in odoo.conf:
limit_memory_hard = 4294967296
limit_memory_soft = 4294967296
limit_time_cpu = 10800
limit_time_real = 10800
still get an error, any clue?
the log is:
File "/opt/odoo/odoo/odoo/sql_db.py", line 225, in execute
res = self._obj.execute(query, params)
psycopg2.OperationalError: out of memory
DETAIL: Failed on request of size 134217728.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/loglevels.py", line 92, in ustr
return text_type(value)
MemoryError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/odoo/http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/opt/odoo/odoo/odoo/http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/odoo/http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo/odoo/http.py", line 941, in __call__
return self.method(*args, **kw)
File "/opt/odoo/odoo/odoo/http.py", line 519, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/odoo/api.py", line 759, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo/odoo/api.py", line 746, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo/custom-addons/irco_pdf_generator/models/download_pdf.py", line 168, in wizard_binary
self.download_pdf_report = encoded
File "/opt/odoo/odoo/odoo/fields.py", line 1048, in __set__
record.write({self.name: write_value})
File "/opt/odoo/odoo/odoo/models.py", line 3327, in write
self._write(store_vals)
File "/opt/odoo/odoo/odoo/models.py", line 3420, in _write
cr.execute(query, params + [sub_ids])
File "/opt/odoo/odoo/odoo/sql_db.py", line 148, in wrapper
return f(self, *args, **kwargs)
File "/opt/odoo/odoo/odoo/sql_db.py", line 228, in execute
_logger.error("bad query: %s\nERROR: %s", ustr(self._obj.query or query), e)
File "/opt/odoo/odoo/odoo/loglevels.py", line 94, in ustr
raise UnicodeError('unable to convert %r' % (value,))
MemoryError