Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
15192 Lượt xem

I am facing this issue for last 3 days. I don't know how to solve this issue. I search and got many answers. No one worked for me.

I know, how to back up the database using the command line. 

Please help me to sort the issue. Both issue in back up and restore. 

Noted: No issue in creating a new database and drop the database. 

No Postgresql client conflict. Port No is the same for Postgresql and odoo.conf file.



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

it's a known issue of version miss-match of postgres and pg_dump.
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


~ % which postgres
/usr/local/bin/postgres
~ % which pg_dump
/usr/local/bin/pg_dump
~ % postgres --version
postgres (PostgreSQL) 11.4
~ % pg_dump --version
pg_dump (PostgreSQL) 11.4

ref: https://github.com/odoo/odoo/issues/31085
https://www.odoo.com/forum/help-1/question/database-backup-error-postgres-subprocess-usr-bin-pg-dump-no-owner-file-tmp-tmpaa0o5q-dump-sql-u-ahlain-db01-error-1-118245

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Remya!  

Yo pude resolverlo, el problema es cuando intentas importar la database seleccionando el objeto "dump.sql" , lo correcto es elejir el objeto .zip que obtienes al Exportar la database, en ese caso me importó con exito y sin errores la informacion completa.

I has been able to solve it , my problem was when i try to import the database clicking "Restore Database" and load the "dump.sql" archive, but the correct way its loading the entire .zip file that export the odoo when you clic in "backup".


i hope it works.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 7 24
6705
1
thg 5 21
3890
1
thg 3 24
6094
3
thg 8 16
4334
0
thg 3 16
4127