The ordering of the entries in pg_hba.conf is important- postgres will attempt to authenticate a user with the first matching line. Can you try moving the line ending with ident to below the lines ending with md5?
I tried to modify the file as you suggest, I hope I did it correctly. You can look at the modified file at the same link I sent you. The file is labeled as "pg_hba_2.conf".
If I modified the file correctly, the solution you proposed is not working. I get always the same error.
There are two ways of connecting to the Postgres server: via a network connection, or using a local socket, and it's possible for them to use different authentication mechanisms. OMERO requires the former. Without the '-h hostname' psql will attempt to use the latter- sorry for not spotting this earlier.
At the end of the last week some users reported a slow down of the service, they had to wait a long time for insight to load data from the server. The problem lasted a couple of hours.
Today a user told me that the server was not accessible. I tried it and neither insight nor the web service were able to access the server. The web server was not even reachable (endless loading).
If you could zip up the log directory and put them online again that would be most helpful. Could you also tell us what dates/times the slowdowns occurred, to make it easier for us when going through the logs?