[INFO] cloning repository https://github.com/supergoat/zero2prod [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/supergoat/zero2prod" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsupergoat%2Fzero2prod", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsupergoat%2Fzero2prod'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eba66ebc2f5bdafa4978ff170546870bb848522e [INFO] checking supergoat/zero2prod/eba66ebc2f5bdafa4978ff170546870bb848522e against master#a932eb36f8adf6c8cdfc450f063943da3112d621 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsupergoat%2Fzero2prod" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/supergoat/zero2prod on toolchain a932eb36f8adf6c8cdfc450f063943da3112d621 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/supergoat/zero2prod [INFO] finished tweaking git repo https://github.com/supergoat/zero2prod [INFO] tweaked toml for git repo https://github.com/supergoat/zero2prod written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/supergoat/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" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wiremock v0.6.0 [INFO] [stderr] Downloaded validator v0.17.0 [INFO] [stderr] Downloaded mirai-annotations v1.12.0 [INFO] [stderr] Downloaded tracing-actix-web v0.7.10 [INFO] [stderr] Downloaded rustls-pki-types v1.5.0 [INFO] [stderr] Downloaded linkify v0.10.0 [INFO] [stderr] Downloaded claims v0.7.1 [INFO] [stderr] Downloaded serde-aux v4.5.0 [INFO] [stderr] Downloaded prettyplease v0.2.19 [INFO] [stderr] Downloaded aws-lc-rs v1.7.0 [INFO] [stderr] Downloaded flate2 v1.0.29 [INFO] [stderr] Downloaded winnow v0.6.7 [INFO] [stderr] Downloaded rustls-webpki v0.102.3 [INFO] [stderr] Downloaded rustls v0.23.5 [INFO] [stderr] Downloaded aws-lc-sys v0.15.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 77f129d65945d3ea900bff09cb6dc9bb6eb686d5396fafb8bc00c097fae0adef [INFO] running `Command { std: "docker" "start" "-a" "77f129d65945d3ea900bff09cb6dc9bb6eb686d5396fafb8bc00c097fae0adef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "77f129d65945d3ea900bff09cb6dc9bb6eb686d5396fafb8bc00c097fae0adef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77f129d65945d3ea900bff09cb6dc9bb6eb686d5396fafb8bc00c097fae0adef", kill_on_drop: false }` [INFO] [stdout] 77f129d65945d3ea900bff09cb6dc9bb6eb686d5396fafb8bc00c097fae0adef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 985d08855f53b9329169d716c1e6314f8f38c7c1af6535b0e3255819e9407dd6 [INFO] running `Command { std: "docker" "start" "-a" "985d08855f53b9329169d716c1e6314f8f38c7c1af6535b0e3255819e9407dd6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling serde v1.0.199 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Compiling cc v1.0.95 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling thiserror v1.0.59 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling dunce v1.0.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling zerocopy v0.7.32 [INFO] [stderr] Compiling aws-lc-rs v1.7.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling aws-lc-sys v0.15.0 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Compiling zstd-sys v2.0.10+zstd.1.5.6 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Checking rustls-pki-types v1.5.0 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Checking zeroize v1.7.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Checking mirai-annotations v1.12.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.199 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling thiserror-impl v1.0.59 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Checking h2 v0.4.4 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling pest v2.7.9 [INFO] [stderr] Compiling sqlformat v0.2.3 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling uuid v1.8.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling zstd-safe v7.1.0 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking hyper v1.3.1 [INFO] [stderr] Compiling pest_meta v2.7.9 [INFO] [stderr] Checking actix-rt v2.9.0 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling fastrand v2.0.2 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling actix-router v0.5.2 [INFO] [stderr] Compiling pest_generator v2.7.9 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking flate2 v1.0.29 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Checking zstd v0.13.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking winnow v0.6.7 [INFO] [stderr] Checking ordered-multimap v0.6.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling pest_derive v2.7.9 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Compiling actix-web-codegen v4.2.2 [INFO] [stderr] Checking cookie v0.16.2 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Checking actix-server v2.3.0 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking toml_edit v0.22.12 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking base64 v0.22.0 [INFO] [stderr] Compiling rustls v0.23.5 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking actix-http v3.6.0 [INFO] [stderr] Checking rustls-pemfile v2.1.2 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rust-ini v0.19.0 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking webpki-roots v0.26.1 [INFO] [stderr] Checking toml v0.8.12 [INFO] [stderr] Checking tracing-log v0.1.4 [INFO] [stderr] Checking gethostname v0.2.3 [INFO] [stderr] Checking pathdiff v0.2.1 [INFO] [stderr] Checking mutually_exclusive_features v0.0.3 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking tracing-bunyan-formatter v0.3.9 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking config v0.14.0 [INFO] [stderr] Checking serde-aux v4.5.0 [INFO] [stderr] Checking validator v0.17.0 [INFO] [stderr] Checking secrecy v0.8.0 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Compiling claims v0.7.1 [INFO] [stderr] Checking deadpool-runtime v0.1.3 [INFO] [stderr] Checking deadpool v0.10.0 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Compiling quickcheck_macros v0.9.1 [INFO] [stderr] Checking linkify v0.10.0 [INFO] [stderr] Checking wiremock v0.6.0 [INFO] [stderr] Checking fake v2.3.0 [INFO] [stderr] Checking quickcheck v0.9.2 [INFO] [stderr] Checking actix-web v4.5.1 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking tracing-actix-web v0.7.10 [INFO] [stderr] Checking rustls-webpki v0.102.3 [INFO] [stderr] Checking tokio-rustls v0.25.0 [INFO] [stderr] Checking hyper-rustls v0.26.0 [INFO] [stderr] Checking reqwest v0.12.4 [INFO] [stderr] Checking zero2prod v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/routes/subscriptions.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | let query = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 129 | | r#"INSERT INTO subscription_tokens (subscription_token, subscriber_id) [INFO] [stdout] 130 | | VALUES ($1, $2)"#, [INFO] [stdout] 131 | | subscription_token, [INFO] [stdout] 132 | | subscriber_id [INFO] [stdout] 133 | | ); [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/subscriptions.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | let query = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 161 | | r#" [INFO] [stdout] 162 | | INSERT INTO subscriptions (id, email, name, subscribed_at, status) [INFO] [stdout] 163 | | VALUES ($1, $2, $3, $4, 'pending_confirmation') [INFO] [stdout] ... | [INFO] [stdout] 168 | | Utc::now() [INFO] [stdout] 169 | | ); [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/subscriptions_confirm.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / sqlx::query!( [INFO] [stdout] 31 | | r#"UPDATE subscriptions SET status = 'confirmed' WHERE id = $1"#, [INFO] [stdout] 32 | | subscriber_id, [INFO] [stdout] 33 | | ) [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/subscriptions_confirm.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 48 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 49 | | "SELECT subscriber_id FROM subscription_tokens \ [INFO] [stdout] 50 | | WHERE subscription_token = $1", [INFO] [stdout] 51 | | subscription_token, [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] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/routes/subscriptions.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/routes/subscriptions.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | let query = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 129 | | r#"INSERT INTO subscription_tokens (subscription_token, subscriber_id) [INFO] [stdout] 130 | | VALUES ($1, $2)"#, [INFO] [stdout] 131 | | subscription_token, [INFO] [stdout] 132 | | subscriber_id [INFO] [stdout] 133 | | ); [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/subscriptions.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | let query = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 161 | | r#" [INFO] [stdout] 162 | | INSERT INTO subscriptions (id, email, name, subscribed_at, status) [INFO] [stdout] 163 | | VALUES ($1, $2, $3, $4, 'pending_confirmation') [INFO] [stdout] ... | [INFO] [stdout] 168 | | Utc::now() [INFO] [stdout] 169 | | ); [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/subscriptions_confirm.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / sqlx::query!( [INFO] [stdout] 31 | | r#"UPDATE subscriptions SET status = 'confirmed' WHERE id = $1"#, [INFO] [stdout] 32 | | subscriber_id, [INFO] [stdout] 33 | | ) [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/subscriptions_confirm.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 48 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 49 | | "SELECT subscriber_id FROM subscription_tokens \ [INFO] [stdout] 50 | | WHERE subscription_token = $1", [INFO] [stdout] 51 | | subscription_token, [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] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/routes/subscriptions.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `zero2prod` (lib) due to 4 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `zero2prod` (lib test) due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "985d08855f53b9329169d716c1e6314f8f38c7c1af6535b0e3255819e9407dd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "985d08855f53b9329169d716c1e6314f8f38c7c1af6535b0e3255819e9407dd6", kill_on_drop: false }` [INFO] [stdout] 985d08855f53b9329169d716c1e6314f8f38c7c1af6535b0e3255819e9407dd6