Skip to content

Failed to connect to database #1282

@burdulixda

Description

@burdulixda

Hello. I just installed Komodo v2 on OpenWrt 25.12.1 running on NanoPi R6S. I went with the FerretDB option and followed the installation instructions to a tee. For some reason, the FerretDB container is not starting:

root@OpenWrt:/opt/komodo# docker ps -a
CONTAINER ID   IMAGE                                  COMMAND                  CREATED          STATUS                      PORTS                                       NAMES
4e7a9def82d4   ghcr.io/moghtech/komodo-periphery:2    "entrypoint.sh perip…"   25 minutes ago   Up 18 minutes               8120/tcp                                    komodo-periphery-1
44ee084f1339   ghcr.io/moghtech/komodo-core:2         "entrypoint.sh core"     25 minutes ago   Up 2 seconds                0.0.0.0:9120->9120/tcp, :::9120->9120/tcp   komodo-core-1
f4757e2856b4   ghcr.io/ferretdb/ferretdb              "/ferretdb"              25 minutes ago   Up 18 minutes (unhealthy)   8088/tcp, 27017-27018/tcp                   komodo-ferretdb-1
af7c312bac26   ghcr.io/ferretdb/postgres-documentdb   "docker-entrypoint.s…"   26 minutes ago   Up 18 minutes               5432/tcp                                    komodo-postgres-1
root@OpenWrt:/opt/komodo# docker logs -n 4 f4757e2856b4
2026-03-27T15:45:33.101Z        ERROR   documentdb/tracer.go:115        Acquire {"error":"failed to connect to `user=MyUsername database=postgres`:\n\t172.18.0.4:5432 (postgres): dial error: dial tcp 172.18.0.4:5432: connect: connection refused\n\t172.18.0.4:5432 (postgres): dial error: dial tcp 172.18.0.4:5432: connect: connection refused","name":"documentdb","time":1645927}
2026-03-27T15:45:33.102Z        WARN    mongoerrors/mongoerrors.go:97   Unexpected error type   {"arg":"","error":"lazyerror{\"msg_ping.go:44 (handler.(*Handler).msgPing): pool.go:101 (documentdb.(*Pool).WithConn): pool.go:90 (documentdb.(*Pool).Acquire): failed to connect to `user=MyUsername database=postgres`:\\n\\t172.18.0.4:5432 (postgres): dial error: dial tcp 172.18.0.4:5432: connect: connection refused\\n\\t172.18.0.4:5432 (postgres): dial error: dial tcp 172.18.0.4:5432: connect: connection refused\"}","name":"documentdb"}
2026-03-27T15:45:33.102Z        WARN    middleware/dispatcher.go:131    Command handled {"command":"ping","duration":"2.094234ms","handler":"documentdb","name":"middleware","result":"InternalError"}
2026-03-27T15:45:33.103Z        INFO    clientconn/listener.go:322      Connection stopped      {"conn":"127.0.0.1:50380 -> 127.0.0.1:27017","name":"listener"}

Any idea what could be the issue?

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