Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbbackup.db.exceptions.CommandConnectorError: Error running: pg_dump --host=localhost --port=5432 --username=zerpatec --no-password --clean zerpatechnology pg_dump: error: falló la conexión al servidor en «localhost» (127.0.0.1), puerto 5432: FATAL: la autentificación password falló para el usuario #403

Open
JesusZerpa opened this issue Oct 30, 2021 · 3 comments

Comments

@JesusZerpa
Copy link

JesusZerpa commented Oct 30, 2021

Bug Report

Describe the bug

when run comand: python manage.py dbbackup

To Reproduce

run comand: python manage.py dbbackup

Expected behavior

Expected behavior is created backup file, I checked the code and the reason is when it load PGPASSWORD for any reason django_db backup it is putting quotation marks to password, I repeated operation manually with a subprocess without quotation marks that this library it is putting and it work

my django project working good with same DATABASES settings so I think its something
of django_dbbackup

Screenshots or reproduction

If applicable, add screenshots (errors, example of the behavior, etc.) to help explain your problem or post a link to a repository that replicates the issue.
image

Versions

3.3.0

Django-dbbackup

pip 21.1.3

External tools

  • Python: 3.8.10
  • Django: 3.2.4
  • OS: Linux
@JesusZerpa
Copy link
Author

The cause of the error is the quote () function that is in get_escaped_command_arg in the utils.py file when I remove it it worked

@Archmonger
Copy link
Contributor

@JesusZerpa Please submit a PR for this when you get a chance.

@andychoi
Copy link

Please correct it asap. It is failing due to --no-password
pip install django-dbbackup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants