[GH-ISSUE #1] Stored connection won't connect #1

Closed
opened 2026-03-02 15:50:19 +03:00 by kerem · 2 comments
Owner

Originally created by @mdarrint on GitHub (Dec 5, 2025).
Original GitHub issue: https://github.com/pgplex/pgtui/issues/1

Originally assigned to: @rebelice on GitHub.

Version: 0.1.0

Steps to reproduce

  1. Installed the binary (and built to confirm issue) on Ubuntu
  2. Started app
  3. Created manual connection
  4. For password, entered password. NOTE: password is 64 characters.
  5. Connected and logged into the DB.
  6. Exited app.
  7. Started app and chose the previous connection (stored information).
  8. Error displays on previous connection.
╭──────────────────────────────────────────────────────╮                                               
│                                                      │                                               
│   Error: Connection Failed                           │                                               
│                                                      │                                               
│                                                      │                                               
│    Could not connect to localhost:5432               │                                               
│                                                      │                                               
│    Error: failed to ping database: failed to         │                                               
│    connect to `user=postgres database=postgres`:     │                                               
│    127.0.0.1:5432 (localhost): tls error: server     │                                               
│    refused TLS connection                            │                                               
│    [::1]:5432 (localhost): dial error: dial tcp      │                                               
│    [::1]:5432: connect: connection refused           │                                               
│    127.0.0.1:5432 (localhost): failed SASL auth:     │                                               
│    FATAL: password authentication failed for user    │                                               
│    "postgres" (SQLSTATE 28P01)                       │                                               
│                                                      │                                               
│  Press Enter or Esc to dismiss                       │                                               
│                                                      │                                               
╰──────────────────────────────────────────────────────╯

My Guess...for what it's worth

I can enter in the credentials each time to connect, so I know once manually entered, the connection works. Just thinking it's not storing the full password.

Originally created by @mdarrint on GitHub (Dec 5, 2025). Original GitHub issue: https://github.com/pgplex/pgtui/issues/1 Originally assigned to: @rebelice on GitHub. Version: 0.1.0 # Steps to reproduce 1. Installed the binary (and built to confirm issue) on Ubuntu 2. Started app 3. Created manual connection 4. For password, entered password. NOTE: password is 64 characters. 5. Connected and logged into the DB. 6. Exited app. 7. Started app and chose the previous connection (stored information). 8. Error displays on previous connection. ``` ╭──────────────────────────────────────────────────────╮ │ │ │ Error: Connection Failed │ │ │ │ │ │ Could not connect to localhost:5432 │ │ │ │ Error: failed to ping database: failed to │ │ connect to `user=postgres database=postgres`: │ │ 127.0.0.1:5432 (localhost): tls error: server │ │ refused TLS connection │ │ [::1]:5432 (localhost): dial error: dial tcp │ │ [::1]:5432: connect: connection refused │ │ 127.0.0.1:5432 (localhost): failed SASL auth: │ │ FATAL: password authentication failed for user │ │ "postgres" (SQLSTATE 28P01) │ │ │ │ Press Enter or Esc to dismiss │ │ │ ╰──────────────────────────────────────────────────────╯ ``` # My Guess...for what it's worth I can enter in the credentials each time to connect, so I know once manually entered, the connection works. Just thinking it's not storing the full password.
kerem closed this issue 2026-03-02 15:50:20 +03:00
Author
Owner

@rebelice commented on GitHub (Dec 18, 2025):

Thank you for your feedback! I will try to reproduce and fix this issue soon.

<!-- gh-comment-id:3668804760 --> @rebelice commented on GitHub (Dec 18, 2025): Thank you for your feedback! I will try to reproduce and fix this issue soon.
Author
Owner

@rebelice commented on GitHub (Dec 19, 2025):

Hello @mdarrint , I switched to a new keyring library to support more platforms, such as KDE. I've also improved user prompts for password storage/retrieval failures. You can try it out in v0.2.0. Your feedback is welcome!

<!-- gh-comment-id:3673863043 --> @rebelice commented on GitHub (Dec 19, 2025): Hello @mdarrint , I switched to a new keyring library to support more platforms, such as KDE. I've also improved user prompts for password storage/retrieval failures. You can try it out in [v0.2.0](https://github.com/rebelice/lazypg/releases/tag/v0.2.0). Your feedback is welcome!
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pgtui#1
No description provided.