Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
14858 Tampilan

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.



Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Jawaban Terbai

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.


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Jul 24
6030
1
Mei 21
3571
1
Mar 24
5810
3
Agu 16
4126
0
Mar 16
3953