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

Hi,

I have in stall debian pacakage of openerp version 7 in my local pc, i write script start openerp service but it not working give me error

"Peer authentication failed for user "root"

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

This is a postgres authentication error. You're trying to run OpenERP as root (not recommended), but your postgres server is not allowing local peer authentication on root.

I suggest making a system account named 'openerp':

sudo adduser --system --home=/opt/openerp --group openerp

Use this account to start and stop the server. You'll need to chown the entire openerp folder, and I don't recall offhand where the .deb package puts that. Once that's done, check pg_hba.conf in your postgres configuration folder and make sure local connections allow 'peer' authentication on all databases for the 'openerp' user. The comments in that file explain how to set that up properly. IIRC it looks something like this:

local    all    openerp        peer

Postgres will check the system login making the request to connect, and if it's the 'openerp' user, immediately grant database access.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
8
thg 8 24
60045
10
thg 4 21
17510
3
thg 12 18
4430
0
thg 3 15
4119
0
thg 8 25
6