Reputation: 320
**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**
Upvotes: 0
Views: 1228
Reputation: 840
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
.
Upvotes: 1