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]
Can any one give solution to me?
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 !!
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/14/15, 7:23 AM|
|Seen: 2199 times|
|Last updated: 10/1/15, 6:52 AM|