Reputation: 726
While taking backup from odoo11, gives error. How to solve this?
Database backup error: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmpa36uaqdp/dump.sql', 'simple_25_10_19') error 1
Upvotes: 0
Views: 3547
Reputation: 11
I had Odoo 12CE on Amazon AWS. The problem is the HDD was full.
[
Enjoy!!
2020-05-24 14:21:44,230 1280 INFO xxxxx.mx odoo.service.db: DUMP DB: xxxx.mx format zip
2020-05-24 14:23:22,250 1280 ERROR xxxx.mx odoo.addons.web.controllers.main:Database.backup
Traceback (most recent call last):
File "/opt/odoosrc/12.0/odoo/addons/web/controllers/main.py", line 758, in backup
dump_stream = odoo.service.db.dump_db(name, None, backup_format)
File "<decorator-gen-9>", line 2, in dump_db
File "/opt/odoosrc/12.0/odoo/odoo/service/db.py", line 40, in if_db_mgt_enabled
return method(self, *args, **kwargs)
File "/opt/odoosrc/12.0/odoo/odoo/service/db.py", line 225, in dump_db
odoo.tools.exec_pg_command(*cmd)
File "/opt/odoosrc/12.0/odoo/odoo/tools/misc.py", line 129, in exec_pg_command
raise Exception('Postgres subprocess %s error %s' % (args2, rc))
Exception: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmppiurb5iy/dump.sql', 'solidaridad.dri.com.mx') error 1
Upvotes: -1
Reputation: 3620
This error occurs when your PostgreSQL client and server versions do not match. Check your versions.
More info for Postgres versions in the docker setup can be found here odoo12 database backup no owner?.
Upvotes: 2