[INFO] cloning repository https://github.com/yifaaan/ezytutors [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yifaaan/ezytutors" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyifaaan%2Fezytutors", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyifaaan%2Fezytutors'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f744f6b738b32cbe720796c407a4f429c0260a56 [INFO] checking yifaaan/ezytutors against try#2b39fe756f52bc2825bf5b2bfc385cab922dae10 for pr-143011 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyifaaan%2Fezytutors" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/yifaaan/ezytutors [INFO] finished tweaking git repo https://github.com/yifaaan/ezytutors [INFO] tweaked toml for git repo https://github.com/yifaaan/ezytutors written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yifaaan/ezytutors on toolchain 2b39fe756f52bc2825bf5b2bfc385cab922dae10 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/yifaaan/ezytutors 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" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-4-tc2/source/tutor-web-app-ssr/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `sqlx` dependency) [INFO] [stderr] warning: /workspace/builds/worker-4-tc2/source/tutor-web-service/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `sqlx` dependency) [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust-argon2 v2.1.0 [INFO] [stderr] Downloaded openssl-src v300.3.2+3.3.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8100603158fe6122fda2827b062644291d0b57d0cb45de236b2ca8ea9d4e4dcc [INFO] running `Command { std: "docker" "start" "-a" "8100603158fe6122fda2827b062644291d0b57d0cb45de236b2ca8ea9d4e4dcc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8100603158fe6122fda2827b062644291d0b57d0cb45de236b2ca8ea9d4e4dcc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8100603158fe6122fda2827b062644291d0b57d0cb45de236b2ca8ea9d4e4dcc", kill_on_drop: false }` [INFO] [stdout] 8100603158fe6122fda2827b062644291d0b57d0cb45de236b2ca8ea9d4e4dcc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8463a0d97e202bb6448af68d8a1eea1ecb3273514b1c65170f2b712ad6236572 [INFO] running `Command { std: "docker" "start" "-a" "8463a0d97e202bb6448af68d8a1eea1ecb3273514b1c65170f2b712ad6236572", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/tutor-web-service/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `sqlx` dependency) [INFO] [stderr] warning: /opt/rustwide/workdir/tutor-web-app-ssr/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `sqlx` dependency) [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling cc v1.1.15 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking brotli-decompressor v4.0.1 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Checking bytestring v1.3.1 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking flate2 v1.0.33 [INFO] [stderr] Checking brotli v6.0.0 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling openssl-src v300.3.2+3.3.2 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Checking impl-more v0.1.6 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling tinyvec v1.8.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 thiserror-impl v1.0.63 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Checking actix-server v2.5.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling unicode-properties v0.1.2 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling pest v2.7.13 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking bstr v1.10.0 [INFO] [stderr] Compiling sqlx-core v0.8.2 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking globset v0.4.15 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling v_htmlescape v0.15.8 [INFO] [stderr] Checking actix-http v3.9.0 [INFO] [stderr] Compiling pest_meta v2.7.13 [INFO] [stderr] Checking ignore v0.4.23 [INFO] [stderr] Checking unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling pest_generator v2.7.13 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling sqlx-postgres v0.8.2 [INFO] [stderr] Checking deunicode v1.6.0 [INFO] [stderr] Compiling pest_derive v2.7.13 [INFO] [stderr] Checking slug v0.1.6 [INFO] [stderr] Checking blake2b_simd v1.0.2 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Checking actix-tls v3.4.0 [INFO] [stderr] Checking actix-web v4.9.0 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Checking unic-segment v0.9.0 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Checking globwalk v0.9.1 [INFO] [stderr] Checking http-range v0.1.5 [INFO] [stderr] Checking rust-argon2 v2.1.0 [INFO] [stderr] Checking awc v3.5.1 [INFO] [stderr] Checking ezytutors v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Checking actix-files v0.6.6 [INFO] [stderr] Checking tutor_nodb v0.1.0 (/opt/rustwide/workdir/tutor-nodb) [INFO] [stdout] warning: unused import: `App` [INFO] [stdout] --> tutor-nodb/src/bin/../handlers.rs:82:39 [INFO] [stdout] | [INFO] [stdout] 82 | use actix_web::{http::StatusCode, App}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Checking tera v1.20.0 [INFO] [stderr] Checking sqlx v0.8.2 [INFO] [stderr] Checking tutor-web-app-ssr v0.1.0 (/opt/rustwide/workdir/tutor-web-app-ssr) [INFO] [stderr] Checking tutor-web-service v0.1.0 (/opt/rustwide/workdir/tutor-web-service) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> tutor-web-service/src/bin/../iter5/dbaccess/course.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | let course_rows = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 12 | | Course, [INFO] [stdout] 13 | | "SELECT * FROM ezy_course_c6 where tutor_id = $1", [INFO] [stdout] 14 | | tutor_id [INFO] [stdout] 15 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/course.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | let course_row = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 27 | | Course, [INFO] [stdout] 28 | | "SELECT * FROM ezy_course_c6 WHERE tutor_id = $1 and course_id = $2", [INFO] [stdout] 29 | | tutor_id, [INFO] [stdout] 30 | | course_id [INFO] [stdout] 31 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/course.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | let course_row = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 46 | | Course, [INFO] [stdout] 47 | | "insert into ezy_course_c6 ( [INFO] [stdout] 48 | | tutor_id, course_name, course_description,course_duration, [INFO] [stdout] ... | [INFO] [stdout] 64 | | new_course.course_price [INFO] [stdout] 65 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/course.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 77 | let course_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 78 | | "DELETE FROM ezy_course_c6 where tutor_id = $1 and course_id = $2", [INFO] [stdout] 79 | | tutor_id, [INFO] [stdout] 80 | | course_id [INFO] [stdout] 81 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/course.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | let course_rows = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 12 | | Course, [INFO] [stdout] 13 | | "SELECT * FROM ezy_course_c6 where tutor_id = $1", [INFO] [stdout] 14 | | tutor_id [INFO] [stdout] 15 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/course.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | let course_row = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 27 | | Course, [INFO] [stdout] 28 | | "SELECT * FROM ezy_course_c6 WHERE tutor_id = $1 and course_id = $2", [INFO] [stdout] 29 | | tutor_id, [INFO] [stdout] 30 | | course_id [INFO] [stdout] 31 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/course.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | let course_row = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 46 | | Course, [INFO] [stdout] 47 | | "insert into ezy_course_c6 ( [INFO] [stdout] 48 | | tutor_id, course_name, course_description,course_duration, [INFO] [stdout] ... | [INFO] [stdout] 64 | | new_course.course_price [INFO] [stdout] 65 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/course.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | let current_course_row = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 94 | | Course, [INFO] [stdout] 95 | | "SELECT * FROM ezy_course_c6 where tutor_id = $1 and course_id = $2", [INFO] [stdout] 96 | | tutor_id, [INFO] [stdout] 97 | | course_id [INFO] [stdout] 98 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/course.rs:144:22 [INFO] [stdout] | [INFO] [stdout] 144 | let course_row = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 145 | | Course, [INFO] [stdout] 146 | | "UPDATE ezy_course_c6 set course_name = $1, [INFO] [stdout] 147 | | course_description = $2, course_format = $3, [INFO] [stdout] ... | [INFO] [stdout] 165 | | course_id [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] --> tutor-web-service/src/bin/../iter5/dbaccess/tutor.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | let tutor_rows = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 10 | | "SELECT tutor_id, tutor_name, tutor_pic_url, [INFO] [stdout] 11 | | tutor_profile FROM ezy_tutor_c6" [INFO] [stdout] 12 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/tutor.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | let tutor_row = sqlx::query!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 33 | | "SELECT tutor_id, tutor_name, tutor_pic_url, tutor_profile FROM ezy_tutor_c6 where tutor_id = $1", [INFO] [stdout] 34 | | tutor_id [INFO] [stdout] 35 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/tutor.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | let tutor_row = sqlx::query!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 54 | | "SELECT tutor_id, tutor_name, tutor_pic_url, tutor_profile FROM ezy_tutor_c6 where tutor_id = $1", tutor_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] --> tutor-web-service/src/bin/../iter5/dbaccess/tutor.rs:78:29 [INFO] [stdout] | [INFO] [stdout] 78 | let tutor_updated_row = sqlx::query!( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 79 | | "UPDATE ezy_tutor_c6 SET tutor_name = $1, tutor_pic_url=$2, tutor_profile=$3 where tutor_id = $4 returning tutor_id, tutor_name, ... [INFO] [stdout] 80 | | new_tutor_record.tutor_name, new_tutor_record.tutor_pic_url, new_tutor_record.tutor_profile, tutor_id [INFO] [stdout] 81 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/tutor.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | ... = sqlx::query!("insert into ezy_tutor_c6 (tutor_name, tutor_pic_url, tutor_profile) values ($1,$2,$3) returning tutor_id, tutor_name, tutor_pic_url, tutor_profile", new_tutor.tutor_name, new_tutor.tutor_pic_url, new_tutor.tutor_profile) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/course.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 77 | let course_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 78 | | "DELETE FROM ezy_course_c6 where tutor_id = $1 and course_id = $2", [INFO] [stdout] 79 | | tutor_id, [INFO] [stdout] 80 | | course_id [INFO] [stdout] 81 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/course.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | let current_course_row = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 94 | | Course, [INFO] [stdout] 95 | | "SELECT * FROM ezy_course_c6 where tutor_id = $1 and course_id = $2", [INFO] [stdout] 96 | | tutor_id, [INFO] [stdout] 97 | | course_id [INFO] [stdout] 98 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/course.rs:144:22 [INFO] [stdout] | [INFO] [stdout] 144 | let course_row = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 145 | | Course, [INFO] [stdout] 146 | | "UPDATE ezy_course_c6 set course_name = $1, [INFO] [stdout] 147 | | course_description = $2, course_format = $3, [INFO] [stdout] ... | [INFO] [stdout] 165 | | course_id [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] --> tutor-web-service/src/bin/../iter5/dbaccess/tutor.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | let tutor_rows = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 10 | | "SELECT tutor_id, tutor_name, tutor_pic_url, [INFO] [stdout] 11 | | tutor_profile FROM ezy_tutor_c6" [INFO] [stdout] 12 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/tutor.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | let tutor_row = sqlx::query!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 33 | | "SELECT tutor_id, tutor_name, tutor_pic_url, tutor_profile FROM ezy_tutor_c6 where tutor_id = $1", [INFO] [stdout] 34 | | tutor_id [INFO] [stdout] 35 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/tutor.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | let tutor_row = sqlx::query!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 54 | | "SELECT tutor_id, tutor_name, tutor_pic_url, tutor_profile FROM ezy_tutor_c6 where tutor_id = $1", tutor_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] --> tutor-web-service/src/bin/../iter5/dbaccess/tutor.rs:78:29 [INFO] [stdout] | [INFO] [stdout] 78 | let tutor_updated_row = sqlx::query!( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 79 | | "UPDATE ezy_tutor_c6 SET tutor_name = $1, tutor_pic_url=$2, tutor_profile=$3 where tutor_id = $4 returning tutor_id, tutor_name, ... [INFO] [stdout] 80 | | new_tutor_record.tutor_name, new_tutor_record.tutor_pic_url, new_tutor_record.tutor_profile, tutor_id [INFO] [stdout] 81 | | ) [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] --> tutor-web-service/src/bin/../iter5/dbaccess/tutor.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | ... = sqlx::query!("insert into ezy_tutor_c6 (tutor_name, tutor_pic_url, tutor_profile) values ($1,$2,$3) returning tutor_id, tutor_name, tutor_pic_url, tutor_profile", new_tutor.tutor_name, new_tutor.tutor_pic_url, new_tutor.tutor_profile) [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] --> tutor-web-service/src/bin/../iter3/db_access.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | let course_rows = sqlx::query!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 6 | | "SELECT tutor_id, course_id, course_name, posted_time FROM ezy_course_c4 where tutor_id = $1", tutor_id [INFO] [stdout] 7 | | ).fetch_all(pool).await.unwrap(); [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] --> tutor-web-service/src/bin/../iter3/db_access.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | let course_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 22 | | "SELECT tutor_id, course_id, course_name, posted_time FROM ezy_course_c4 WHERE tutor_id = $1 and course_id = $2", tutor_id, cours... [INFO] [stdout] 23 | | ).fetch_one(pool).await.unwrap(); [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] --> tutor-web-service/src/bin/../iter3/db_access.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | let course_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 35 | | "INSERT INTO ezy_course_c4 [INFO] [stdout] 36 | | (course_id, tutor_id, course_name) [INFO] [stdout] 37 | | VALUES ($1, $2, $3) [INFO] [stdout] ... | [INFO] [stdout] 41 | | new_course.course_name [INFO] [stdout] 42 | | ) [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 imports: `Error`, `HttpResponse`, `Result`, `error`, and `web` [INFO] [stdout] --> tutor-web-app-ssr/src/bin/static.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use actix_web::{error, web, App, Error, HttpResponse, HttpServer, Result}; [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] --> tutor-web-app-ssr/src/bin/../iter5/dbaccess.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | let user_row = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 7 | | User, [INFO] [stdout] 8 | | "SELECT * FROM ezyweb_user where username = $1", [INFO] [stdout] 9 | | username [INFO] [stdout] 10 | | ) [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] --> tutor-web-app-ssr/src/bin/../iter5/dbaccess.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | let user_row = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 23 | | User, [INFO] [stdout] 24 | | "INSERT INTO ezyweb_user [INFO] [stdout] 25 | | (username, tutor_id, user_password) [INFO] [stdout] ... | [INFO] [stdout] 30 | | new_user.user_password [INFO] [stdout] 31 | | ) [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: `dbaccess`, `errors`, and `model` [INFO] [stdout] --> tutor-web-app-ssr/src/bin/iter5-ssr.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use iter5::{dbaccess, errors, handler, model, routes, state::AppState}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Course` in this scope [INFO] [stdout] --> tutor-web-service/src/bin/../iter5/handlers/course.rs:108:30 [INFO] [stdout] | [INFO] [stdout] 108 | let new_course_msg = Course { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 60 + use crate::models::course::Course; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db` is never read [INFO] [stdout] --> tutor-web-service/src/bin/../iter2/state.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct AppState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub db: PgPool, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> tutor-web-app-ssr/src/bin/../iter5/dbaccess.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | let user_row = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 7 | | User, [INFO] [stdout] 8 | | "SELECT * FROM ezyweb_user where username = $1", [INFO] [stdout] 9 | | username [INFO] [stdout] 10 | | ) [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] --> tutor-web-app-ssr/src/bin/../iter5/dbaccess.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | let user_row = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 23 | | User, [INFO] [stdout] 24 | | "INSERT INTO ezyweb_user [INFO] [stdout] 25 | | (username, tutor_id, user_password) [INFO] [stdout] ... | [INFO] [stdout] 30 | | new_user.user_password [INFO] [stdout] 31 | | ) [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: `Error`, `HttpResponse`, `Result`, `error`, and `web` [INFO] [stdout] --> tutor-web-app-ssr/src/bin/static.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use actix_web::{error, web, App, Error, HttpResponse, HttpServer, Result}; [INFO] [stdout] | ^^^^^ ^^^ ^^^^^ ^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `dbaccess`, `errors`, and `model` [INFO] [stdout] --> tutor-web-app-ssr/src/bin/iter5-ssr.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use iter5::{dbaccess, errors, handler, model, routes, state::AppState}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tutor-web-service` (bin "iter3" test) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `db` is never read [INFO] [stdout] --> tutor-web-service/src/bin/../iter2/state.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct AppState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub db: PgPool, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tutor-web-app-ssr` (bin "iter5-ssr") due to 2 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `tutor-web-service` (bin "iter5" test) due to 12 previous errors [INFO] [stderr] error: could not compile `tutor-web-service` (bin "iter5") due to 11 previous errors [INFO] [stderr] error: could not compile `tutor-web-app-ssr` (bin "iter5-ssr" test) due to 2 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "8463a0d97e202bb6448af68d8a1eea1ecb3273514b1c65170f2b712ad6236572", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8463a0d97e202bb6448af68d8a1eea1ecb3273514b1c65170f2b712ad6236572", kill_on_drop: false }` [INFO] [stdout] 8463a0d97e202bb6448af68d8a1eea1ecb3273514b1c65170f2b712ad6236572