Skip to content

Postgres failed to initialize database #152

@minh10huy

Description

@minh10huy

I'm encountering the following issue: m3fs checks the PostgreSQL connection and gets confused, but the PostgreSQL Docker container is still running. Could this error be caused by m3fs checking PostgreSQL while it's still starting up?

INFO[0001] Started postgresql container 3fs-postgres successfully NODE=open3fs-stor01 TASK=CreatePgClusterTask
ERRO[0001] [gorm] failed to initialize database, got error failed to connect to user=postgres database=open3fs: 192.168.1.241:5432 (192.168.1.241): dial error: dial tcp 192.168.1.241:5432: connect: connection refused
WARN[0001] Failed to create db connection to 192.168.1.241:5432: open database: failed to connect to user=postgres database=open3fs: 192.168.1.241:5432 (192.168.1.241): dial error: dial tcp 192.168.1.241:5432: connect: connection refused NODE=open3fs-stor01 TASK=CreatePgClusterTask

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions