Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo xtask install fails with database connection errors #152

Open
mmoncure opened this issue Dec 12, 2024 · 0 comments
Open

cargo xtask install fails with database connection errors #152

mmoncure opened this issue Dec 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mmoncure
Copy link

Sorry, this likely an obvious problem, but I'm stuck!

Getting (error: error communicating with database: Connection refused (os error 61))

To Reproduce

error: error communicating with database: Connection refused (os error 61)
  --> crates/pg_schema_cache/src/versions.rs:17:9
   |
17 | /         sqlx::query_as!(
18 | |             Version,
19 | |             r#"select
20 | |   version(),
...  |
28 | |   current_setting('max_connections') :: int8 AS max_connections;"#
29 | |         )
   | |_________^
   |
   = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)

Expected behavior

I can connect with psql with no arguments due to how environment is set -- what is the build using to connect, and to what?

System information

macOS

@mmoncure mmoncure added the bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant