Seems that no service is listening on port 5432. Check that postgres is running and check the port number where it is listening.
mic Il giorno 01/lug/2012 11:33, "Yannick" <[email protected]> ha scritto: > 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 > > >

