Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6648969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:43:07+00:00 2026-05-26T00:43:07+00:00

first things first, please excuse my utter noobness. I really tried to find a

  • 0

first things first, please excuse my utter noobness. I really tried to find a solution out there, but now i’m stuck and completely clueless.

i’m trying to deploy a rails 3 app on a distant server ; when developping on my local VM, no problem showed. But now, when i try to run

rake db:create

it fails, with error (here translated, since i’m french):

FATAL : password authentication failed for user <<mylogin>>

here’s my database.yml :

login: &login
  adapter: postgresql
  username: mylogin
  password: mypassword
  host: localhost
  port: 5432
  encoding: UTF8

development:
  <<: *login
  database: somesite_development

test:
  <<: *login
  database: somesite_test

production:
  <<: *login
  database: somesite_production

the user “mylogin” has been created postgre-side with the command-line tool “createuser”. It’s authorized to create dbs.
postgresql.conf configures the server to listen on localhost.
I’ve tried many things with pg_hba.conf, none worked – whatever the method used (ident, password, md5) for user “mylogin” on 127.0.0.1, authentication fails – though i’ve never had problems connecting / creating dbs with psql.

any clue ?

EDIT: okay, found out how incredibly stupid i’ve been… the password for my user was simply not set !
I think i forgot the semicolon after

ALTER USER xxxx WITH PASSWORD xxxx ;

… i saw this by requesting “SELECT * FROM pg_shadow;” – the password field was empty. Three days of my life wasted because of this dumb mistake…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:43:08+00:00Added an answer on May 26, 2026 at 12:43 am

    okay, found out how incredibly stupid i’ve been… the password for my user was simply not set ! I think i forgot the semicolon after

    ALTER USER xxxx WITH PASSWORD xxxx ;
    

    … i saw this by requesting “SELECT * FROM pg_shadow;” – the password field was empty. Three days of my life wasted because of this dumb mistake…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know the bits just came out today, but one of the first things
Please help me understand 2 things I found in this C code: First, there
First of all, please excuse me for my bad english!:) Im developing several mods
First of all, please excuse any typo, English is not my native language. Here's
I building my first cake PHP application, all things configured correctly, but when i
This is my first time dabbling in NLP so please excuse my ignorance. I'm
This is my first question, so please excuse me for any mistake I make.
First of all, please excuse me as I am a bit new to this
iPhone/objC I'm really stuck here and I could use some help, please. Let me
first please be gentle im a really big begginer. Ok im making a real

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.