[INFO] cloning repository https://github.com/tweedegolf/openadr-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tweedegolf/openadr-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftweedegolf%2Fopenadr-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftweedegolf%2Fopenadr-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0e308a6e80300943a368570c85050ada74fde6e0 [INFO] checking tweedegolf/openadr-rs against try#8cf44c88fc5805dc578c5c987397615b47d2e2b2 for pr-136764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftweedegolf%2Fopenadr-rs" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tweedegolf/openadr-rs on toolchain 8cf44c88fc5805dc578c5c987397615b47d2e2b2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tweedegolf/openadr-rs [INFO] finished tweaking git repo https://github.com/tweedegolf/openadr-rs [INFO] tweaked toml for git repo https://github.com/tweedegolf/openadr-rs written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/tweedegolf/openadr-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_with_macros v3.9.0 [INFO] [stderr] Downloaded cc v1.1.19 [INFO] [stderr] Downloaded iso8601-duration v0.2.0 [INFO] [stderr] Downloaded validator_derive v0.18.2 [INFO] [stderr] Downloaded serde_with v3.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21a5f9eabedab734ab4d738347acae77755e0ad3b3a4b682e83406299507a274 [INFO] running `Command { std: "docker" "start" "-a" "21a5f9eabedab734ab4d738347acae77755e0ad3b3a4b682e83406299507a274", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21a5f9eabedab734ab4d738347acae77755e0ad3b3a4b682e83406299507a274", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21a5f9eabedab734ab4d738347acae77755e0ad3b3a4b682e83406299507a274", kill_on_drop: false }` [INFO] [stdout] 21a5f9eabedab734ab4d738347acae77755e0ad3b3a4b682e83406299507a274 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ce51204cc33765de9e2944f10756a44666633a927e8a7d529f6ee77b23eb8d0 [INFO] running `Command { std: "docker" "start" "-a" "8ce51204cc33765de9e2944f10756a44666633a927e8a7d529f6ee77b23eb8d0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Compiling cc v1.1.19 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking rustls-pki-types v1.8.0 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling rustls v0.23.13 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Checking rustls-pemfile v2.1.3 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Checking rustls-native-certs v0.8.0 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling validator_derive v0.18.2 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling serde_with_macros v3.9.0 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Checking iso8601-duration v0.2.0 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling unicode-properties v0.1.2 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking ipnet v2.10.0 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_with v3.9.0 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking validator v0.18.1 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking openadr-wire v0.1.0 (/opt/rustwide/workdir/openadr-wire) [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling sqlx-core v0.8.2 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking headers-core v0.3.0 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Checking headers v0.4.0 [INFO] [stderr] Checking serde_html_form v0.2.6 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking pem v3.0.4 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Checking rangemap v1.5.1 [INFO] [stderr] Checking jsonwebtoken v9.3.0 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-rustls v0.26.0 [INFO] [stderr] Checking tower v0.5.1 [INFO] [stderr] Compiling sqlx-postgres v0.8.2 [INFO] [stderr] Checking h2 v0.4.6 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking hyper-util v0.1.8 [INFO] [stderr] Checking sqlx v0.8.2 [INFO] [stderr] Checking hyper-rustls v0.27.3 [INFO] [stderr] Checking axum v0.7.7 [INFO] [stderr] Checking reqwest v0.12.8 [INFO] [stderr] Checking axum-extra v0.9.4 [INFO] [stderr] Checking openadr-client v0.1.0 (/opt/rustwide/workdir/openadr-client) [INFO] [stderr] Checking openadr-vtn v0.1.0 (/opt/rustwide/workdir/openadr-vtn) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:173:32 [INFO] [stdout] | [INFO] [stdout] 173 | let MaybePgId { id } = sqlx::query_as!( [INFO] [stdout] | ________________________________^ [INFO] [stdout] 174 | | MaybePgId, [INFO] [stdout] 175 | | r#" [INFO] [stdout] 176 | | SELECT business_id AS id FROM program WHERE id = $1 [INFO] [stdout] 177 | | "#, [INFO] [stdout] 178 | | program_id [INFO] [stdout] 179 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 209 | ... Ok(sqlx::query_as!( [INFO] [stdout] | __________^ [INFO] [stdout] 210 | | ... PostgresEvent, [INFO] [stdout] 211 | | ... r#" [INFO] [stdout] 212 | | ... INSERT INTO event (id, created_date_time, modification_date_time, program_id, event_name, priority, targets, report_descriptors... [INFO] [stdout] ... | [INFO] [stdout] 223 | | ... serde_json::to_value(&new.intervals).map_err(AppError::SerdeJsonBadRequest)?, [INFO] [stdout] 224 | | ... ) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 241 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 242 | | PostgresEvent, [INFO] [stdout] 243 | | r#" [INFO] [stdout] 244 | | SELECT e.* [INFO] [stdout] ... | [INFO] [stdout] 259 | | business_ids.as_deref(), [INFO] [stdout] 260 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 279 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 280 | | PostgresEvent, [INFO] [stdout] 281 | | r#" [INFO] [stdout] 282 | | SELECT e.* [INFO] [stdout] ... | [INFO] [stdout] 315 | | pg_filter.limit [INFO] [stdout] 316 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:332:35 [INFO] [stdout] | [INFO] [stdout] 332 | let previous_program_id = sqlx::query_as!( [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 333 | | PgId, [INFO] [stdout] 334 | | r#"SELECT program_id AS id FROM event WHERE id = $1"#, [INFO] [stdout] 335 | | id.as_str() [INFO] [stdout] 336 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 345 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 346 | | PostgresEvent, [INFO] [stdout] 347 | | r#" [INFO] [stdout] 348 | | UPDATE event [INFO] [stdout] ... | [INFO] [stdout] 369 | | serde_json::to_value(&new.intervals).map_err(AppError::SerdeJsonBadRequest)?, [INFO] [stdout] 370 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:381:26 [INFO] [stdout] | [INFO] [stdout] 381 | let program_id = sqlx::query_as!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 382 | | PgId, [INFO] [stdout] 383 | | r#"SELECT program_id AS id FROM event WHERE id = $1"#, [INFO] [stdout] 384 | | id.as_str() [INFO] [stdout] 385 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:391:12 [INFO] [stdout] | [INFO] [stdout] 391 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 392 | | PostgresEvent, [INFO] [stdout] 393 | | r#" [INFO] [stdout] 394 | | DELETE FROM event WHERE id = $1 RETURNING * [INFO] [stdout] 395 | | "#, [INFO] [stdout] 396 | | id.as_str() [INFO] [stdout] 397 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:186:32 [INFO] [stdout] | [INFO] [stdout] 186 | let program: Program = sqlx::query_as!( [INFO] [stdout] | ________________________________^ [INFO] [stdout] 187 | | PostgresProgram, [INFO] [stdout] 188 | | r#" [INFO] [stdout] 189 | | INSERT INTO program (id, [INFO] [stdout] ... | [INFO] [stdout] 237 | | business_id, [INFO] [stdout] 238 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:244:33 [INFO] [stdout] | [INFO] [stdout] 244 | let rows_affected = sqlx::query!( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 245 | | r#" [INFO] [stdout] 246 | | INSERT INTO ven_program (program_id, ven_id) [INFO] [stdout] 247 | | (SELECT $1, id FROM ven WHERE ven_name = ANY ($2)) [INFO] [stdout] ... | [INFO] [stdout] 250 | | &vens [INFO] [stdout] 251 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:271:12 [INFO] [stdout] | [INFO] [stdout] 271 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 272 | | PostgresProgram, [INFO] [stdout] 273 | | r#" [INFO] [stdout] 274 | | SELECT p.id, [INFO] [stdout] ... | [INFO] [stdout] 297 | | &user.ven_ids_string() [INFO] [stdout] 298 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 312 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 313 | | PostgresProgram, [INFO] [stdout] 314 | | r#" [INFO] [stdout] 315 | | SELECT p.id AS "id!", [INFO] [stdout] ... | [INFO] [stdout] 355 | | pg_filter.limit, [INFO] [stdout] 356 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:375:32 [INFO] [stdout] | [INFO] [stdout] 375 | let program: Program = sqlx::query_as!( [INFO] [stdout] | ________________________________^ [INFO] [stdout] 376 | | PostgresProgram, [INFO] [stdout] 377 | | r#" [INFO] [stdout] 378 | | UPDATE program p [INFO] [stdout] ... | [INFO] [stdout] 426 | | business_id [INFO] [stdout] 427 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | / sqlx::query!( [INFO] [stdout] 434 | | r#" [INFO] [stdout] 435 | | DELETE FROM ven_program WHERE program_id = $1 [INFO] [stdout] 436 | | "#, [INFO] [stdout] 437 | | program.id.as_str() [INFO] [stdout] 438 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:442:33 [INFO] [stdout] | [INFO] [stdout] 442 | let rows_affected = sqlx::query!( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 443 | | r#" [INFO] [stdout] 444 | | INSERT INTO ven_program (program_id, ven_id) [INFO] [stdout] 445 | | (SELECT $1, id FROM ven WHERE ven_name = ANY($2)) [INFO] [stdout] ... | [INFO] [stdout] 448 | | &vens [INFO] [stdout] 449 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:470:12 [INFO] [stdout] | [INFO] [stdout] 470 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 471 | | PostgresProgram, [INFO] [stdout] 472 | | r#" [INFO] [stdout] 473 | | DELETE FROM program p [INFO] [stdout] ... | [INFO] [stdout] 494 | | business_id, [INFO] [stdout] 495 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | let permitted_vens = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 96 | | PgId, [INFO] [stdout] 97 | | r#" [INFO] [stdout] 98 | | SELECT ven_id AS id FROM ven_program WHERE program_id = $1 [INFO] [stdout] 99 | | "#, [INFO] [stdout] 100 | | new.program_id.as_str() [INFO] [stdout] 101 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:117:26 [INFO] [stdout] | [INFO] [stdout] 117 | let program_id = sqlx::query_as!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 118 | | PgId, [INFO] [stdout] 119 | | r#" [INFO] [stdout] 120 | | SELECT program_id AS id FROM event WHERE id = $1 [INFO] [stdout] 121 | | "#, [INFO] [stdout] 122 | | new.event_id.as_str(), [INFO] [stdout] 123 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:133:30 [INFO] [stdout] | [INFO] [stdout] 133 | ... let report: Report = sqlx::query_as!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 134 | | ... PostgresReport, [INFO] [stdout] 135 | | ... r#" [INFO] [stdout] 136 | | ... INSERT INTO report (id, created_date_time, modification_date_time, program_id, event_id, client_name, report_name, payload_desc... [INFO] [stdout] ... | [INFO] [stdout] 145 | | ... serde_json::to_value(new.resources).map_err(AppError::SerdeJsonBadRequest)?, [INFO] [stdout] 146 | | ... ) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:163:30 [INFO] [stdout] | [INFO] [stdout] 163 | let report: Report = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 164 | | PostgresReport, [INFO] [stdout] 165 | | r#" [INFO] [stdout] 166 | | SELECT r.* [INFO] [stdout] ... | [INFO] [stdout] 177 | | business_ids.as_deref() [INFO] [stdout] 178 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:195:23 [INFO] [stdout] | [INFO] [stdout] 195 | let reports = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 196 | | PostgresReport, [INFO] [stdout] 197 | | r#" [INFO] [stdout] 198 | | SELECT r.* [INFO] [stdout] ... | [INFO] [stdout] 216 | | filter.limit, [INFO] [stdout] 217 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:236:30 [INFO] [stdout] | [INFO] [stdout] 236 | let report: Report = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 237 | | PostgresReport, [INFO] [stdout] 238 | | r#" [INFO] [stdout] 239 | | UPDATE report r [INFO] [stdout] ... | [INFO] [stdout] 264 | | serde_json::to_value(new.resources).map_err(AppError::SerdeJsonBadRequest)?, [INFO] [stdout] 265 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:282:30 [INFO] [stdout] | [INFO] [stdout] 282 | let report: Report = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 283 | | PostgresReport, [INFO] [stdout] 284 | | r#" [INFO] [stdout] 285 | | DELETE FROM report r [INFO] [stdout] ... | [INFO] [stdout] 293 | | business_ids.as_deref(), [INFO] [stdout] 294 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:137:34 [INFO] [stdout] | [INFO] [stdout] 137 | let resource: Resource = sqlx::query_as!( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 138 | | PostgresResource, [INFO] [stdout] 139 | | r#" [INFO] [stdout] 140 | | INSERT INTO resource ( [INFO] [stdout] ... | [INFO] [stdout] 155 | | to_json_value(new.targets)?, [INFO] [stdout] 156 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:170:24 [INFO] [stdout] | [INFO] [stdout] 170 | let resource = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 171 | | PostgresResource, [INFO] [stdout] 172 | | r#" [INFO] [stdout] 173 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 185 | | ven_id.as_str(), [INFO] [stdout] 186 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:203:19 [INFO] [stdout] | [INFO] [stdout] 203 | let res = sqlx::query_as!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 204 | | PostgresResource, [INFO] [stdout] 205 | | r#" [INFO] [stdout] 206 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 229 | | pg_filter.limit, [INFO] [stdout] 230 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:253:34 [INFO] [stdout] | [INFO] [stdout] 253 | let resource: Resource = sqlx::query_as!( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 254 | | PostgresResource, [INFO] [stdout] 255 | | r#" [INFO] [stdout] 256 | | UPDATE resource [INFO] [stdout] ... | [INFO] [stdout] 270 | | to_json_value(new.targets)? [INFO] [stdout] 271 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 285 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 286 | | PostgresResource, [INFO] [stdout] 287 | | r#" [INFO] [stdout] 288 | | DELETE FROM resource r [INFO] [stdout] ... | [INFO] [stdout] 293 | | ven_id.as_str(), [INFO] [stdout] 294 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | / sqlx::query_as!( [INFO] [stdout] 307 | | PostgresResource, [INFO] [stdout] 308 | | r#" [INFO] [stdout] 309 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 320 | | ven_id.as_str(), [INFO] [stdout] 321 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:333:9 [INFO] [stdout] | [INFO] [stdout] 333 | / sqlx::query_as!( [INFO] [stdout] 334 | | PostgresResource, [INFO] [stdout] 335 | | r#" [INFO] [stdout] 336 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 347 | | ven_ids, [INFO] [stdout] 348 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | let db_entry = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 103 | | IdAndSecret, [INFO] [stdout] 104 | | r#" [INFO] [stdout] 105 | | SELECT id, [INFO] [stdout] ... | [INFO] [stdout] 111 | | client_id, [INFO] [stdout] 112 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | / sqlx::query_as!( [INFO] [stdout] 143 | | IntermediateUser, [INFO] [stdout] 144 | | r#" [INFO] [stdout] 145 | | SELECT u.*, [INFO] [stdout] ... | [INFO] [stdout] 165 | | "#, [INFO] [stdout] 166 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:182:20 [INFO] [stdout] | [INFO] [stdout] 182 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 183 | | PgId, [INFO] [stdout] 184 | | r#" [INFO] [stdout] 185 | | INSERT INTO "user" (id, reference, description, created, modified) [INFO] [stdout] ... | [INFO] [stdout] 190 | | description [INFO] [stdout] 191 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | / sqlx::query!( [INFO] [stdout] 230 | | r#" [INFO] [stdout] 231 | | INSERT INTO user_credentials [INFO] [stdout] 232 | | (user_id, client_id, client_secret) [INFO] [stdout] ... | [INFO] [stdout] 238 | | &hash [INFO] [stdout] 239 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | / sqlx::query!( [INFO] [stdout] 255 | | r#" [INFO] [stdout] 256 | | DELETE FROM user_credentials WHERE user_id = $1 AND client_id = $2 [INFO] [stdout] 257 | | "#, [INFO] [stdout] 258 | | user_id, [INFO] [stdout] 259 | | client_id [INFO] [stdout] 260 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 271 | / sqlx::query!( [INFO] [stdout] 272 | | r#" [INFO] [stdout] 273 | | DELETE FROM "user" WHERE id = $1 [INFO] [stdout] 274 | | "#, [INFO] [stdout] 275 | | user_id [INFO] [stdout] 276 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 293 | / sqlx::query!( [INFO] [stdout] 294 | | r#" [INFO] [stdout] 295 | | UPDATE "user" SET [INFO] [stdout] 296 | | reference = $2, [INFO] [stdout] ... | [INFO] [stdout] 303 | | description [INFO] [stdout] 304 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 331 | / sqlx::query!( [INFO] [stdout] 332 | | r#" [INFO] [stdout] 333 | | DELETE FROM user_ven WHERE user_id = $1 [INFO] [stdout] 334 | | "#, [INFO] [stdout] 335 | | user_id [INFO] [stdout] 336 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | / sqlx::query!( [INFO] [stdout] 341 | | r#" [INFO] [stdout] 342 | | DELETE FROM user_business WHERE user_id = $1 [INFO] [stdout] 343 | | "#, [INFO] [stdout] 344 | | user_id [INFO] [stdout] 345 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:349:9 [INFO] [stdout] | [INFO] [stdout] 349 | / sqlx::query!( [INFO] [stdout] 350 | | r#" [INFO] [stdout] 351 | | DELETE FROM any_business_user WHERE user_id = $1 [INFO] [stdout] 352 | | "#, [INFO] [stdout] 353 | | user_id [INFO] [stdout] 354 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | / sqlx::query!( [INFO] [stdout] 359 | | r#" [INFO] [stdout] 360 | | DELETE FROM ven_manager WHERE user_id = $1 [INFO] [stdout] 361 | | "#, [INFO] [stdout] 362 | | user_id [INFO] [stdout] 363 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:367:9 [INFO] [stdout] | [INFO] [stdout] 367 | / sqlx::query!( [INFO] [stdout] 368 | | r#" [INFO] [stdout] 369 | | DELETE FROM user_manager WHERE user_id = $1 [INFO] [stdout] 370 | | "#, [INFO] [stdout] 371 | | user_id [INFO] [stdout] 372 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:385:41 [INFO] [stdout] | [INFO] [stdout] 385 | AuthRole::Business(b_id) => sqlx::query!( [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 386 | | r#" [INFO] [stdout] 387 | | INSERT INTO user_business (user_id, business_id) VALUES ($1, $2) [INFO] [stdout] 388 | | "#, [INFO] [stdout] 389 | | user_id, [INFO] [stdout] 390 | | b_id [INFO] [stdout] 391 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:392:38 [INFO] [stdout] | [INFO] [stdout] 392 | AuthRole::AnyBusiness => sqlx::query!( [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 393 | | r#" [INFO] [stdout] 394 | | INSERT INTO any_business_user (user_id) VALUES ($1) [INFO] [stdout] 395 | | "#, [INFO] [stdout] 396 | | user_id [INFO] [stdout] 397 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:398:36 [INFO] [stdout] | [INFO] [stdout] 398 | AuthRole::VEN(v_id) => sqlx::query!( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 399 | | r#" [INFO] [stdout] 400 | | INSERT INTO user_ven (user_id, ven_id) VALUES ($1, $2) [INFO] [stdout] 401 | | "#, [INFO] [stdout] 402 | | user_id, [INFO] [stdout] 403 | | v_id.as_str() [INFO] [stdout] 404 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:405:37 [INFO] [stdout] | [INFO] [stdout] 405 | AuthRole::VenManager => sqlx::query!( [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 406 | | r#" [INFO] [stdout] 407 | | INSERT INTO ven_manager (user_id) VALUES ($1) [INFO] [stdout] 408 | | "#, [INFO] [stdout] 409 | | user_id [INFO] [stdout] 410 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:411:38 [INFO] [stdout] | [INFO] [stdout] 411 | AuthRole::UserManager => sqlx::query!( [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 412 | | r#" [INFO] [stdout] 413 | | INSERT INTO user_manager (user_id) VALUES ($1) [INFO] [stdout] 414 | | "#, [INFO] [stdout] 415 | | user_id [INFO] [stdout] 416 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:425:9 [INFO] [stdout] | [INFO] [stdout] 425 | / sqlx::query_as!( [INFO] [stdout] 426 | | IntermediateUser, [INFO] [stdout] 427 | | r#" [INFO] [stdout] 428 | | SELECT u.*, [INFO] [stdout] ... | [INFO] [stdout] 450 | | user_id [INFO] [stdout] 451 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/ven.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | let ven: Ven = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 137 | | PostgresVen, [INFO] [stdout] 138 | | r#" [INFO] [stdout] 139 | | INSERT INTO ven ( [INFO] [stdout] ... | [INFO] [stdout] 152 | | to_json_value(new.targets)?, [INFO] [stdout] 153 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/ven.rs:170:28 [INFO] [stdout] | [INFO] [stdout] 170 | let mut ven: Ven = sqlx::query_as!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 171 | | PostgresVen, [INFO] [stdout] 172 | | r#" [INFO] [stdout] 173 | | SELECT * [INFO] [stdout] ... | [INFO] [stdout] 179 | | ids.as_deref(), [INFO] [stdout] 180 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/ven.rs:201:34 [INFO] [stdout] | [INFO] [stdout] 201 | let mut vens: Vec = sqlx::query_as!( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 202 | | PostgresVen, [INFO] [stdout] 203 | | r#" [INFO] [stdout] 204 | | SELECT DISTINCT [INFO] [stdout] ... | [INFO] [stdout] 230 | | pg_filter.limit, [INFO] [stdout] 231 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/ven.rs:264:28 [INFO] [stdout] | [INFO] [stdout] 264 | let mut ven: Ven = sqlx::query_as!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 265 | | PostgresVen, [INFO] [stdout] 266 | | r#" [INFO] [stdout] 267 | | UPDATE ven [INFO] [stdout] ... | [INFO] [stdout] 278 | | to_json_value(new.targets)? [INFO] [stdout] 279 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/ven.rs:304:28 [INFO] [stdout] | [INFO] [stdout] 304 | let mut ven: Ven = sqlx::query_as!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 305 | | PostgresVen, [INFO] [stdout] 306 | | r#" [INFO] [stdout] 307 | | DELETE FROM ven [INFO] [stdout] ... | [INFO] [stdout] 311 | | id.as_str(), [INFO] [stdout] 312 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:173:32 [INFO] [stdout] | [INFO] [stdout] 173 | let MaybePgId { id } = sqlx::query_as!( [INFO] [stdout] | ________________________________^ [INFO] [stdout] 174 | | MaybePgId, [INFO] [stdout] 175 | | r#" [INFO] [stdout] 176 | | SELECT business_id AS id FROM program WHERE id = $1 [INFO] [stdout] 177 | | "#, [INFO] [stdout] 178 | | program_id [INFO] [stdout] 179 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 209 | ... Ok(sqlx::query_as!( [INFO] [stdout] | __________^ [INFO] [stdout] 210 | | ... PostgresEvent, [INFO] [stdout] 211 | | ... r#" [INFO] [stdout] 212 | | ... INSERT INTO event (id, created_date_time, modification_date_time, program_id, event_name, priority, targets, report_descriptors... [INFO] [stdout] ... | [INFO] [stdout] 223 | | ... serde_json::to_value(&new.intervals).map_err(AppError::SerdeJsonBadRequest)?, [INFO] [stdout] 224 | | ... ) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 241 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 242 | | PostgresEvent, [INFO] [stdout] 243 | | r#" [INFO] [stdout] 244 | | SELECT e.* [INFO] [stdout] ... | [INFO] [stdout] 259 | | business_ids.as_deref(), [INFO] [stdout] 260 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 279 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 280 | | PostgresEvent, [INFO] [stdout] 281 | | r#" [INFO] [stdout] 282 | | SELECT e.* [INFO] [stdout] ... | [INFO] [stdout] 315 | | pg_filter.limit [INFO] [stdout] 316 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:332:35 [INFO] [stdout] | [INFO] [stdout] 332 | let previous_program_id = sqlx::query_as!( [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 333 | | PgId, [INFO] [stdout] 334 | | r#"SELECT program_id AS id FROM event WHERE id = $1"#, [INFO] [stdout] 335 | | id.as_str() [INFO] [stdout] 336 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 345 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 346 | | PostgresEvent, [INFO] [stdout] 347 | | r#" [INFO] [stdout] 348 | | UPDATE event [INFO] [stdout] ... | [INFO] [stdout] 369 | | serde_json::to_value(&new.intervals).map_err(AppError::SerdeJsonBadRequest)?, [INFO] [stdout] 370 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:381:26 [INFO] [stdout] | [INFO] [stdout] 381 | let program_id = sqlx::query_as!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 382 | | PgId, [INFO] [stdout] 383 | | r#"SELECT program_id AS id FROM event WHERE id = $1"#, [INFO] [stdout] 384 | | id.as_str() [INFO] [stdout] 385 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:391:12 [INFO] [stdout] | [INFO] [stdout] 391 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 392 | | PostgresEvent, [INFO] [stdout] 393 | | r#" [INFO] [stdout] 394 | | DELETE FROM event WHERE id = $1 RETURNING * [INFO] [stdout] 395 | | "#, [INFO] [stdout] 396 | | id.as_str() [INFO] [stdout] 397 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PgId` and `to_json_value` [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | postgres::{extract_business_ids, to_json_value, PgId, PgTargetsFilter}, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `to_json_value` [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | postgres::{extract_business_id, extract_vens, to_json_value, PgTargetsFilter}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PgId` and `to_json_value` [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | postgres::{extract_business_ids, to_json_value, PgId}, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `to_json_value` [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | postgres::{to_json_value, PgTargetsFilter}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `postgres::PgId` [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | data_source::{postgres::PgId, AuthInfo, AuthSource, UserDetails}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `to_json_value` [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/ven.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | postgres::{to_json_value, PgTargetsFilter}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:186:32 [INFO] [stdout] | [INFO] [stdout] 186 | let program: Program = sqlx::query_as!( [INFO] [stdout] | ________________________________^ [INFO] [stdout] 187 | | PostgresProgram, [INFO] [stdout] 188 | | r#" [INFO] [stdout] 189 | | INSERT INTO program (id, [INFO] [stdout] ... | [INFO] [stdout] 237 | | business_id, [INFO] [stdout] 238 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:244:33 [INFO] [stdout] | [INFO] [stdout] 244 | let rows_affected = sqlx::query!( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 245 | | r#" [INFO] [stdout] 246 | | INSERT INTO ven_program (program_id, ven_id) [INFO] [stdout] 247 | | (SELECT $1, id FROM ven WHERE ven_name = ANY ($2)) [INFO] [stdout] ... | [INFO] [stdout] 250 | | &vens [INFO] [stdout] 251 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:271:12 [INFO] [stdout] | [INFO] [stdout] 271 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 272 | | PostgresProgram, [INFO] [stdout] 273 | | r#" [INFO] [stdout] 274 | | SELECT p.id, [INFO] [stdout] ... | [INFO] [stdout] 297 | | &user.ven_ids_string() [INFO] [stdout] 298 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 312 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 313 | | PostgresProgram, [INFO] [stdout] 314 | | r#" [INFO] [stdout] 315 | | SELECT p.id AS "id!", [INFO] [stdout] ... | [INFO] [stdout] 355 | | pg_filter.limit, [INFO] [stdout] 356 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:375:32 [INFO] [stdout] | [INFO] [stdout] 375 | let program: Program = sqlx::query_as!( [INFO] [stdout] | ________________________________^ [INFO] [stdout] 376 | | PostgresProgram, [INFO] [stdout] 377 | | r#" [INFO] [stdout] 378 | | UPDATE program p [INFO] [stdout] ... | [INFO] [stdout] 426 | | business_id [INFO] [stdout] 427 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | / sqlx::query!( [INFO] [stdout] 434 | | r#" [INFO] [stdout] 435 | | DELETE FROM ven_program WHERE program_id = $1 [INFO] [stdout] 436 | | "#, [INFO] [stdout] 437 | | program.id.as_str() [INFO] [stdout] 438 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:442:33 [INFO] [stdout] | [INFO] [stdout] 442 | let rows_affected = sqlx::query!( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 443 | | r#" [INFO] [stdout] 444 | | INSERT INTO ven_program (program_id, ven_id) [INFO] [stdout] 445 | | (SELECT $1, id FROM ven WHERE ven_name = ANY($2)) [INFO] [stdout] ... | [INFO] [stdout] 448 | | &vens [INFO] [stdout] 449 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:470:12 [INFO] [stdout] | [INFO] [stdout] 470 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 471 | | PostgresProgram, [INFO] [stdout] 472 | | r#" [INFO] [stdout] 473 | | DELETE FROM program p [INFO] [stdout] ... | [INFO] [stdout] 494 | | business_id, [INFO] [stdout] 495 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | let permitted_vens = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 96 | | PgId, [INFO] [stdout] 97 | | r#" [INFO] [stdout] 98 | | SELECT ven_id AS id FROM ven_program WHERE program_id = $1 [INFO] [stdout] 99 | | "#, [INFO] [stdout] 100 | | new.program_id.as_str() [INFO] [stdout] 101 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:117:26 [INFO] [stdout] | [INFO] [stdout] 117 | let program_id = sqlx::query_as!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 118 | | PgId, [INFO] [stdout] 119 | | r#" [INFO] [stdout] 120 | | SELECT program_id AS id FROM event WHERE id = $1 [INFO] [stdout] 121 | | "#, [INFO] [stdout] 122 | | new.event_id.as_str(), [INFO] [stdout] 123 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:133:30 [INFO] [stdout] | [INFO] [stdout] 133 | ... let report: Report = sqlx::query_as!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 134 | | ... PostgresReport, [INFO] [stdout] 135 | | ... r#" [INFO] [stdout] 136 | | ... INSERT INTO report (id, created_date_time, modification_date_time, program_id, event_id, client_name, report_name, payload_desc... [INFO] [stdout] ... | [INFO] [stdout] 145 | | ... serde_json::to_value(new.resources).map_err(AppError::SerdeJsonBadRequest)?, [INFO] [stdout] 146 | | ... ) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:163:30 [INFO] [stdout] | [INFO] [stdout] 163 | let report: Report = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 164 | | PostgresReport, [INFO] [stdout] 165 | | r#" [INFO] [stdout] 166 | | SELECT r.* [INFO] [stdout] ... | [INFO] [stdout] 177 | | business_ids.as_deref() [INFO] [stdout] 178 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:195:23 [INFO] [stdout] | [INFO] [stdout] 195 | let reports = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 196 | | PostgresReport, [INFO] [stdout] 197 | | r#" [INFO] [stdout] 198 | | SELECT r.* [INFO] [stdout] ... | [INFO] [stdout] 216 | | filter.limit, [INFO] [stdout] 217 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:236:30 [INFO] [stdout] | [INFO] [stdout] 236 | let report: Report = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 237 | | PostgresReport, [INFO] [stdout] 238 | | r#" [INFO] [stdout] 239 | | UPDATE report r [INFO] [stdout] ... | [INFO] [stdout] 264 | | serde_json::to_value(new.resources).map_err(AppError::SerdeJsonBadRequest)?, [INFO] [stdout] 265 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:282:30 [INFO] [stdout] | [INFO] [stdout] 282 | let report: Report = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 283 | | PostgresReport, [INFO] [stdout] 284 | | r#" [INFO] [stdout] 285 | | DELETE FROM report r [INFO] [stdout] ... | [INFO] [stdout] 293 | | business_ids.as_deref(), [INFO] [stdout] 294 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:137:34 [INFO] [stdout] | [INFO] [stdout] 137 | let resource: Resource = sqlx::query_as!( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 138 | | PostgresResource, [INFO] [stdout] 139 | | r#" [INFO] [stdout] 140 | | INSERT INTO resource ( [INFO] [stdout] ... | [INFO] [stdout] 155 | | to_json_value(new.targets)?, [INFO] [stdout] 156 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:170:24 [INFO] [stdout] | [INFO] [stdout] 170 | let resource = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 171 | | PostgresResource, [INFO] [stdout] 172 | | r#" [INFO] [stdout] 173 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 185 | | ven_id.as_str(), [INFO] [stdout] 186 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:203:19 [INFO] [stdout] | [INFO] [stdout] 203 | let res = sqlx::query_as!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 204 | | PostgresResource, [INFO] [stdout] 205 | | r#" [INFO] [stdout] 206 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 229 | | pg_filter.limit, [INFO] [stdout] 230 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:253:34 [INFO] [stdout] | [INFO] [stdout] 253 | let resource: Resource = sqlx::query_as!( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 254 | | PostgresResource, [INFO] [stdout] 255 | | r#" [INFO] [stdout] 256 | | UPDATE resource [INFO] [stdout] ... | [INFO] [stdout] 270 | | to_json_value(new.targets)? [INFO] [stdout] 271 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 285 | Ok(sqlx::query_as!( [INFO] [stdout] | ____________^ [INFO] [stdout] 286 | | PostgresResource, [INFO] [stdout] 287 | | r#" [INFO] [stdout] 288 | | DELETE FROM resource r [INFO] [stdout] ... | [INFO] [stdout] 293 | | ven_id.as_str(), [INFO] [stdout] 294 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | / sqlx::query_as!( [INFO] [stdout] 307 | | PostgresResource, [INFO] [stdout] 308 | | r#" [INFO] [stdout] 309 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 320 | | ven_id.as_str(), [INFO] [stdout] 321 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:333:9 [INFO] [stdout] | [INFO] [stdout] 333 | / sqlx::query_as!( [INFO] [stdout] 334 | | PostgresResource, [INFO] [stdout] 335 | | r#" [INFO] [stdout] 336 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 347 | | ven_ids, [INFO] [stdout] 348 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | let db_entry = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 103 | | IdAndSecret, [INFO] [stdout] 104 | | r#" [INFO] [stdout] 105 | | SELECT id, [INFO] [stdout] ... | [INFO] [stdout] 111 | | client_id, [INFO] [stdout] 112 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | / sqlx::query_as!( [INFO] [stdout] 143 | | IntermediateUser, [INFO] [stdout] 144 | | r#" [INFO] [stdout] 145 | | SELECT u.*, [INFO] [stdout] ... | [INFO] [stdout] 165 | | "#, [INFO] [stdout] 166 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:182:20 [INFO] [stdout] | [INFO] [stdout] 182 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 183 | | PgId, [INFO] [stdout] 184 | | r#" [INFO] [stdout] 185 | | INSERT INTO "user" (id, reference, description, created, modified) [INFO] [stdout] ... | [INFO] [stdout] 190 | | description [INFO] [stdout] 191 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | / sqlx::query!( [INFO] [stdout] 230 | | r#" [INFO] [stdout] 231 | | INSERT INTO user_credentials [INFO] [stdout] 232 | | (user_id, client_id, client_secret) [INFO] [stdout] ... | [INFO] [stdout] 238 | | &hash [INFO] [stdout] 239 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | / sqlx::query!( [INFO] [stdout] 255 | | r#" [INFO] [stdout] 256 | | DELETE FROM user_credentials WHERE user_id = $1 AND client_id = $2 [INFO] [stdout] 257 | | "#, [INFO] [stdout] 258 | | user_id, [INFO] [stdout] 259 | | client_id [INFO] [stdout] 260 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 271 | / sqlx::query!( [INFO] [stdout] 272 | | r#" [INFO] [stdout] 273 | | DELETE FROM "user" WHERE id = $1 [INFO] [stdout] 274 | | "#, [INFO] [stdout] 275 | | user_id [INFO] [stdout] 276 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 293 | / sqlx::query!( [INFO] [stdout] 294 | | r#" [INFO] [stdout] 295 | | UPDATE "user" SET [INFO] [stdout] 296 | | reference = $2, [INFO] [stdout] ... | [INFO] [stdout] 303 | | description [INFO] [stdout] 304 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 331 | / sqlx::query!( [INFO] [stdout] 332 | | r#" [INFO] [stdout] 333 | | DELETE FROM user_ven WHERE user_id = $1 [INFO] [stdout] 334 | | "#, [INFO] [stdout] 335 | | user_id [INFO] [stdout] 336 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | / sqlx::query!( [INFO] [stdout] 341 | | r#" [INFO] [stdout] 342 | | DELETE FROM user_business WHERE user_id = $1 [INFO] [stdout] 343 | | "#, [INFO] [stdout] 344 | | user_id [INFO] [stdout] 345 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:349:9 [INFO] [stdout] | [INFO] [stdout] 349 | / sqlx::query!( [INFO] [stdout] 350 | | r#" [INFO] [stdout] 351 | | DELETE FROM any_business_user WHERE user_id = $1 [INFO] [stdout] 352 | | "#, [INFO] [stdout] 353 | | user_id [INFO] [stdout] 354 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | / sqlx::query!( [INFO] [stdout] 359 | | r#" [INFO] [stdout] 360 | | DELETE FROM ven_manager WHERE user_id = $1 [INFO] [stdout] 361 | | "#, [INFO] [stdout] 362 | | user_id [INFO] [stdout] 363 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:367:9 [INFO] [stdout] | [INFO] [stdout] 367 | / sqlx::query!( [INFO] [stdout] 368 | | r#" [INFO] [stdout] 369 | | DELETE FROM user_manager WHERE user_id = $1 [INFO] [stdout] 370 | | "#, [INFO] [stdout] 371 | | user_id [INFO] [stdout] 372 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:385:41 [INFO] [stdout] | [INFO] [stdout] 385 | AuthRole::Business(b_id) => sqlx::query!( [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 386 | | r#" [INFO] [stdout] 387 | | INSERT INTO user_business (user_id, business_id) VALUES ($1, $2) [INFO] [stdout] 388 | | "#, [INFO] [stdout] 389 | | user_id, [INFO] [stdout] 390 | | b_id [INFO] [stdout] 391 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:392:38 [INFO] [stdout] | [INFO] [stdout] 392 | AuthRole::AnyBusiness => sqlx::query!( [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 393 | | r#" [INFO] [stdout] 394 | | INSERT INTO any_business_user (user_id) VALUES ($1) [INFO] [stdout] 395 | | "#, [INFO] [stdout] 396 | | user_id [INFO] [stdout] 397 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:398:36 [INFO] [stdout] | [INFO] [stdout] 398 | AuthRole::VEN(v_id) => sqlx::query!( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 399 | | r#" [INFO] [stdout] 400 | | INSERT INTO user_ven (user_id, ven_id) VALUES ($1, $2) [INFO] [stdout] 401 | | "#, [INFO] [stdout] 402 | | user_id, [INFO] [stdout] 403 | | v_id.as_str() [INFO] [stdout] 404 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:405:37 [INFO] [stdout] | [INFO] [stdout] 405 | AuthRole::VenManager => sqlx::query!( [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 406 | | r#" [INFO] [stdout] 407 | | INSERT INTO ven_manager (user_id) VALUES ($1) [INFO] [stdout] 408 | | "#, [INFO] [stdout] 409 | | user_id [INFO] [stdout] 410 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:411:38 [INFO] [stdout] | [INFO] [stdout] 411 | AuthRole::UserManager => sqlx::query!( [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 412 | | r#" [INFO] [stdout] 413 | | INSERT INTO user_manager (user_id) VALUES ($1) [INFO] [stdout] 414 | | "#, [INFO] [stdout] 415 | | user_id [INFO] [stdout] 416 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:425:9 [INFO] [stdout] | [INFO] [stdout] 425 | / sqlx::query_as!( [INFO] [stdout] 426 | | IntermediateUser, [INFO] [stdout] 427 | | r#" [INFO] [stdout] 428 | | SELECT u.*, [INFO] [stdout] ... | [INFO] [stdout] 450 | | user_id [INFO] [stdout] 451 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/ven.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | let ven: Ven = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 137 | | PostgresVen, [INFO] [stdout] 138 | | r#" [INFO] [stdout] 139 | | INSERT INTO ven ( [INFO] [stdout] ... | [INFO] [stdout] 152 | | to_json_value(new.targets)?, [INFO] [stdout] 153 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/ven.rs:170:28 [INFO] [stdout] | [INFO] [stdout] 170 | let mut ven: Ven = sqlx::query_as!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 171 | | PostgresVen, [INFO] [stdout] 172 | | r#" [INFO] [stdout] 173 | | SELECT * [INFO] [stdout] ... | [INFO] [stdout] 179 | | ids.as_deref(), [INFO] [stdout] 180 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/ven.rs:201:34 [INFO] [stdout] | [INFO] [stdout] 201 | let mut vens: Vec = sqlx::query_as!( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 202 | | PostgresVen, [INFO] [stdout] 203 | | r#" [INFO] [stdout] 204 | | SELECT DISTINCT [INFO] [stdout] ... | [INFO] [stdout] 230 | | pg_filter.limit, [INFO] [stdout] 231 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/ven.rs:264:28 [INFO] [stdout] | [INFO] [stdout] 264 | let mut ven: Ven = sqlx::query_as!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 265 | | PostgresVen, [INFO] [stdout] 266 | | r#" [INFO] [stdout] 267 | | UPDATE ven [INFO] [stdout] ... | [INFO] [stdout] 278 | | to_json_value(new.targets)? [INFO] [stdout] 279 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/ven.rs:304:28 [INFO] [stdout] | [INFO] [stdout] 304 | let mut ven: Ven = sqlx::query_as!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 305 | | PostgresVen, [INFO] [stdout] 306 | | r#" [INFO] [stdout] 307 | | DELETE FROM ven [INFO] [stdout] ... | [INFO] [stdout] 311 | | id.as_str(), [INFO] [stdout] 312 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = 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) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PgId` and `to_json_value` [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/event.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | postgres::{extract_business_ids, to_json_value, PgId, PgTargetsFilter}, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `to_json_value` [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/program.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | postgres::{extract_business_id, extract_vens, to_json_value, PgTargetsFilter}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PgId` and `to_json_value` [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/report.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | postgres::{extract_business_ids, to_json_value, PgId}, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `to_json_value` [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/resource.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | postgres::{to_json_value, PgTargetsFilter}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `postgres::PgId` [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/user.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | data_source::{postgres::PgId, AuthInfo, AuthSource, UserDetails}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `to_json_value` [INFO] [stdout] --> openadr-vtn/src/data_source/postgres/ven.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | postgres::{to_json_value, PgTargetsFilter}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `openadr-vtn` (lib) due to 53 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `openadr-vtn` (lib test) due to 53 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8ce51204cc33765de9e2944f10756a44666633a927e8a7d529f6ee77b23eb8d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ce51204cc33765de9e2944f10756a44666633a927e8a7d529f6ee77b23eb8d0", kill_on_drop: false }` [INFO] [stdout] 8ce51204cc33765de9e2944f10756a44666633a927e8a7d529f6ee77b23eb8d0