Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
6 ตอบกลับ
144319 มุมมอง

My first attempt to install a module. In the process I've got an error:

socket.error: [Errno 98] Address already in use in OpenERP

Tried to solve like this:

ps aux | grep openerp 
sudo kill -9 procees id
sudo /etc/init.d/openerp-server restart (=> this doesn't work)

Now I get an other error OperationalError: FATAL: role "root" does not exist and the website is down.

Can someone help me out? 

อวตาร
ละทิ้ง

Did you find a solution to your problems? First troubleshooting step would be to login as your odoo user and try running odoo from the command prompt with logging:

odoo # odoo --loglevel=debug

Then try browsing again...

คำตอบที่ดีที่สุด

 500 internal server error (Linux)

OperationalError: FATAL: role "root" does not exist

You find this error in file : /var/log/postgrsql/postgrsql-10-main.log (on linux system)

The solution may be :

    1- Open Terminal and enter => sudo su postgres
    2- Enter password for postgres System user (if it is necessary)
    3- createuser root -s
    4- psql template1
    5- alter role root with password 'yourpassword';
    6- \q
    7- exit
    8- service odoo restart

Now try again to localhost:8069

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Dennis,

You have to create user role for postgres.

sudo -u postgres createuser -s username
 
sudo su postgres
psql
alter user username with password 'password';
\q
exit
อวตาร
ละทิ้ง
ผู้เขียน

This doesn't work. I get error: could not change directory to "/root": Permission denied.

I'm logged in to the server as root. Does that has something to do with it?

Do I have to change 'username' in the commando?

Or do I prompt the commando somewhere else? (in odoo.py?)

As you can see I'm new to this so I really don't now where to start.. I've tried numerous things but all I get are errors.

คำตอบที่ดีที่สุด

me pueden  ayudarme para darle permiso para ingresar odoo 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Thank you so much, it worked for me 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Thanks so much, it work, this fix my problem. 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด


Thanks so much, it works for me too, I solved my problem using this command. 

อวตาร
ละทิ้ง