I upgraded to Mountain Lion due to a crash with my previous machine, and I’m having issue with my former installations in Developer.
Here’s the unique error reported :
“org.postgresql.util.PSQLException: Connexion refusée. Vérifiez que le nom de machine et le port sont corrects et que postmaster accepte les connexions TCP/IP.”
Connexion refused, either machine name or ports are incorrect or postmaster doesn’t accept TCP/IP connexions. Any clue ?
Ports are ok, they are available, the machine name didn’t changed, so what can I do to fix it ?
It means that PostgreSQL is not listening on TCP (only on UNIX sockets) which it does out-of-the-box for security reasons.
You can change this in the postgresql.conf
See http://www.postgresql.org/docs/9.2/stat … N-SETTINGS for more info.
Thank you Robert,
I uncommented the ‘listen_adresses’ but it doesn’t seem to change anything.
here’s the “connexion settings” part of the .conf file I have
Thanks again
Ugo
- Connection Settings -
listen_addresses = ‘localhost’ # what IP address(es) to listen on;
The postgres.log however state a FATAL with role “admin” doesn’t exist and thus a FATAL: data directory “/Applications/Servoy6/application_server/database” has wrong ownership
I’m wondering what exactly are the roles set and what parameter is expected as ownership for this directory
you should be the owner of the folder /Applications/Servoy6/application_server/database and its contents. You can check this in Terminal by typing the following command:
ls -l /Applications/Servoy6/application_server
Then you should get something like this:
…
drwx------ 18 cl admin 612 27 Feb 20:26 database
…
This means, that this folder ‘database’ belongs to me (‘cl’) and to the group ‘admin’. If you have moved your Servoy6 folder to your new installed machine then you perhaps do not see your user name but rather you see a number or a wrong user name. So you have to fix this by adjusting the ownership:
chown -R [your_user_name] /Applications/Servoy6/application_server/database
e.g. :
chown -R cl /Applications/Servoy6/application_server/database
Getting the datas back from my old HD was not possible, and the Time Machine recover from a Snow Leopard OS didn’t lead to a satisfactory situation.
I uninstallled Servoy and re-installed it yesterday, this is a fresh install of a 6.0.9 version downloaded yesterday.
At the moment, I haven’t recovered my previous workspaces and databases, I’m starting it up with the new installation.
This is PostgreSQL being very secure and enforcing it.
Only the owner is allowed access to the data directory.
You can execute the following in the terminal to fix this:
And if it still complains about ownerships then there might be some files/directories in the data directory that have the wrong owner. The following command should fix that.