Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-29-2011, 03:28 AM
|
#1
|
LQ Newbie
Registered: Mar 2011
Posts: 3
Rep:
|
System error
I made a system in CentOS5.5.
I used Tomcat6 and PostgreSQL.
But I couldn't enter my system. There are some error.
And I don't understand what kind of error this. And how to solve this problem.
JDBCExceptionReporter.logExceptions(100) | SQL Error: 0, SQLState: null
JDBCExceptionReporter.logExceptions(101) | Cannot create PoolableConnectionFactory (FATAL: Ident authentication failed for user "postgres")
"postgres" is username.
Is anybody knows anything about this error message, please post me. I will waiting for you.
Thank you
Have a wonderful day
Tsengel
|
|
|
03-29-2011, 05:24 AM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
|
Hi,
Make sure that you have the following in pg_hba.conf (located in /var/lib/pgsql/data)
Code:
local all all trust
host all 127.0.0.1/32 trust
Regards
|
|
|
03-30-2011, 03:16 AM
|
#3
|
LQ Newbie
Registered: Mar 2011
Posts: 3
Original Poster
Rep:
|
Thank you,bathory.
I checked the file. And I found that.
#TYPE DATABASE USER CIDR-ADDRESS METHOD
#"local" is for Unix domain socket connections only
local all all ident sameuser
#IPv4 local connections:
host all all 127.0.0.1/32 ident sameuser
#IPv6 local connections:
host all all ::1/128 ident sameuser
Do I need to append "trust". Is Trust METHOD. If yes, do i change "ident sameuser" to "trust" ?
thank you again for your post.
Best regards, Tsengel
|
|
|
03-30-2011, 03:21 AM
|
#4
|
LQ Newbie
Registered: Mar 2011
Posts: 3
Original Poster
Rep:
|
it's gone,bathory
Thank you so so much.
I am so happy.
I changed "ident sameuser" to "trust".
Thank you Thank you.
Best regards, Tsengel
|
|
|
04-08-2011, 04:54 PM
|
#5
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
In case the machine holds sensitive information of any kind trust
is not a good choice. You'd be better off to a) use the proper user
name (depending on how your tomcat interacts w/ postgres, or
password authentication via md5 [my personal preference]).
Cheers,
Tink
|
|
|
All times are GMT -5. The time now is 04:17 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|