# Rake Problem w/ Postgresql 7.x on Debian Sarge

**URL:** <https://www.ruby-forum.com/t/rake-problem-w-postgresql-7-x-on-debian-sarge/66128>\
**Category:** Ruby-Forum\
**Created:** [August 23, 2006, 2:47pm UTC](https://www.ruby-forum.com/t/rake-problem-w-postgresql-7-x-on-debian-sarge/66128 "2006-08-23T14:47:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amrmalik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f17d59/32.png) [@amrmalik](https://www.ruby-forum.com/u/amrmalik)\
**Post date:** [August 23, 2006, 2:47pm UTC](https://www.ruby-forum.com/t/rake-problem-w-postgresql-7-x-on-debian-sarge/66128/1 "2006-08-23T14:47:46Z")

</div>

Hey folks,

I’m having a heck of a time trying to get Rails to talk to the  
Postgresql installed on my debian box.

Here is the setup on my LayeredTech dedicated box:

Debian Sarge  
Postgresql 7.x  
Ruby 1.8.2  
Rails 1.1.6  
rForum latest (933) -----\> this is where I’m getting the problem  
postgres-pr gem (v 0.4.0)  
postgres gem (had compile probs so un-installed it)

here is what I have already done:

== created a forum database in PostgreSQL  
== create a user for it with password  
== installed postgres and postgres-pr gems (got a few errors in the  
postgres  
install, but it claims the gem was “installed” but I de-activated it)

===\>\>\>\> tried rake db:migrate which craps out with the following error:

rake aborted!  
FATAL C28000 MIDENT authentication failed for user “tingforum”  
Fauth.c L395 Rauth\_failed

the full trace is located here: [http://pastebin.com/773941](http://pastebin.com/773941)

I keep getting authentication errors regardless of which postgres gem I  
use. I tried the pure ruby one just to test, and got the above error.

NOTE: I did fix the pg\_hba.conf file for Postgres to accept cleartext or  
MD5 hashes and it seems to work fine from the commandline (i can connect  
with the db via psql) The above test was run with ‘password’ as the  
method ie NO IDENT/SAMEUSER stuff in the conf file.

I’m at a loss, maybe someone can give a pointer?

thanks,

Amr

---

<div class="post-metadata">

**Author:** ![amrmalik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f17d59/32.png) [@amrmalik](https://www.ruby-forum.com/u/amrmalik)\
**Post date:** [August 24, 2006, 1:03am UTC](https://www.ruby-forum.com/t/rake-problem-w-postgresql-7-x-on-debian-sarge/66128/2 "2006-08-24T01:03:29Z")

</div>

I installed postgresql 8.1 and it seems to be moving forward now.
