Dump and Zip file can not resore odoo 8, how to solve it?

**File "/odoo/odoo-server/addons/web/controllers/main.py", line 757, in restore

data = base64.b64encode(db_file.read())

File "/usr/lib/python2.7/base64.py", line 54, in b64encode

# Strip off the trailing newline MemoryErrorline MemoryError**

enter image description here

1 answer

  • answered 2018-11-08 07:17 Omi Harjani

    This error occurs since the size of the database backup is larger than Odoo worker's current memory limit. Increase limit_memory_soft and limit_memory_hard values in the configuration, or restore the file directly in PostgreSQL by typing createdb dbname followed by psql dbname < DBDump.