تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
14639 أدوات العرض

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.



الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
أفضل إجابة

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.


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
يوليو 24
5459
1
مايو 21
3326
1
مارس 24
5612
3
أغسطس 16
3966
0
مارس 16
3813