[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/f744f6b738b32cbe720796c407a4f429c0260a56 against master#2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48 for pr-142723 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyifaaan%2Fezytutors" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yifaaan/ezytutors on toolchain 2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-tc1/source/Cargo.toml [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" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-4-tc1/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] warning: /workspace/builds/worker-4-tc1/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] Downloading crates ... [INFO] [stderr] Downloaded awc v3.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6aef2b1e4bb710e2e325e2ece0fff6a2ab0b44a4c8715d1662027eae111dc7b8 [INFO] running `Command { std: "docker" "start" "-a" "6aef2b1e4bb710e2e325e2ece0fff6a2ab0b44a4c8715d1662027eae111dc7b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6aef2b1e4bb710e2e325e2ece0fff6a2ab0b44a4c8715d1662027eae111dc7b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6aef2b1e4bb710e2e325e2ece0fff6a2ab0b44a4c8715d1662027eae111dc7b8", kill_on_drop: false }` [INFO] [stdout] 6aef2b1e4bb710e2e325e2ece0fff6a2ab0b44a4c8715d1662027eae111dc7b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa0d6db81433e3892770d580abdc41ea487ff5966eb3d087a45f3bda4d7be7fa [INFO] running `Command { std: "docker" "start" "-a" "aa0d6db81433e3892770d580abdc41ea487ff5966eb3d087a45f3bda4d7be7fa", 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 proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking cpufeatures v0.2.13 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling cc v1.1.15 [INFO] [stderr] Checking unicode-normalization v0.1.23 [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 iana-time-zone v0.1.60 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking brotli-decompressor v4.0.1 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking bytestring v1.3.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling openssl-src v300.3.2+3.3.2 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Checking flate2 v1.0.33 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking brotli v6.0.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking language-tags v0.3.2 [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] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling unicode-properties v0.1.2 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [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 dotenvy v0.15.7 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking bstr v1.10.0 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Compiling v_htmlescape v0.15.8 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking globset v0.4.15 [INFO] [stderr] Checking unic-ucd-segment v0.9.0 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Checking deunicode v1.6.0 [INFO] [stderr] Checking ignore v0.4.23 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking blake2b_simd v1.0.2 [INFO] [stderr] Checking slug v0.1.6 [INFO] [stderr] Checking unic-segment v0.9.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] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Checking globwalk v0.9.1 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Checking http-range v0.1.5 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking rust-argon2 v2.1.0 [INFO] [stderr] Checking ezytutors v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling pest v2.7.13 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling pest_meta v2.7.13 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Compiling pest_generator v2.7.13 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Compiling pest_derive v2.7.13 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking actix-router v0.5.3 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling sqlx-core v0.8.2 [INFO] [stderr] Checking tera v1.20.0 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Compiling sqlx-postgres v0.8.2 [INFO] [stderr] Checking actix-server v2.5.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking actix-tls v3.4.0 [INFO] [stderr] Checking actix-http v3.9.0 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Checking actix-web v4.9.0 [INFO] [stderr] Checking awc v3.5.1 [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] 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/iter1.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | let course_rows = sqlx::query!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 22 | | "SELECT course_id, tutor_id, course_name, posted_time FROM ezy_course_c4 WHERE course_id = $1", 1 [INFO] [stdout] 23 | | ).fetch_all(&db_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: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] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> tutor-web-app-ssr/src/bin/../iter6/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/../iter6/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] 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] 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] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> tutor-web-service/src/bin/../iter4/db_access.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | let course_rows = sqlx::query!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 10 | | "SELECT tutor_id, course_id, course_name, posted_time FROM ezy_course_c4 where tutor_id = $1", tutor_id [INFO] [stdout] 11 | | ).fetch_all(pool).await?; [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/../iter4/db_access.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | let course_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 35 | | "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] 36 | | ).fetch_one(pool).await; [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/../iter4/db_access.rs:54:22 [INFO] [stdout] | [INFO] [stdout] 54 | let course_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 55 | | "INSERT INTO ezy_course_c4 [INFO] [stdout] 56 | | (course_id, tutor_id, course_name) [INFO] [stdout] 57 | | VALUES ($1, $2, $3) [INFO] [stdout] ... | [INFO] [stdout] 61 | | new_course.course_name [INFO] [stdout] 62 | | ) [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/iter1.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | let course_rows = sqlx::query!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 22 | | "SELECT course_id, tutor_id, course_name, posted_time FROM ezy_course_c4 WHERE course_id = $1", 1 [INFO] [stdout] 23 | | ).fetch_all(&db_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] [stderr] error: could not compile `tutor-web-service` (bin "iter1") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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: 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: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] warning: unused imports: `TutorRegisterForm`, `TutorResponse`, and `User` [INFO] [stdout] --> tutor-web-app-ssr/src/bin/../iter6/handler/auth.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | model::{TutorRegisterForm, TutorResponse, TutorSigninForm, User}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppState`, `dbaccess`, `errors`, and `handler` [INFO] [stdout] --> tutor-web-app-ssr/src/bin/iter6-ssr.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | dbaccess, errors, handler, model, [INFO] [stdout] | ^^^^^^^^ ^^^^^^ ^^^^^^^ [INFO] [stdout] 11 | routes::{self, course_config}, [INFO] [stdout] 12 | state::{self, AppState}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tutor-web-service` (bin "iter1" test) due to 1 previous error [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: `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[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] 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] [stderr] error: could not compile `tutor-web-service` (bin "iter3") due to 3 previous errors [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] warning: unused variable: `msg` [INFO] [stdout] --> tutor-web-service/src/bin/../iter4/errors.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | Self::DBError(msg) | Self::ActixError(msg) => StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 41 | Self::DBError(_msg) | Self::ActixError(_msg) => StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> tutor-web-service/src/bin/../iter4/errors.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | Self::NotFound(msg) => StatusCode::NOT_FOUND, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tutor-web-service` (bin "iter3" test) due to 3 previous errors [INFO] [stderr] error: could not compile `tutor-web-service` (bin "iter4") due to 3 previous errors; 2 warnings emitted [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-app-ssr` (bin "iter5-ssr" test) due to 2 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `tutor-web-app-ssr` (bin "iter6-ssr" test) due to 2 previous errors; 2 warnings emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tutor-web-service` (bin "iter5" test) due to 12 previous errors [INFO] running `Command { std: "docker" "inspect" "aa0d6db81433e3892770d580abdc41ea487ff5966eb3d087a45f3bda4d7be7fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa0d6db81433e3892770d580abdc41ea487ff5966eb3d087a45f3bda4d7be7fa", kill_on_drop: false }` [INFO] [stdout] aa0d6db81433e3892770d580abdc41ea487ff5966eb3d087a45f3bda4d7be7fa