django-dbbackup icon indicating copy to clipboard operation
django-dbbackup copied to clipboard

Password authentication failed

Open mcroni opened this issue 3 years ago • 9 comments

Bug Report

Describe the bug

Running this code with AWS S3 as my storage medium. The password to this username is correct but i get this error

To Reproduce

python manage.py dbbackup

Expected behavior

dbbackup.db.exceptions.CommandConnectorError: Error running:  pg_dump  --host=localhost --port=5432 --username=myprojectuser --no-password --clean coincard 
pg_dump: error: connection to database "coincard" failed: FATAL:  password authentication failed for user "myprojectuser"
FATAL:  password authentication failed for user "myprojectuser"

Versions

Django-dbbackup

  • pypi: [e.g. 3.3.0]

External tools

  • Python: 3.6.9
  • Django : 3.0.3
  • OS : Ubuntu 20

mcroni avatar Sep 17 '21 13:09 mcroni

I get the same thing with PostgreSQL.

rbannon-tc avatar Oct 14 '21 17:10 rbannon-tc

Pretty sure author of this app has abandoned it.

rbannon-tc avatar Oct 14 '21 17:10 rbannon-tc

do you have any special characters in your DB password? Looking at prev issues, special characters are causing the break. No update on a fix though.

rugys avatar Oct 19 '21 10:10 rugys

@rugys @ and ! So, yeah

rbannon-tc avatar Oct 19 '21 20:10 rbannon-tc

@rugys yeah i have special chars like @

mcroni avatar Oct 19 '21 22:10 mcroni

Can confirm that * also seems to be a breaking character. I'll be sticking to alphanumeric from now on.

quaintjames avatar Dec 21 '21 15:12 quaintjames

There was an update of the problem?

gilsonluiz avatar Mar 18 '22 19:03 gilsonluiz

Also problems with { sign

adi- avatar Mar 23 '22 11:03 adi-

Passwords should be escaped

adi- avatar Mar 23 '22 11:03 adi-