Skip to content

Fix container name for DB URI - #87

Merged
ellie merged 1 commit into
atuinsh:mainfrom
axtl:patch-1
Mar 9, 2025
Merged

ellie merged 1 commit into
atuinsh:mainfrom
axtl:patch-1

Conversation

@axtl

@axtl axtl commented Feb 14, 2025

Copy link
Copy Markdown
Contributor

The example ATUIN_DB_URI uses @db as the hostname, but the container was named postgresql which led to connection errors:

Location:
    /app/crates/atuin-server/src/lib.rs:143:10
Error: failed to connect to db: PostgresSettings { db_uri: "postgres://atuin:****@db/atuindb" }

Caused by:
    Other(error communicating with database: failed to lookup address information: Name or service not known

    Caused by:
        failed to lookup address information: Name or service not known

    Location:
        crates/atuin-server-postgres/src/lib.rs:53:39)

The example `ATUIN_DB_URI` uses `@db` as the hostname, but the container was named `postgresql` which led to connection errors:

```
Location:
    /app/crates/atuin-server/src/lib.rs:143:10
Error: failed to connect to db: PostgresSettings { db_uri: "postgres://atuin:****@db/atuindb" }

Caused by:
    Other(error communicating with database: failed to lookup address information: Name or service not known

    Caused by:
        failed to lookup address information: Name or service not known

    Location:
        crates/atuin-server-postgres/src/lib.rs:53:39)

```

@ellie ellie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@ellie
ellie merged commit ad11898 into atuinsh:main Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants