Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.3K
Visualizações
AWS RDS: FATAL: password authentication failed for user "postgres"

I have Postgres RDS instance which was available and working 7 days ago. Today I noticed in my app log, which is hosted in an EC2 instance that connectivity fails with

FATAL: password authentication failed for user "postgres". 

Same when I try to connect from my local machine (was just fine 1 week ago). How come my master user is not able to login anymore? What could might have happened? Is it blocked somehow, expired or stucked? What I tried so far is rebooting the RDS instance and executed the automatic RDS troubleshooting, no success. Any hint would be appreciated.

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

This error would only occur for one reason which is invalid authentication information. Perform the following checks:

  • Check the username is correct (is postgres the username you specified when creating the RDS DB, you can validate this in the console)
  • Check the password is correct

Assuming both of these values you specified you believe to be correct, you should reset the password from the RDS management console.

Regarding rotation of the password, outside of an IAM user/IAM role modifying the password (which could be validated via CloudTrail). This could be programmatic or via the console.

Can you also ensure you have not setup password rotation via Secrets Manager.

over 4 years ago · Santiago Trujillo Relatório

0

This happened to me on RDS postgres as well and the only way I could get it to work was by using a pgpass file

over 4 years ago · Santiago Trujillo Relatório

0

If you Copy+Paste your HOST/URL/PASSWORD from AWS secret manager make sure that there is no 'New Line' chacrcter at the end of the string (try to paste it in some text editor to be sure).

That was the problem for me.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda