[INFO] cloning repository https://github.com/Towardsyou/zero2prod [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Towardsyou/zero2prod" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTowardsyou%2Fzero2prod", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTowardsyou%2Fzero2prod'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3d646ca6bc0934738657b7d5594c1390d743b416 [INFO] testing Towardsyou/zero2prod against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTowardsyou%2Fzero2prod" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Towardsyou/zero2prod [INFO] finished tweaking git repo https://github.com/Towardsyou/zero2prod [INFO] tweaked toml for git repo https://github.com/Towardsyou/zero2prod written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Towardsyou/zero2prod on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Towardsyou/zero2prod 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eb873750655a467f072025bd9e99098da3d7a39ef2eadad5d5e5ce91e537007d [INFO] running `Command { std: "docker" "start" "-a" "eb873750655a467f072025bd9e99098da3d7a39ef2eadad5d5e5ce91e537007d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb873750655a467f072025bd9e99098da3d7a39ef2eadad5d5e5ce91e537007d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb873750655a467f072025bd9e99098da3d7a39ef2eadad5d5e5ce91e537007d", kill_on_drop: false }` [INFO] [stdout] eb873750655a467f072025bd9e99098da3d7a39ef2eadad5d5e5ce91e537007d [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 264a1da0ef35cd44eb99b37b8f48eb019927317b9163bafd1b9cab3b0df8d790 [INFO] running `Command { std: "docker" "start" "-a" "264a1da0ef35cd44eb99b37b8f48eb019927317b9163bafd1b9cab3b0df8d790", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling once_cell v1.20.1 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling rustls-pki-types v1.9.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling rustls v0.23.13 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling cc v1.1.22 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling webpki-roots v0.26.6 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling brotli-decompressor v4.0.1 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling brotli v6.0.0 [INFO] [stderr] Compiling base64 v0.20.0 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling rustls-pemfile v2.1.3 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling impl-more v0.1.6 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling nom v5.1.3 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling publicsuffix v2.2.3 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [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 futures-macro v0.3.30 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tempfile v3.13.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling csv-core v0.1.11 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling claim v0.5.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling serde v0.8.23 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling actix-web-lab-derive v0.22.0 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling gethostname v0.2.3 [INFO] [stderr] Compiling tracing-log v0.1.4 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling ipnet v2.10.0 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling mutually_exclusive_features v0.1.0 [INFO] [stderr] Compiling mediatype v0.19.18 [INFO] [stderr] Compiling rust-ini v0.13.0 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling serde-hjson v0.9.1 [INFO] [stderr] Compiling argon2 v0.5.3 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling htmlescape v0.3.1 [INFO] [stderr] Compiling derive_more v1.0.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling serde_html_form v0.2.6 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling csv v1.3.0 [INFO] [stderr] Compiling sqlx-core v0.8.2 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling secrecy v0.8.0 [INFO] [stderr] Compiling cookie_store v0.21.0 [INFO] [stderr] Compiling validator v0.18.1 [INFO] [stderr] Compiling serde-aux v3.1.0 [INFO] [stderr] Compiling tracing-bunyan-formatter v0.3.9 [INFO] [stderr] Compiling config v0.11.0 [INFO] [stderr] Compiling sqlx-postgres v0.8.2 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling tokio-retry v0.3.0 [INFO] [stderr] Compiling tokio-rustls v0.26.0 [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling hyper-util v0.1.9 [INFO] [stderr] Compiling hyper-rustls v0.27.3 [INFO] [stderr] Compiling reqwest v0.12.7 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling redis v0.26.1 [INFO] [stderr] Compiling sqlx v0.8.2 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stderr] Compiling actix-web-lab v0.22.0 [INFO] [stderr] Compiling tracing-actix-web v0.7.13 [INFO] [stderr] Compiling actix-web-flash-messages v0.5.0 [INFO] [stderr] Compiling actix-session v0.10.1 [INFO] [stderr] Compiling zero2prod v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/authentication/password.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 67 | let row = sqlx::query!( [INFO] [stdout] | _______________^ [INFO] [stdout] 68 | | "select user_id, password_hash from users where username = $1", [INFO] [stdout] 69 | | username [INFO] [stdout] 70 | | ) [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] --> src/authentication/password.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | / sqlx::query!( [INFO] [stdout] 90 | | "UPDATE users SET password_hash = $1 WHERE user_id = $2", [INFO] [stdout] 91 | | password_hash.expose_secret(), [INFO] [stdout] 92 | | user_id [INFO] [stdout] 93 | | ) [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] --> src/idempotency/persistence.rs:19:27 [INFO] [stdout] | [INFO] [stdout] 19 | let n_inserted_rows = sqlx::query!( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 20 | | r#"INSERT INTO idempotency (user_id, idempotency_key, created_at) [INFO] [stdout] 21 | | VALUES ($1, $2, NOW()) [INFO] [stdout] 22 | | ON CONFLICT DO NOTHING"#, [INFO] [stdout] 23 | | user_id, [INFO] [stdout] 24 | | idempotency_key.as_ref() [INFO] [stdout] 25 | | ) [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] --> src/idempotency/persistence.rs:51:26 [INFO] [stdout] | [INFO] [stdout] 51 | let saved_response = sqlx::query!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 52 | | r#" [INFO] [stdout] 53 | | SELECT [INFO] [stdout] 54 | | response_status_code as "response_status_code!", [INFO] [stdout] ... | [INFO] [stdout] 63 | | idempotency_key.as_ref() [INFO] [stdout] 64 | | ) [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] --> src/idempotency/persistence.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | / sqlx::query_unchecked!( [INFO] [stdout] 102 | | r#"UPDATE idempotency [INFO] [stdout] 103 | | SET [INFO] [stdout] 104 | | response_status_code = $3, [INFO] [stdout] ... | [INFO] [stdout] 115 | | body.as_ref(), [INFO] [stdout] 116 | | ) [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_unchecked` (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] --> src/routes/admin/dashboard.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | let row = sqlx::query!("select username from users where user_id = $1", user_id) [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] --> src/routes/admin/newsletters/post.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | / sqlx::query!( [INFO] [stdout] 77 | | r#" [INFO] [stdout] 78 | | INSERT INTO newsletter_issues ( [INFO] [stdout] 79 | | newsletter_issue_id, [INFO] [stdout] ... | [INFO] [stdout] 90 | | html_content [INFO] [stdout] 91 | | ) [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] --> src/routes/admin/newsletters/post.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | / sqlx::query!( [INFO] [stdout] 103 | | r#"INSERT INTO issue_delivery_queue ( [INFO] [stdout] 104 | | newsletter_issue_id, [INFO] [stdout] 105 | | subscriber_email [INFO] [stdout] ... | [INFO] [stdout] 110 | | newsletter_issue_id [INFO] [stdout] 111 | | ) [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] --> src/routes/subscription.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | / sqlx::query!( [INFO] [stdout] 109 | | r#" [INFO] [stdout] 110 | | INSERT INTO subscriptions (id, email, name, subscribed_at, status) [INFO] [stdout] 111 | | VALUES ($1, $2, $3, $4, 'pending') [INFO] [stdout] ... | [INFO] [stdout] 116 | | Utc::now() [INFO] [stdout] 117 | | ) [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] --> src/routes/subscription.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | / sqlx::query!( [INFO] [stdout] 164 | | r#"INSERT INTO subscription_tokens (subscription_token, subscriber_id) VALUES ($1, $2)"#, [INFO] [stdout] 165 | | subscription_token, [INFO] [stdout] 166 | | subscriber_id [INFO] [stdout] 167 | | ) [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] --> src/routes/subscription_confirm.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 34 | | r#"SELECT subscriber_id from subscription_tokens where subscription_token = $1"#, [INFO] [stdout] 35 | | subscription_token [INFO] [stdout] 36 | | ) [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] --> src/routes/subscription_confirm.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | / sqlx::query!( [INFO] [stdout] 45 | | r#"UPDATE subscriptions SET status='confirmed' WHERE id = $1"#, [INFO] [stdout] 46 | | subscriber_id [INFO] [stdout] 47 | | ) [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] --> src/issue_delivery_worker.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 17 | | r#" [INFO] [stdout] 18 | | SELECT newsletter_issue_id, subscriber_email [INFO] [stdout] 19 | | FROM issue_delivery_queue [INFO] [stdout] ... | [INFO] [stdout] 23 | | "#, [INFO] [stdout] 24 | | ) [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] --> src/issue_delivery_worker.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | / sqlx::query!( [INFO] [stdout] 44 | | r#" [INFO] [stdout] 45 | | DELETE FROM issue_delivery_queue [INFO] [stdout] 46 | | WHERE [INFO] [stdout] ... | [INFO] [stdout] 51 | | email [INFO] [stdout] 52 | | ) [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] --> src/issue_delivery_worker.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | let issue = sqlx::query_as!( [INFO] [stdout] | _________________^ [INFO] [stdout] 68 | | NewsletterIssue, [INFO] [stdout] 69 | | r#" [INFO] [stdout] 70 | | SELECT title, text_content, html_content [INFO] [stdout] ... | [INFO] [stdout] 75 | | issue_id [INFO] [stdout] 76 | | ) [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 import: `chrono::Utc` [INFO] [stdout] --> src/routes/subscription.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `zero2prod` (lib) due to 15 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "264a1da0ef35cd44eb99b37b8f48eb019927317b9163bafd1b9cab3b0df8d790", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "264a1da0ef35cd44eb99b37b8f48eb019927317b9163bafd1b9cab3b0df8d790", kill_on_drop: false }` [INFO] [stdout] 264a1da0ef35cd44eb99b37b8f48eb019927317b9163bafd1b9cab3b0df8d790