Contents ...
udn網路城邦
夏肇毅知識運算網-如何在Ubuntu上使用不同使用者偵錯OpenERP(Odoo)
2016/06/15 22:06
瀏覽208
迴響0
推薦3
引用0

[夏肇毅知識運算網 Mark Hsia's Knowledge Computing Web]

如何在Ubuntu上使用不同使用者偵錯OpenERP(Odoo)

Debug the Odoo in Ubuntu with different user name

Once we've installed the Odoo as a service in Ubuntu, Odoo will be started up automatically. If we want to debug the Odoo, we should stop the Odoo service first. Also, we will encounter the "Peer authentication failed for user "odoo"" error if our login user name is not odoo. In order to conquer these problems we should do the following steps:
1. Stop service:
sudo service odoo stop
2. set the user odoo as a trusted user to all databases from local:
sudo nano /etc/postgresql/9.3/main/pg_hba.conf
 
then add the following line into the file:
local all odoo trust
 
then restart the postgresql:
sudo service postgresql restart
3. Start odoo with the db user odoo:
cd /usr/bin
./odoo.py -r odoo


Reference:

Peer authentication failed for user "odoo"
有誰推薦more

限會員,要發表迴響,請先登入