Skip to content

How define the connection to database postgres in the configuration file #1118

@vitaaaaa1

Description

@vitaaaaa1

Hi, How should I define the url format for connecting to the postgres database in the configuration file?

I use

 database_url: "postgres://user_name:password@postgres_host:5432/warpgate"

This format of configuration, program startup error

this is error logs

07:16:30  INFO Warpgate version=0.11.0
07:16:30  INFO Using config: "/data/warpgate.yaml"
07:16:30  WARN Looks like your `external_host` config option contains a port - it will be ignored.
07:16:30  WARN Set the external port via the `http.external_port`, `ssh.external_port` or `mysql.external_port` options.
07:16:30 ERROR Fatal error error=Execution Error: error returned from database: current transaction is aborted, commands ignored until end of transaction block

Caused by:
    0: error returned from database: current transaction is aborted, commands ignored until end of transaction block
    1: error returned from database: current transaction is aborted, commands ignored until end of transaction block
    2: current transaction is aborted, commands ignored until end of transaction block

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