knadh / listmonk

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
https://listmonk.app
GNU Affero General Public License v3.0
15.41k stars 1.41k forks source link

Authentication fails for custom database credentials but works with default database credential #1987

Closed rhosigma123 closed 1 day ago

rhosigma123 commented 3 months ago

Version:

When i use default database credentials listmonk runs perfectly 2024/08/11 00:38:05 main.go:102: v3.0.0 (f9120d9 2024-02-04T11:20:27Z, linux/amd64) 2024/08/11 00:38:05 init.go:150: reading config: config.toml 2024/08/11 00:38:05 init.go:289: connecting to db: db:5432/listmonk 2024/08/11 00:38:06 init.go:618: media upload provider: filesystem 2024/08/11 00:38:06 init.go:541: loaded email (SMTP) messenger: username@smtp.yoursite.com ⇨ http server started on [::]:9000

When i custom database credentials listmonk fails with the below auth error reading config: config.toml 2024/08/11 00:44:23 init.go:289: connecting to db: db:5432/abdussalam 2024/08/11 00:44:23 init.go:293: error connecting to DB: pq: password authentication failed for user "abdussalam"

image

richeshgupta commented 3 months ago

Hey @rhosigma123 I just connected with custom db credentials and I was able to connect. Could you elaborate more if you are trying to connect to some remote host or trying to set db up locally? I might be able to help you here.

github-actions[bot] commented 1 week ago

This issue has been marked 'stale' after 90 days of inactivity. If there is no further activity, it will be closed in 7 days.