Skip to Content
Menu
This question has been flagged
9 Replies
16028 Views

I am trying to restore my live database in to my local, Code is same and postgres version is same in my local and my live. It is giving the below error

2015-07-14 11:15:40,501 9282 ERROR ? openerp.addons.web.http.HttpRequest.dispatch: An error occurred while handling a json request

Traceback (most recent call last):

File "/home/samba/openerp7-pinatas/addons/web/http.py", line 285, in dispatch

r = method(self, **self.params)

File "/home/samba/openerp7-pinatas/addons/web/controllers/main.py", line 822, in restore

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

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

encoded = binascii.b2a_base64(s)[:-1]

MemoryError

2015-07-14

Can any one give solution to me?

Avatar
Discard

Are you sure you have memory in your pc??

Try to redownload your addons if its not Ok with you Here is the link: https://www.odoo.com/fr_FR/page/download

Author

Yes i have, 30.7 GB free in my home directory

If you have any custom module in live server ..copy that custom module and paste into your local addons..Try may help this

Author

I have same repository in local and live servers

Does anyone has a solution for this issue ?

Best Answer

Memory error tipically are raised in Odoo when workers are configured to run Odoo with multiprocessing. This config option limits the memory to avoid system resource starving. You could increase it with limit_memory_soft and limit_memory_hard options

Avatar
Discard
Best Answer

Hello,
this error occured due to size of database . refer this link http://www.postgresql.org/docs/current/static/backup-dump.html#BACKUP-DUMP-RESTORE and take backup in terminal like this : pg_dump dbname > outfile.sql  
and restore sql like this : psql dbname  <  infile.sql

Hope this will help you !!

Avatar
Discard
Best Answer

Error while performing a restore DB Size 139 MB

2017-06-23 02:20:05,688 8299 ERROR desa werkzeug: Error on request:

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 180, in run_wsgi

    execute(self.server.app)

  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 168, in execute

    application_iter = app(environ, start_response)

  File "/odoo/odoo-server/openerp/service/server.py", line 295, in app

    return self.app(e, s)

  File "/odoo/odoo-server/openerp/service/wsgi_server.py", line 216, in application

    return application_unproxied(environ, start_response)

  File "/odoo/odoo-server/openerp/service/wsgi_server.py", line 202, in application_unproxied

    result = handler(environ, start_response)

  File "/odoo/odoo-server/openerp/http.py", line 1297, in _call_

    return self.dispatch(environ, start_response)

  File "/odoo/odoo-server/openerp/http.py", line 1271, in _call_

    return self.app(environ, start_wrapped)

  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 591, in _call_

    return self.app(environ, start_response)

  File "/odoo/odoo-server/openerp/http.py", line 1271, in _call_

    return self.app(environ, start_wrapped)

  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 591, in _call_

    return self.app(environ, start_response)

  File "/odoo/odoo-server/openerp/http.py", line 1271, in _call_

    return self.app(environ, start_wrapped)

  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 591, in _call_

    return self.app(environ, start_response)

  File "/odoo/odoo-server/openerp/http.py", line 1271, in _call_

    return self.app(environ, start_wrapped)

  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 591, in _call_

    return self.app(environ, start_response)

  File "/odoo/odoo-server/openerp/http.py", line 1271, in _call_

    return self.app(environ, start_wrapped)

  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 591, in _call_

    return self.app(environ, start_response)

  File "/odoo/odoo-server/openerp/http.py", line 1271, in _call_

    return self.app(environ, start_wrapped)

  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 591, in _call_

    return self.app(environ, start_response)

  File "/odoo/odoo-server/openerp/http.py", line 1449, in dispatch

    result = _dispatch_nodb()

  File "/odoo/odoo-server/openerp/http.py", line 1433, in _dispatch_nodb

    result = request.dispatch()

  File "/odoo/odoo-server/openerp/http.py", line 691, in dispatch

    r = self._call_function(**self.params)

  File "/odoo/odoo-server/openerp/http.py", line 318, in _call_function

    return self.endpoint(*args, **kwargs)

  File "/odoo/odoo-server/openerp/http.py", line 810, in _call_

    return self.method(*args, **kw)

  File "/odoo/odoo-server/openerp/http.py", line 410, in response_wrap

    response = f(*args, **kw)

  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

Avatar
Discard