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

[BUG] .pgpass option is not working on Windows #24

Open
sandeep-ps opened this issue Jul 22, 2024 · 0 comments
Open

[BUG] .pgpass option is not working on Windows #24

sandeep-ps opened this issue Jul 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sandeep-ps
Copy link
Member

Describe the bug
.pgpass option is not working when the data ingestion CLI is run on Windows.

To Reproduce
Steps to reproduce the behavior:

  1. Run the data ingestion CLI with the following options from a Windows machine:
--db_host fd-postgres-dev.ncsa.illinois.edu --db_port 5432 --db_user ccadmin --db_name <db_name> -C -c -i -I
  1. An error like below appears:
Traceback (most recent call last):
  File "C:\Workspace-pdl\data-ingestion\src\pdl_database.py", line 27, in connect
    self.connection = psycopg2.connect(user=db_user, host=db_host, port=db_port)
  File "C:\venv\pdl-api\lib\site-packages\psycopg2\__init__.py", line 122, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: connection to server at "fd-postgres-dev.ncsa.illinois.edu" (141.142.218.102), port 5432 failed: fe_sendauth: no password supplied

Expected behavior
The data ingestion CLI should work with .pgpass option when running on Windows.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Python Version: 3.10.0
  • Version: 0.1.0

Additional context
Add any other context about the problem here.

@sandeep-ps sandeep-ps added the bug Something isn't working label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant