[INFO] cloning repository https://github.com/CodethinkLabs-Mirror-Test/lorry
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CodethinkLabs-Mirror-Test/lorry" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCodethinkLabs-Mirror-Test%2Florry", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCodethinkLabs-Mirror-Test%2Florry'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3a0fcc3f37b36c234b56bea60ff5f98d6ee7b1ac
[INFO] checking CodethinkLabs-Mirror-Test/lorry against try#a7b168ac4977e8e93a43448b44847adaa305d5a9 for pr-150557
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCodethinkLabs-Mirror-Test%2Florry" "/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/CodethinkLabs-Mirror-Test/lorry
[INFO] finished tweaking git repo https://github.com/CodethinkLabs-Mirror-Test/lorry
[INFO] tweaked toml for git repo https://github.com/CodethinkLabs-Mirror-Test/lorry written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/CodethinkLabs-Mirror-Test/lorry on toolchain a7b168ac4977e8e93a43448b44847adaa305d5a9
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/CodethinkLabs-Mirror-Test/lorry 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" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a64deaed90c54311fb6b9ecace46d846bc95c2c37fb76fcae21af02f173000c0
[INFO] running `Command { std: "docker" "start" "-a" "a64deaed90c54311fb6b9ecace46d846bc95c2c37fb76fcae21af02f173000c0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a64deaed90c54311fb6b9ecace46d846bc95c2c37fb76fcae21af02f173000c0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a64deaed90c54311fb6b9ecace46d846bc95c2c37fb76fcae21af02f173000c0", kill_on_drop: false }`
[INFO] [stdout] a64deaed90c54311fb6b9ecace46d846bc95c2c37fb76fcae21af02f173000c0
[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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b4d1e6f07e6ab8e42b384bac2e65229aacb7ba3635ba0a103e9ccd89bc6935af
[INFO] running `Command { std: "docker" "start" "-a" "b4d1e6f07e6ab8e42b384bac2e65229aacb7ba3635ba0a103e9ccd89bc6935af", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.172
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling stable_deref_trait v1.2.0
[INFO] [stderr]     Checking hashbrown v0.15.3
[INFO] [stderr]     Checking bitflags v2.9.1
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling smallvec v1.15.0
[INFO] [stderr]    Compiling writeable v0.6.1
[INFO] [stderr]    Compiling litemap v0.8.0
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]    Compiling bytes v1.10.1
[INFO] [stderr]    Compiling icu_properties_data v2.0.1
[INFO] [stderr]    Compiling icu_normalizer_data v2.0.0
[INFO] [stderr]    Compiling rustversion v1.0.20
[INFO] [stderr]    Compiling futures-core v0.3.31
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]    Compiling jobserver v0.1.33
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling scopeguard v1.2.0
[INFO] [stderr]    Compiling utf8_iter v1.0.4
[INFO] [stderr]    Compiling rustix v1.0.7
[INFO] [stderr]     Checking indexmap v2.9.0
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling cc v1.2.23
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]    Compiling rustls v0.23.27
[INFO] [stderr]    Compiling openssl-probe v0.1.6
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]    Compiling allocator-api2 v0.2.21
[INFO] [stderr]     Checking matchit v0.8.4
[INFO] [stderr]    Compiling foldhash v0.1.5
[INFO] [stderr]     Checking clap_builder v4.5.38
[INFO] [stderr]     Checking rand v0.9.1
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling socket2 v0.5.9
[INFO] [stderr]    Compiling mio v1.0.3
[INFO] [stderr]     Checking webpki-roots v1.0.0
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling futures-task v0.3.31
[INFO] [stderr]    Compiling futures-io v0.3.31
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling tokio v1.45.0
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]    Compiling tracing-core v0.1.33
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling openssl-sys v0.9.108
[INFO] [stderr]    Compiling libz-sys v1.1.22
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling libssh2-sys v0.3.1
[INFO] [stderr]    Compiling libgit2-sys v0.18.1+1.9.0
[INFO] [stderr]    Compiling libsqlite3-sys v0.30.1
[INFO] [stderr]    Compiling parking v2.2.1
[INFO] [stderr]    Compiling openssl v0.10.72
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling crc-catalog v2.4.0
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling darling_core v0.20.11
[INFO] [stderr]    Compiling crc v3.3.0
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.1
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tracing-attributes v0.1.28
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]     Checking zerofrom v0.1.6
[INFO] [stderr]     Checking yoke v0.8.0
[INFO] [stderr]     Checking zerovec v0.11.2
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]     Checking zerotrie v0.2.2
[INFO] [stderr]    Compiling thiserror-impl v2.0.12
[INFO] [stderr]     Checking tinystr v0.8.1
[INFO] [stderr]     Checking potential_utf v0.1.2
[INFO] [stderr]     Checking icu_locale_core v2.0.0
[INFO] [stderr]     Checking icu_collections v2.0.0
[INFO] [stderr]     Checking serde v1.0.219
[INFO] [stderr]     Checking icu_provider v2.0.0
[INFO] [stderr]     Checking icu_normalizer v2.0.0
[INFO] [stderr]     Checking icu_properties v2.0.1
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking thiserror v2.0.12
[INFO] [stderr]     Checking axum-core v0.5.2
[INFO] [stderr]    Compiling darling_macro v0.20.11
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking tokio-util v0.7.15
[INFO] [stderr]     Checking tower v0.5.2
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking h2 v0.4.10
[INFO] [stderr]     Checking tower-http v0.6.6
[INFO] [stderr]     Checking rustls-webpki v0.103.3
[INFO] [stderr]     Checking tokio-stream v0.1.17
[INFO] [stderr]     Checking serde_path_to_error v0.1.17
[INFO] [stderr]    Compiling darling v0.20.11
[INFO] [stderr]    Compiling axum-macros v0.5.0
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]    Compiling clap_derive v4.5.32
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling event-listener v5.4.0
[INFO] [stderr]    Compiling psm v0.1.26
[INFO] [stderr]     Checking clap v4.5.38
[INFO] [stderr]     Checking tracing-subscriber v0.3.19
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]     Checking webpki-roots v0.26.11
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling combine v4.6.7
[INFO] [stderr]     Checking hyper v1.6.0
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]     Checking chrono v0.4.41
[INFO] [stderr]     Checking tokio-rustls v0.26.2
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling flume v0.11.1
[INFO] [stderr]    Compiling sqlx-core v0.8.5
[INFO] [stderr]     Checking hyper-util v0.1.12
[INFO] [stderr]    Compiling graphql-introspection-query v0.2.0
[INFO] [stderr]    Compiling stacker v0.1.21
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling winnow v0.7.10
[INFO] [stderr]     Checking bit-vec v0.8.0
[INFO] [stderr]    Compiling tempfile v3.20.0
[INFO] [stderr]     Checking axum v0.8.4
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking hyper-rustls v0.27.5
[INFO] [stderr]     Checking bit-set v0.8.0
[INFO] [stderr]     Checking reqwest v0.12.22
[INFO] [stderr]    Compiling sqlx-sqlite v0.8.5
[INFO] [stderr]    Compiling askama_parser v0.14.0
[INFO] [stderr]    Compiling graphql-parser v0.4.1
[INFO] [stderr]    Compiling serde_with_macros v3.12.0
[INFO] [stderr]    Compiling derive_builder_core v0.20.2
[INFO] [stderr]    Compiling basic-toml v0.1.10
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking headers-core v0.3.0
[INFO] [stderr]     Checking unsafe-libyaml v0.2.11
[INFO] [stderr]    Compiling rustc-hash v2.1.1
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling graphql_client_codegen v0.14.0
[INFO] [stderr]    Compiling time-core v0.1.4
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]     Checking deranged v0.4.0
[INFO] [stderr]     Checking serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.5
[INFO] [stderr]    Compiling time-macros v0.2.22
[INFO] [stderr]     Checking headers v0.4.0
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling askama_derive v0.14.0
[INFO] [stderr]     Checking serde_with v3.12.0
[INFO] [stderr]    Compiling derive_builder_macro v0.20.2
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]     Checking fancy-regex v0.14.0
[INFO] [stderr]     Checking assert-json-diff v2.0.2
[INFO] [stderr]     Checking toml_datetime v0.6.9
[INFO] [stderr]     Checking relative-path v2.0.1
[INFO] [stderr]     Checking serde_spanned v0.6.8
[INFO] [stderr]    Compiling async-trait v0.1.88
[INFO] [stderr]    Compiling cookie v0.18.1
[INFO] [stderr]     Checking nom v8.0.0
[INFO] [stderr]    Compiling anyhow v1.0.98
[INFO] [stderr]    Compiling prometheus-client v0.23.1
[INFO] [stderr]     Checking toml_write v0.1.1
[INFO] [stderr]     Checking cron v0.15.0
[INFO] [stderr]     Checking time v0.3.41
[INFO] [stderr]     Checking chumsky v0.9.3
[INFO] [stderr]    Compiling sqlx-macros v0.8.5
[INFO] [stderr]     Checking askama v0.14.0
[INFO] [stderr]     Checking derive_builder v0.20.2
[INFO] [stderr]     Checking toml_edit v0.22.26
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling graphql_query_derive v0.14.0
[INFO] [stderr]     Checking axum-extra v0.10.1
[INFO] [stderr]     Checking graphql_client v0.14.0
[INFO] [stderr]     Checking itertools v0.14.0
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]    Compiling askama_web_derive v0.1.0
[INFO] [stderr]    Compiling prometheus-client-derive-encode v0.4.2
[INFO] [stderr]     Checking email-encoding v0.4.1
[INFO] [stderr]     Checking hostname v0.4.1
[INFO] [stderr]     Checking instant v0.1.13
[INFO] [stderr]     Checking sdd v3.0.8
[INFO] [stderr]     Checking diff v0.1.13
[INFO] [stderr]     Checking yansi v1.0.1
[INFO] [stderr]     Checking dtoa v1.0.10
[INFO] [stderr]     Checking similar v2.7.0
[INFO] [stderr]     Checking email_address v0.2.9
[INFO] [stderr]     Checking quoted_printable v0.5.1
[INFO] [stderr]     Checking pretty_assertions v1.4.1
[INFO] [stderr]     Checking scc v2.3.4
[INFO] [stderr]     Checking lettre v0.11.16
[INFO] [stderr]     Checking askama_web v0.14.2
[INFO] [stderr]     Checking mockito v1.7.0
[INFO] [stderr]     Checking backoff v0.4.0
[INFO] [stderr]     Checking iso8601 v0.6.3
[INFO] [stderr]     Checking sqlx v0.8.5
[INFO] [stderr]     Checking work-queue v0.1.4
[INFO] [stderr]     Checking gitlab v0.1801.0
[INFO] [stderr]     Checking toml v0.8.22
[INFO] [stderr]     Checking reserve-port v2.2.0
[INFO] [stderr]     Checking rust-multipart-rfc7578_2 v0.8.0
[INFO] [stderr]    Compiling serial_test_derive v3.2.0
[INFO] [stderr]     Checking bytesize v2.0.1
[INFO] [stderr]     Checking auto-future v1.0.0
[INFO] [stderr]     Checking git-server v2.7.0 (/opt/rustwide/workdir/git-server)
[INFO] [stderr]     Checking axum-test v17.3.0
[INFO] [stderr]     Checking serial_test v3.2.0
[INFO] [stderr]    Compiling git2 v0.20.2
[INFO] [stderr]     Checking workerlib v2.7.0 (/opt/rustwide/workdir/workerlib)
[INFO] [stderr]    Compiling lorry v2.7.0 (/opt/rustwide/workdir/lorry)
[INFO] [stdout] error: error returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:351:13
[INFO] [stdout]     |
[INFO] [stdout] 351 | ...   sqlx::query!("SELECT COUNT(*) AS count FROM lorries INNER JOIN jobs ON lorries.last_run_job_id = jobs.id WHERE jobs.exit != 0")
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:358:30
[INFO] [stdout]     |
[INFO] [stdout] 358 |           let failed_lorries = sqlx::query!(
[INFO] [stdout]     |  ______________________________^
[INFO] [stdout] 359 | |             r#"
[INFO] [stdout] 360 | | SELECT
[INFO] [stdout] 361 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 387 | |             offset
[INFO] [stdout] 388 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:423:26
[INFO] [stdout]     |
[INFO] [stdout] 423 |           let total_jobs = sqlx::query!(
[INFO] [stdout]     |  __________________________^
[INFO] [stdout] 424 | |             "SELECT COUNT(*) AS count FROM jobs WHERE path = ?",
[INFO] [stdout] 425 | |             lorry_path
[INFO] [stdout] 426 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:433:20
[INFO] [stdout]     |
[INFO] [stdout] 433 |           let jobs = sqlx::query!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout] 434 | |             r#"
[INFO] [stdout] 435 | | SELECT 
[INFO] [stdout] 436 | |     jobs.id AS "id!: i64", 
[INFO] [stdout] ...   |
[INFO] [stdout] 453 | |             offset
[INFO] [stdout] 454 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:480:29
[INFO] [stdout]     |
[INFO] [stdout] 480 |         let total_lorries = sqlx::query!("SELECT COUNT(*) AS count FROM lorries")
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:486:23
[INFO] [stdout]     |
[INFO] [stdout] 486 |           let lorries = sqlx::query!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 487 | |             r#"
[INFO] [stdout] 488 | | SELECT
[INFO] [stdout] 489 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 514 | |             offset
[INFO] [stdout] 515 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:556:9
[INFO] [stdout]     |
[INFO] [stdout] 556 | /         sqlx::query!(
[INFO] [stdout] 557 | |             r#"
[INFO] [stdout] 558 | | DELETE FROM notification_threshold;
[INFO] [stdout] 559 | | INSERT INTO notification_threshold (threshold) VALUES (?);
[INFO] [stdout] 560 | | "#,
[INFO] [stdout] 561 | |             threshold
[INFO] [stdout] 562 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:572:9
[INFO] [stdout]     |
[INFO] [stdout] 572 | /         sqlx::query!(
[INFO] [stdout] 573 | |             "
[INFO] [stdout] 574 | | SELECT
[INFO] [stdout] 575 | |   text,
[INFO] [stdout] ...   |
[INFO] [stdout] 588 | | ORDER BY (max(last_run.ended, last_attempted) + interval)"
[INFO] [stdout] 589 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:351:13
[INFO] [stdout]     |
[INFO] [stdout] 351 | ...   sqlx::query!("SELECT COUNT(*) AS count FROM lorries INNER JOIN jobs ON lorries.last_run_job_id = jobs.id WHERE jobs.exit != 0")
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:626:9
[INFO] [stdout]     |
[INFO] [stdout] 626 | /         sqlx::query!(
[INFO] [stdout] 627 | |             r#"
[INFO] [stdout] 628 | | SELECT
[INFO] [stdout] 629 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 651 | | "#,
[INFO] [stdout] 652 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:358:30
[INFO] [stdout]     |
[INFO] [stdout] 358 |           let failed_lorries = sqlx::query!(
[INFO] [stdout]     |  ______________________________^
[INFO] [stdout] 359 | |             r#"
[INFO] [stdout] 360 | | SELECT
[INFO] [stdout] 361 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 387 | |             offset
[INFO] [stdout] 388 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:423:26
[INFO] [stdout]     |
[INFO] [stdout] 423 |           let total_jobs = sqlx::query!(
[INFO] [stdout]     |  __________________________^
[INFO] [stdout] 424 | |             "SELECT COUNT(*) AS count FROM jobs WHERE path = ?",
[INFO] [stdout] 425 | |             lorry_path
[INFO] [stdout] 426 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:433:20
[INFO] [stdout]     |
[INFO] [stdout] 433 |           let jobs = sqlx::query!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout] 434 | |             r#"
[INFO] [stdout] 435 | | SELECT 
[INFO] [stdout] 436 | |     jobs.id AS "id!: i64", 
[INFO] [stdout] ...   |
[INFO] [stdout] 453 | |             offset
[INFO] [stdout] 454 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:679:12
[INFO] [stdout]     |
[INFO] [stdout] 679 |           Ok(sqlx::query!(
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 680 | |             r#"
[INFO] [stdout] 681 | | SELECT refs.id, refs.name, ref_state.status, ref_state.successful
[INFO] [stdout] 682 | | FROM refs LEFT JOIN ref_state ON (refs.id = ref_state.ref_id) WHERE job_id = ?
[INFO] [stdout] 683 | |             "#,
[INFO] [stdout] 684 | |             job_id
[INFO] [stdout] 685 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:480:29
[INFO] [stdout]     |
[INFO] [stdout] 480 |         let total_lorries = sqlx::query!("SELECT COUNT(*) AS count FROM lorries")
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:486:23
[INFO] [stdout]     |
[INFO] [stdout] 486 |           let lorries = sqlx::query!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 487 | |             r#"
[INFO] [stdout] 488 | | SELECT
[INFO] [stdout] 489 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 514 | |             offset
[INFO] [stdout] 515 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:701:12
[INFO] [stdout]     |
[INFO] [stdout] 701 |           Ok(sqlx::query!(
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 702 | |             r#"
[INFO] [stdout] 703 | | SELECT id, kind, message FROM warnings WHERE job_id = ?
[INFO] [stdout] 704 | |             "#,
[INFO] [stdout] 705 | |             job_id
[INFO] [stdout] 706 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:717:50
[INFO] [stdout]     |
[INFO] [stdout] 717 |           let statuses: Vec<models::LorryStatus> = sqlx::query!(
[INFO] [stdout]     |  __________________________________________________^
[INFO] [stdout] 718 | |             r#"
[INFO] [stdout] 719 | | SELECT 
[INFO] [stdout] 720 | |     ordered.id AS "job_id!: i64",
[INFO] [stdout] ...   |
[INFO] [stdout] 737 | | "#
[INFO] [stdout] 738 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:556:9
[INFO] [stdout]     |
[INFO] [stdout] 556 | /         sqlx::query!(
[INFO] [stdout] 557 | |             r#"
[INFO] [stdout] 558 | | DELETE FROM notification_threshold;
[INFO] [stdout] 559 | | INSERT INTO notification_threshold (threshold) VALUES (?);
[INFO] [stdout] 560 | | "#,
[INFO] [stdout] 561 | |             threshold
[INFO] [stdout] 562 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:572:9
[INFO] [stdout]     |
[INFO] [stdout] 572 | /         sqlx::query!(
[INFO] [stdout] 573 | |             "
[INFO] [stdout] 574 | | SELECT
[INFO] [stdout] 575 | |   text,
[INFO] [stdout] ...   |
[INFO] [stdout] 588 | | ORDER BY (max(last_run.ended, last_attempted) + interval)"
[INFO] [stdout] 589 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:759:19
[INFO] [stdout]     |
[INFO] [stdout] 759 |           let row = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 760 | |             r#"
[INFO] [stdout] 761 | | SELECT
[INFO] [stdout] 762 | |   text,
[INFO] [stdout] ...   |
[INFO] [stdout] 795 | | "#
[INFO] [stdout] 796 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:830:22
[INFO] [stdout]     |
[INFO] [stdout] 830 |           let result = sqlx::query!(
[INFO] [stdout]     |  ______________________^
[INFO] [stdout] 831 | |             r#"
[INFO] [stdout] 832 | | WITH running_jobs AS (
[INFO] [stdout] 833 | |     SELECT running_job FROM lorries WHERE running_job IS NOT NULL
[INFO] [stdout] ...   |
[INFO] [stdout] 845 | | "#
[INFO] [stdout] 846 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:859:29
[INFO] [stdout]     |
[INFO] [stdout] 859 |         let current_paths = sqlx::query!("SELECT path FROM lorries")
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:880:13
[INFO] [stdout]     |
[INFO] [stdout] 880 | /             sqlx::query!(
[INFO] [stdout] 881 | |                 r#"
[INFO] [stdout] 882 | | INSERT INTO lorries
[INFO] [stdout] ...   |
[INFO] [stdout] 910 | |                 maintenance_secs,
[INFO] [stdout] 911 | |             )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:626:9
[INFO] [stdout]     |
[INFO] [stdout] 626 | /         sqlx::query!(
[INFO] [stdout] 627 | |             r#"
[INFO] [stdout] 628 | | SELECT
[INFO] [stdout] 629 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 651 | | "#,
[INFO] [stdout] 652 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:679:12
[INFO] [stdout]     |
[INFO] [stdout] 679 |           Ok(sqlx::query!(
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 680 | |             r#"
[INFO] [stdout] 681 | | SELECT refs.id, refs.name, ref_state.status, ref_state.successful
[INFO] [stdout] 682 | | FROM refs LEFT JOIN ref_state ON (refs.id = ref_state.ref_id) WHERE job_id = ?
[INFO] [stdout] 683 | |             "#,
[INFO] [stdout] 684 | |             job_id
[INFO] [stdout] 685 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:920:13
[INFO] [stdout]     |
[INFO] [stdout] 920 |             sqlx::query!("DELETE FROM lorries WHERE path IS ?", path)
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:701:12
[INFO] [stdout]     |
[INFO] [stdout] 701 |           Ok(sqlx::query!(
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 702 | |             r#"
[INFO] [stdout] 703 | | SELECT id, kind, message FROM warnings WHERE job_id = ?
[INFO] [stdout] 704 | |             "#,
[INFO] [stdout] 705 | |             job_id
[INFO] [stdout] 706 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:933:9
[INFO] [stdout]     |
[INFO] [stdout] 933 |         sqlx::query!("UPDATE lorries SET purge_from_before = ?", now)
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:717:50
[INFO] [stdout]     |
[INFO] [stdout] 717 |           let statuses: Vec<models::LorryStatus> = sqlx::query!(
[INFO] [stdout]     |  __________________________________________________^
[INFO] [stdout] 718 | |             r#"
[INFO] [stdout] 719 | | SELECT 
[INFO] [stdout] 720 | |     ordered.id AS "job_id!: i64",
[INFO] [stdout] ...   |
[INFO] [stdout] 737 | | "#
[INFO] [stdout] 738 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:947:9
[INFO] [stdout]     |
[INFO] [stdout] 947 |         sqlx::query!("SELECT id, path, exit, host FROM jobs ORDER BY id DESC")
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:967:9
[INFO] [stdout]     |
[INFO] [stdout] 967 | /         sqlx::query!(
[INFO] [stdout] 968 | |             r#"
[INFO] [stdout] 969 | | SELECT 
[INFO] [stdout] 970 | |     jobs.id, 
[INFO] [stdout] ...   |
[INFO] [stdout] 983 | |             job_id
[INFO] [stdout] 984 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:759:19
[INFO] [stdout]     |
[INFO] [stdout] 759 |           let row = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 760 | |             r#"
[INFO] [stdout] 761 | | SELECT
[INFO] [stdout] 762 | |   text,
[INFO] [stdout] ...   |
[INFO] [stdout] 795 | | "#
[INFO] [stdout] 796 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1008:9
[INFO] [stdout]      |
[INFO] [stdout] 1008 | /         sqlx::query!(
[INFO] [stdout] 1009 | |             "UPDATE lorries SET priority = ? WHERE path = ?",
[INFO] [stdout] 1010 | |             state,
[INFO] [stdout] 1011 | |             path
[INFO] [stdout] 1012 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:830:22
[INFO] [stdout]     |
[INFO] [stdout] 830 |           let result = sqlx::query!(
[INFO] [stdout]     |  ______________________^
[INFO] [stdout] 831 | |             r#"
[INFO] [stdout] 832 | | WITH running_jobs AS (
[INFO] [stdout] 833 | |     SELECT running_job FROM lorries WHERE running_job IS NOT NULL
[INFO] [stdout] ...   |
[INFO] [stdout] 845 | | "#
[INFO] [stdout] 846 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1038:19
[INFO] [stdout]      |
[INFO] [stdout] 1038 |           let rec = sqlx::query!(
[INFO] [stdout]      |  ___________________^
[INFO] [stdout] 1039 | |             r#"
[INFO] [stdout] 1040 | | WITH window AS (
[INFO] [stdout] 1041 | |     SELECT (strftime('%s', 'now') - ?) AS seconds
[INFO] [stdout] ...    |
[INFO] [stdout] 1062 | |             path
[INFO] [stdout] 1063 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1068:22
[INFO] [stdout]      |
[INFO] [stdout] 1068 |           let result = sqlx::query!(
[INFO] [stdout]      |  ______________________^
[INFO] [stdout] 1069 | |             r#"
[INFO] [stdout] 1070 | |     INSERT INTO jobs (
[INFO] [stdout] 1071 | |         host,
[INFO] [stdout] ...    |
[INFO] [stdout] 1089 | |             job_kind_str,
[INFO] [stdout] 1090 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1093:9
[INFO] [stdout]      |
[INFO] [stdout] 1093 | /         sqlx::query!(
[INFO] [stdout] 1094 | |             r#"
[INFO] [stdout] 1095 | |     UPDATE lorries SET
[INFO] [stdout] 1096 | |         running_job = ?,
[INFO] [stdout] ...    |
[INFO] [stdout] 1102 | |             path,
[INFO] [stdout] 1103 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1118:9
[INFO] [stdout]      |
[INFO] [stdout] 1118 | /         sqlx::query!(
[INFO] [stdout] 1119 | |             r#"
[INFO] [stdout] 1120 | |     UPDATE lorries
[INFO] [stdout] 1121 | |         SET
[INFO] [stdout] ...    |
[INFO] [stdout] 1126 | |             path
[INFO] [stdout] 1127 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:859:29
[INFO] [stdout]     |
[INFO] [stdout] 859 |         let current_paths = sqlx::query!("SELECT path FROM lorries")
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1154:9
[INFO] [stdout]      |
[INFO] [stdout] 1154 | /         sqlx::query!(
[INFO] [stdout] 1155 | |             r#"
[INFO] [stdout] 1156 | |     UPDATE jobs
[INFO] [stdout] 1157 | |         SET
[INFO] [stdout] ...    |
[INFO] [stdout] 1187 | |             path,
[INFO] [stdout] 1188 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:880:13
[INFO] [stdout]     |
[INFO] [stdout] 880 | /             sqlx::query!(
[INFO] [stdout] 881 | |                 r#"
[INFO] [stdout] 882 | | INSERT INTO lorries
[INFO] [stdout] ...   |
[INFO] [stdout] 910 | |                 maintenance_secs,
[INFO] [stdout] 911 | |             )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1205:30
[INFO] [stdout]      |
[INFO] [stdout] 1205 |                   let ref_id = sqlx::query!(
[INFO] [stdout]      |  ______________________________^
[INFO] [stdout] 1206 | |                     r#"
[INFO] [stdout] 1207 | | INSERT INTO refs (path, name)
[INFO] [stdout] 1208 | | VALUES (?, ?) ON CONFLICT DO UPDATE SET path = ?, name = ? RETURNING id
[INFO] [stdout] ...    |
[INFO] [stdout] 1213 | |                     name
[INFO] [stdout] 1214 | |                 )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1218:17
[INFO] [stdout]      |
[INFO] [stdout] 1218 | /                 sqlx::query!(
[INFO] [stdout] 1219 | |                     r#"
[INFO] [stdout] 1220 | | INSERT INTO ref_state (job_id, ref_id, status, successful)
[INFO] [stdout] 1221 | | VALUES (?, ?, ?, ?)
[INFO] [stdout] ...    |
[INFO] [stdout] 1226 | |                     successful
[INFO] [stdout] 1227 | |                 )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1240:17
[INFO] [stdout]      |
[INFO] [stdout] 1240 | /                 sqlx::query!(
[INFO] [stdout] 1241 | |                     r#"
[INFO] [stdout] 1242 | | INSERT INTO warnings (
[INFO] [stdout] 1243 | |     job_id,
[INFO] [stdout] ...    |
[INFO] [stdout] 1250 | |                     message,
[INFO] [stdout] 1251 | |                 )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:920:13
[INFO] [stdout]     |
[INFO] [stdout] 920 |             sqlx::query!("DELETE FROM lorries WHERE path IS ?", path)
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1264:29
[INFO] [stdout]      |
[INFO] [stdout] 1264 |           let notifications = sqlx::query_as!(
[INFO] [stdout]      |  _____________________________^
[INFO] [stdout] 1265 | |             models::Notification,
[INFO] [stdout] 1266 | |             r#"SELECT 
[INFO] [stdout] 1267 | |                 notifications.id, 
[INFO] [stdout] ...    |
[INFO] [stdout] 1276 | |             "#,
[INFO] [stdout] 1277 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1285:9
[INFO] [stdout]      |
[INFO] [stdout] 1285 | /         sqlx::query!(
[INFO] [stdout] 1286 | |             "UPDATE notifications SET sent = 1 WHERE id = ?",
[INFO] [stdout] 1287 | |             notification_id
[INFO] [stdout] 1288 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1300:9
[INFO] [stdout]      |
[INFO] [stdout] 1300 | /         sqlx::query!(
[INFO] [stdout] 1301 | |             "UPDATE notifications SET forge = ? WHERE id = ? AND forge IS NULL",
[INFO] [stdout] 1302 | |             forge,
[INFO] [stdout] 1303 | |             notification_id
[INFO] [stdout] 1304 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:933:9
[INFO] [stdout]     |
[INFO] [stdout] 933 |         sqlx::query!("UPDATE lorries SET purge_from_before = ?", now)
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1312:22
[INFO] [stdout]      |
[INFO] [stdout] 1312 |         let result = sqlx::query!("SELECT text FROM lorries WHERE path = ?", path)
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:947:9
[INFO] [stdout]     |
[INFO] [stdout] 947 |         sqlx::query!("SELECT id, path, exit, host FROM jobs ORDER BY id DESC")
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> lorry/src/state_db.rs:967:9
[INFO] [stdout]     |
[INFO] [stdout] 967 | /         sqlx::query!(
[INFO] [stdout] 968 | |             r#"
[INFO] [stdout] 969 | | SELECT 
[INFO] [stdout] 970 | |     jobs.id, 
[INFO] [stdout] ...   |
[INFO] [stdout] 983 | |             job_id
[INFO] [stdout] 984 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1008:9
[INFO] [stdout]      |
[INFO] [stdout] 1008 | /         sqlx::query!(
[INFO] [stdout] 1009 | |             "UPDATE lorries SET priority = ? WHERE path = ?",
[INFO] [stdout] 1010 | |             state,
[INFO] [stdout] 1011 | |             path
[INFO] [stdout] 1012 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1038:19
[INFO] [stdout]      |
[INFO] [stdout] 1038 |           let rec = sqlx::query!(
[INFO] [stdout]      |  ___________________^
[INFO] [stdout] 1039 | |             r#"
[INFO] [stdout] 1040 | | WITH window AS (
[INFO] [stdout] 1041 | |     SELECT (strftime('%s', 'now') - ?) AS seconds
[INFO] [stdout] ...    |
[INFO] [stdout] 1062 | |             path
[INFO] [stdout] 1063 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1068:22
[INFO] [stdout]      |
[INFO] [stdout] 1068 |           let result = sqlx::query!(
[INFO] [stdout]      |  ______________________^
[INFO] [stdout] 1069 | |             r#"
[INFO] [stdout] 1070 | |     INSERT INTO jobs (
[INFO] [stdout] 1071 | |         host,
[INFO] [stdout] ...    |
[INFO] [stdout] 1089 | |             job_kind_str,
[INFO] [stdout] 1090 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1093:9
[INFO] [stdout]      |
[INFO] [stdout] 1093 | /         sqlx::query!(
[INFO] [stdout] 1094 | |             r#"
[INFO] [stdout] 1095 | |     UPDATE lorries SET
[INFO] [stdout] 1096 | |         running_job = ?,
[INFO] [stdout] ...    |
[INFO] [stdout] 1102 | |             path,
[INFO] [stdout] 1103 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1118:9
[INFO] [stdout]      |
[INFO] [stdout] 1118 | /         sqlx::query!(
[INFO] [stdout] 1119 | |             r#"
[INFO] [stdout] 1120 | |     UPDATE lorries
[INFO] [stdout] 1121 | |         SET
[INFO] [stdout] ...    |
[INFO] [stdout] 1126 | |             path
[INFO] [stdout] 1127 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1154:9
[INFO] [stdout]      |
[INFO] [stdout] 1154 | /         sqlx::query!(
[INFO] [stdout] 1155 | |             r#"
[INFO] [stdout] 1156 | |     UPDATE jobs
[INFO] [stdout] 1157 | |         SET
[INFO] [stdout] ...    |
[INFO] [stdout] 1187 | |             path,
[INFO] [stdout] 1188 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1205:30
[INFO] [stdout]      |
[INFO] [stdout] 1205 |                   let ref_id = sqlx::query!(
[INFO] [stdout]      |  ______________________________^
[INFO] [stdout] 1206 | |                     r#"
[INFO] [stdout] 1207 | | INSERT INTO refs (path, name)
[INFO] [stdout] 1208 | | VALUES (?, ?) ON CONFLICT DO UPDATE SET path = ?, name = ? RETURNING id
[INFO] [stdout] ...    |
[INFO] [stdout] 1213 | |                     name
[INFO] [stdout] 1214 | |                 )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1218:17
[INFO] [stdout]      |
[INFO] [stdout] 1218 | /                 sqlx::query!(
[INFO] [stdout] 1219 | |                     r#"
[INFO] [stdout] 1220 | | INSERT INTO ref_state (job_id, ref_id, status, successful)
[INFO] [stdout] 1221 | | VALUES (?, ?, ?, ?)
[INFO] [stdout] ...    |
[INFO] [stdout] 1226 | |                     successful
[INFO] [stdout] 1227 | |                 )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1240:17
[INFO] [stdout]      |
[INFO] [stdout] 1240 | /                 sqlx::query!(
[INFO] [stdout] 1241 | |                     r#"
[INFO] [stdout] 1242 | | INSERT INTO warnings (
[INFO] [stdout] 1243 | |     job_id,
[INFO] [stdout] ...    |
[INFO] [stdout] 1250 | |                     message,
[INFO] [stdout] 1251 | |                 )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1264:29
[INFO] [stdout]      |
[INFO] [stdout] 1264 |           let notifications = sqlx::query_as!(
[INFO] [stdout]      |  _____________________________^
[INFO] [stdout] 1265 | |             models::Notification,
[INFO] [stdout] 1266 | |             r#"SELECT 
[INFO] [stdout] 1267 | |                 notifications.id, 
[INFO] [stdout] ...    |
[INFO] [stdout] 1276 | |             "#,
[INFO] [stdout] 1277 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1285:9
[INFO] [stdout]      |
[INFO] [stdout] 1285 | /         sqlx::query!(
[INFO] [stdout] 1286 | |             "UPDATE notifications SET sent = 1 WHERE id = ?",
[INFO] [stdout] 1287 | |             notification_id
[INFO] [stdout] 1288 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1300:9
[INFO] [stdout]      |
[INFO] [stdout] 1300 | /         sqlx::query!(
[INFO] [stdout] 1301 | |             "UPDATE notifications SET forge = ? WHERE id = ? AND forge IS NULL",
[INFO] [stdout] 1302 | |             forge,
[INFO] [stdout] 1303 | |             notification_id
[INFO] [stdout] 1304 | |         )
[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 returned from database: (code: 14) unable to open database file
[INFO] [stdout]     --> lorry/src/state_db.rs:1312:22
[INFO] [stdout]      |
[INFO] [stdout] 1312 |         let result = sqlx::query!("SELECT text FROM lorries WHERE path = ?", path)
[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: `arg`
[INFO] [stdout]   --> lorry/src/main.rs:55:12
[INFO] [stdout]    |
[INFO] [stdout] 55 | use clap::{arg, Parser};
[INFO] [stdout]    |            ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tracing::error`
[INFO] [stdout]   --> lorry/src/read_config.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use tracing::error;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `arg`
[INFO] [stdout]   --> lorry/src/main.rs:55:12
[INFO] [stdout]    |
[INFO] [stdout] 55 | use clap::{arg, Parser};
[INFO] [stdout]    |            ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tracing::error`
[INFO] [stdout]   --> lorry/src/read_config.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use tracing::error;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:351:13
[INFO] [stdout]     |
[INFO] [stdout] 351 | / ...   sqlx::query!("SELECT COUNT(*) AS count FROM lorries INNER JOIN jobs ON lorries.last_run_job_id = jobs.id WHERE jobs.exit !=...
[INFO] [stdout] 352 | | ...       .fetch_one(&mut *tx)
[INFO] [stdout] 353 | | ...       .await
[INFO] [stdout]     | |________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:358:30
[INFO] [stdout]     |
[INFO] [stdout] 358 |           let failed_lorries = sqlx::query!(
[INFO] [stdout]     |  ______________________________^
[INFO] [stdout] 359 | |             r#"
[INFO] [stdout] 360 | | SELECT
[INFO] [stdout] 361 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 404 | |         .fetch_all(&mut *tx)
[INFO] [stdout] 405 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:423:26
[INFO] [stdout]     |
[INFO] [stdout] 423 |           let total_jobs = sqlx::query!(
[INFO] [stdout]     |  __________________________^
[INFO] [stdout] 424 | |             "SELECT COUNT(*) AS count FROM jobs WHERE path = ?",
[INFO] [stdout] 425 | |             lorry_path
[INFO] [stdout] ...   |
[INFO] [stdout] 428 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:480:29
[INFO] [stdout]     |
[INFO] [stdout] 480 |           let total_lorries = sqlx::query!("SELECT COUNT(*) AS count FROM lorries")
[INFO] [stdout]     |  _____________________________^
[INFO] [stdout] 481 | |             .fetch_one(&mut *tx)
[INFO] [stdout] 482 | |             .await
[INFO] [stdout]     | |__________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:486:23
[INFO] [stdout]     |
[INFO] [stdout] 486 |           let lorries = sqlx::query!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 487 | |             r#"
[INFO] [stdout] 488 | | SELECT
[INFO] [stdout] 489 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 531 | |         .fetch_all(&mut *tx)
[INFO] [stdout] 532 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:572:9
[INFO] [stdout]     |
[INFO] [stdout] 572 | /         sqlx::query!(
[INFO] [stdout] 573 | |             "
[INFO] [stdout] 574 | | SELECT
[INFO] [stdout] 575 | |   text,
[INFO] [stdout] ...   |
[INFO] [stdout] 613 | |         .fetch_all(&self.0)
[INFO] [stdout] 614 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:626:9
[INFO] [stdout]     |
[INFO] [stdout] 626 | /         sqlx::query!(
[INFO] [stdout] 627 | |             r#"
[INFO] [stdout] 628 | | SELECT
[INFO] [stdout] 629 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 668 | |         .fetch_all(&self.0)
[INFO] [stdout] 669 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:679:12
[INFO] [stdout]     |
[INFO] [stdout] 679 |           Ok(sqlx::query!(
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 680 | |             r#"
[INFO] [stdout] 681 | | SELECT refs.id, refs.name, ref_state.status, ref_state.successful
[INFO] [stdout] 682 | | FROM refs LEFT JOIN ref_state ON (refs.id = ref_state.ref_id) WHERE job_id = ?
[INFO] [stdout] ...   |
[INFO] [stdout] 686 | |         .fetch_all(&self.0)
[INFO] [stdout] 687 | |         .await?
[INFO] [stdout]     | |_______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:701:12
[INFO] [stdout]     |
[INFO] [stdout] 701 |           Ok(sqlx::query!(
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 702 | |             r#"
[INFO] [stdout] 703 | | SELECT id, kind, message FROM warnings WHERE job_id = ?
[INFO] [stdout] 704 | |             "#,
[INFO] [stdout] ...   |
[INFO] [stdout] 707 | |         .fetch_all(&self.0)
[INFO] [stdout] 708 | |         .await?
[INFO] [stdout]     | |_______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:717:50
[INFO] [stdout]     |
[INFO] [stdout] 717 |           let statuses: Vec<models::LorryStatus> = sqlx::query!(
[INFO] [stdout]     |  __________________________________________________^
[INFO] [stdout] 718 | |             r#"
[INFO] [stdout] 719 | | SELECT 
[INFO] [stdout] 720 | |     ordered.id AS "job_id!: i64",
[INFO] [stdout] ...   |
[INFO] [stdout] 739 | |         .fetch_all(&self.0)
[INFO] [stdout] 740 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:830:13
[INFO] [stdout]     |
[INFO] [stdout] 830 |         let result = sqlx::query!(
[INFO] [stdout]     |             ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 850 |         Ok(result.rows_affected())
[INFO] [stdout]     |            ------ type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `result` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 830 |         let result: /* Type */ = sqlx::query!(
[INFO] [stdout]     |                   ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:859:13
[INFO] [stdout]     |
[INFO] [stdout] 859 |         let current_paths = sqlx::query!("SELECT path FROM lorries")
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 864 |             current_paths
[INFO] [stdout]     |             ------------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `current_paths` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 859 |         let current_paths: /* Type */ = sqlx::query!("SELECT path FROM lorries")
[INFO] [stdout]     |                          ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:933:9
[INFO] [stdout]     |
[INFO] [stdout] 933 | /         sqlx::query!("UPDATE lorries SET purge_from_before = ?", now)
[INFO] [stdout] 934 | |             .execute(&self.0)
[INFO] [stdout] 935 | |             .await
[INFO] [stdout]     | |__________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:967:9
[INFO] [stdout]     |
[INFO] [stdout] 967 | /         sqlx::query!(
[INFO] [stdout] 968 | |             r#"
[INFO] [stdout] 969 | | SELECT 
[INFO] [stdout] 970 | |     jobs.id, 
[INFO] [stdout] ...   |
[INFO] [stdout] 985 | |         .fetch_one(&self.0)
[INFO] [stdout] 986 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]     --> lorry/src/state_db.rs:1008:9
[INFO] [stdout]      |
[INFO] [stdout] 1008 | /         sqlx::query!(
[INFO] [stdout] 1009 | |             "UPDATE lorries SET priority = ? WHERE path = ?",
[INFO] [stdout] 1010 | |             state,
[INFO] [stdout] 1011 | |             path
[INFO] [stdout] 1012 | |         )
[INFO] [stdout] 1013 | |         .execute(&self.0)
[INFO] [stdout] 1014 | |         .await
[INFO] [stdout]      | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]     --> lorry/src/state_db.rs:1312:13
[INFO] [stdout]      |
[INFO] [stdout] 1312 |         let result = sqlx::query!("SELECT text FROM lorries WHERE path = ?", path)
[INFO] [stdout]      |             ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 1316 |         Ok(result.map(|row| row.text))
[INFO] [stdout]      |            ------ type must be known at this point
[INFO] [stdout]      |
[INFO] [stdout] help: consider giving `result` an explicit type
[INFO] [stdout]      |
[INFO] [stdout] 1312 |         let result: /* Type */ = sqlx::query!("SELECT text FROM lorries WHERE path = ?", path)
[INFO] [stdout]      |                   ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:351:13
[INFO] [stdout]     |
[INFO] [stdout] 351 | / ...   sqlx::query!("SELECT COUNT(*) AS count FROM lorries INNER JOIN jobs ON lorries.last_run_job_id = jobs.id WHERE jobs.exit !=...
[INFO] [stdout] 352 | | ...       .fetch_one(&mut *tx)
[INFO] [stdout] 353 | | ...       .await
[INFO] [stdout]     | |________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:358:30
[INFO] [stdout]     |
[INFO] [stdout] 358 |           let failed_lorries = sqlx::query!(
[INFO] [stdout]     |  ______________________________^
[INFO] [stdout] 359 | |             r#"
[INFO] [stdout] 360 | | SELECT
[INFO] [stdout] 361 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 404 | |         .fetch_all(&mut *tx)
[INFO] [stdout] 405 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:423:26
[INFO] [stdout]     |
[INFO] [stdout] 423 |           let total_jobs = sqlx::query!(
[INFO] [stdout]     |  __________________________^
[INFO] [stdout] 424 | |             "SELECT COUNT(*) AS count FROM jobs WHERE path = ?",
[INFO] [stdout] 425 | |             lorry_path
[INFO] [stdout] ...   |
[INFO] [stdout] 428 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:480:29
[INFO] [stdout]     |
[INFO] [stdout] 480 |           let total_lorries = sqlx::query!("SELECT COUNT(*) AS count FROM lorries")
[INFO] [stdout]     |  _____________________________^
[INFO] [stdout] 481 | |             .fetch_one(&mut *tx)
[INFO] [stdout] 482 | |             .await
[INFO] [stdout]     | |__________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:486:23
[INFO] [stdout]     |
[INFO] [stdout] 486 |           let lorries = sqlx::query!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 487 | |             r#"
[INFO] [stdout] 488 | | SELECT
[INFO] [stdout] 489 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 531 | |         .fetch_all(&mut *tx)
[INFO] [stdout] 532 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:572:9
[INFO] [stdout]     |
[INFO] [stdout] 572 | /         sqlx::query!(
[INFO] [stdout] 573 | |             "
[INFO] [stdout] 574 | | SELECT
[INFO] [stdout] 575 | |   text,
[INFO] [stdout] ...   |
[INFO] [stdout] 613 | |         .fetch_all(&self.0)
[INFO] [stdout] 614 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:626:9
[INFO] [stdout]     |
[INFO] [stdout] 626 | /         sqlx::query!(
[INFO] [stdout] 627 | |             r#"
[INFO] [stdout] 628 | | SELECT
[INFO] [stdout] 629 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 668 | |         .fetch_all(&self.0)
[INFO] [stdout] 669 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:679:12
[INFO] [stdout]     |
[INFO] [stdout] 679 |           Ok(sqlx::query!(
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 680 | |             r#"
[INFO] [stdout] 681 | | SELECT refs.id, refs.name, ref_state.status, ref_state.successful
[INFO] [stdout] 682 | | FROM refs LEFT JOIN ref_state ON (refs.id = ref_state.ref_id) WHERE job_id = ?
[INFO] [stdout] ...   |
[INFO] [stdout] 686 | |         .fetch_all(&self.0)
[INFO] [stdout] 687 | |         .await?
[INFO] [stdout]     | |_______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:701:12
[INFO] [stdout]     |
[INFO] [stdout] 701 |           Ok(sqlx::query!(
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 702 | |             r#"
[INFO] [stdout] 703 | | SELECT id, kind, message FROM warnings WHERE job_id = ?
[INFO] [stdout] 704 | |             "#,
[INFO] [stdout] ...   |
[INFO] [stdout] 707 | |         .fetch_all(&self.0)
[INFO] [stdout] 708 | |         .await?
[INFO] [stdout]     | |_______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:717:50
[INFO] [stdout]     |
[INFO] [stdout] 717 |           let statuses: Vec<models::LorryStatus> = sqlx::query!(
[INFO] [stdout]     |  __________________________________________________^
[INFO] [stdout] 718 | |             r#"
[INFO] [stdout] 719 | | SELECT 
[INFO] [stdout] 720 | |     ordered.id AS "job_id!: i64",
[INFO] [stdout] ...   |
[INFO] [stdout] 739 | |         .fetch_all(&self.0)
[INFO] [stdout] 740 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:830:13
[INFO] [stdout]     |
[INFO] [stdout] 830 |         let result = sqlx::query!(
[INFO] [stdout]     |             ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 850 |         Ok(result.rows_affected())
[INFO] [stdout]     |            ------ type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `result` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 830 |         let result: /* Type */ = sqlx::query!(
[INFO] [stdout]     |                   ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:859:13
[INFO] [stdout]     |
[INFO] [stdout] 859 |         let current_paths = sqlx::query!("SELECT path FROM lorries")
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 864 |             current_paths
[INFO] [stdout]     |             ------------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `current_paths` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 859 |         let current_paths: /* Type */ = sqlx::query!("SELECT path FROM lorries")
[INFO] [stdout]     |                          ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:933:9
[INFO] [stdout]     |
[INFO] [stdout] 933 | /         sqlx::query!("UPDATE lorries SET purge_from_before = ?", now)
[INFO] [stdout] 934 | |             .execute(&self.0)
[INFO] [stdout] 935 | |             .await
[INFO] [stdout]     | |__________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lorry/src/state_db.rs:967:9
[INFO] [stdout]     |
[INFO] [stdout] 967 | /         sqlx::query!(
[INFO] [stdout] 968 | |             r#"
[INFO] [stdout] 969 | | SELECT 
[INFO] [stdout] 970 | |     jobs.id, 
[INFO] [stdout] ...   |
[INFO] [stdout] 985 | |         .fetch_one(&self.0)
[INFO] [stdout] 986 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]     --> lorry/src/state_db.rs:1008:9
[INFO] [stdout]      |
[INFO] [stdout] 1008 | /         sqlx::query!(
[INFO] [stdout] 1009 | |             "UPDATE lorries SET priority = ? WHERE path = ?",
[INFO] [stdout] 1010 | |             state,
[INFO] [stdout] 1011 | |             path
[INFO] [stdout] 1012 | |         )
[INFO] [stdout] 1013 | |         .execute(&self.0)
[INFO] [stdout] 1014 | |         .await
[INFO] [stdout]      | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]     --> lorry/src/state_db.rs:1312:13
[INFO] [stdout]      |
[INFO] [stdout] 1312 |         let result = sqlx::query!("SELECT text FROM lorries WHERE path = ?", path)
[INFO] [stdout]      |             ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 1316 |         Ok(result.map(|row| row.text))
[INFO] [stdout]      |            ------ type must be known at this point
[INFO] [stdout]      |
[INFO] [stdout] help: consider giving `result` an explicit type
[INFO] [stdout]      |
[INFO] [stdout] 1312 |         let result: /* Type */ = sqlx::query!("SELECT text FROM lorries WHERE path = ?", path)
[INFO] [stdout]      |                   ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `lorry` (bin "lorry" test) due to 49 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `lorry` (bin "lorry") due to 49 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "b4d1e6f07e6ab8e42b384bac2e65229aacb7ba3635ba0a103e9ccd89bc6935af", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b4d1e6f07e6ab8e42b384bac2e65229aacb7ba3635ba0a103e9ccd89bc6935af", kill_on_drop: false }`
[INFO] [stdout] b4d1e6f07e6ab8e42b384bac2e65229aacb7ba3635ba0a103e9ccd89bc6935af
