Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2576 Näkymät

When I attempt to backup, I get the following error:

Database backup error: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmp3hiod9bo/dump.sql', 'MBSEPGDB_JAN') error 1

Restore (of a previously backed up database zip file) presents a similar error.
I am using odoo 14 and postgres 14.2.  There have been no known updates to either installations (i.e. upgrade of odoo or postgres) and the last success was in February.
I have tried replacing the pg_wrapper file on my odoo server with a postgres 14 version, but that did not work either.

Avatar
Hylkää

How you are doing backup? From odoo interface or PSQL query? If its from interface then check odoo conf file and update db_user and db_password param

Tekijä

It is from the interface. db_user is not "odoo". It also has the roles "Create Role" and "Create DB", are those the correct roles for the user? Does the user/role name HAVE to be "odoo"?

Paras vastaus

Hi

The version mismatch between Postgres and pg_dump is a known issue. locate postgres using which command and change correct path of pg_dump using

ln -s /usr/postgres-version/bin/pg_dump /usr/bin/pg_dump --force
ref: 
https://www.odoo.com/forum/help-1/database-backup-error-postgres-subprocess-usr-bin-pg-dump-no-owner-file-tmp-tmpaa0o5q-dump-sql-u-ahlain-db01-error-1-118245?forum=forum.forum%281%2C%29&question=forum.post%28118245%2C%29

Hope it helps

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
heinäk. 24
7076
1
toukok. 21
4046
1
maalisk. 24
6261
3
elok. 16
4483
0
maalisk. 16
4251