콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
7500 화면

I try to figure out how to restore a database from a local installation to a newly configured openerp on another local server.

The origin db is a server on my laptop and the destination is a server on a Raspberry Pi with 512m of memory. Openerp is installed on the Raspberry Pi but anything I try result on 'Impossible to restore database'.

For the restoring process I do the following (v7, Postgresql 9.1.9):

1-I save the database in the administration of the old openerp server--> which give me a ".dump" file.

2-I move the .dump file on the new server and, through the same database administration menu, I restore it with the same name of the blank database.

Help is welcome.

아바타
취소

An interesting project. Not sure I'd be impressed with the speed though! Do you have further details about how you are doing the dump from the original database and how you are attempting to do the restore. Looking through the openerp and postgres logs would be a good place to start to further expand on what the actual error is.

작성자

The speed with the Pi is actually a lot faster than I thought, response is around 2-3 seconds when charging new menus and almost inmediate when in the same menu. There is still no datas though...

베스트 답변

You are probably missing the pgpass file on the target server.

Inside the home of the system user that run the openerp process, create an hidden file called .pgpass.

Inside this file you have to write something like:

localhost:5432:*:myuser:mypassword

replace myuser and mypassword with the correct postgresql credentials (the ones you can see inside the openerp's server config file).

Set the correct file permission: chmod 600 .pgpass

Restart OpenERP then try to restore the dump file.

If this doesn't work, try to run OpenERP in foreground (by typing openerp-server --all-the-switch-you-need in the shell). You should notice that OpenERP is asking for the password in the server's shell. If this happens, you need to check pg credentials or auth mechanism in the pg_hba.conf file.

아바타
취소
작성자

Thanks for the answer. To be sure...: localhost:5432[local IP adress:port]:*[?]:myuser:mypassword? We are speaking of the "openerp/server/openerp-server.conf"? "--all-the-switch-you-need in the shell", what are the switches, ports? I tried option 1 with no results.

관련 게시물 답글 화면 활동
1
3월 15
4306
4
7월 24
33918
5
10월 23
23532
2
8월 18
10459
2
7월 16
13041