Just to be sure,

is your postgres configured properly? Postgres need a few adjustments on
some config files in order to grant access to the database (specially if
it's an external access - other than localhost).

Just check that first, ok ?

Good Luck!


2012/7/1 Yannick <ytchatch...@gmail.com>

> Hello Mate,
>
> I can't seems to connect to my DB postgres from my application in  a linux
> box... Here is the error message I have:
>
> File "/home/www-data/web2py/gluon/dal.py", line 3665, in __init__
>     raise RuntimeError, "Failure to connect, tried 5 times:\n%s" % error
> RuntimeError: Failure to connect, tried 5 times:
> could not connect to server: Connection refused
>     Is the server running on host "localhost" and accepting
>     TCP/IP connections on port 5432?
>
>
> Please let me know if you have any idea why...
>
> Thanks
>
>
>


-- 
[]'s
Marco Tulio

Reply via email to