Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
14579 Widoki

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.



Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lip 24
5248
1
maj 21
3279
1
mar 24
5576
3
sie 16
3908
0
mar 16
3773