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

    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 5432? - - -

I'm trying to run odoo 13 on ubuntu 18.04 and i did that but when i tried to use it on pycharm it didn't work i first had issue with the io that already used and when i killed the old odoo process i had several issues i solved it but couldn't solve this one even after i edited pg_hba.conf file and restarted postgresql

아바타
취소
작성자 베스트 답변

thank you Anisha

I solved the problem by creating new postgres user and add a password to the user using this command

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo-13

and adding this password to the configuration file instead of False

but first i had delete and reinstall the postgres as it showed the same problem "is the server running on local host......." when i tried to create user create user


아바타
취소

Hello Mahmoud Ibrahim,

Great to know that your issue has been resolved. And yes issue was due to the some missing postgres details.

Thanks

베스트 답변

Hello Mahmoud Ibrahim, 

I've read your issue;

You need to recheck config file of Postgres details

There is something invalid from db_host, db_user, db_port, db_password;

Regards

Anisha Bahukhandi

Technical Content Writer
Webkul

아바타
취소
베스트 답변

Hello im having the same problem as you had, can you help me to solve it

아바타
취소