[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] 6d54fef8f097bb2c1a50a3c36f1dccf68d3abcaa
[INFO] checking CodethinkLabs-Mirror-Test/lorry against master#3f6250a7bb79e600d9036bbc7c8f65af43933643 for pr-147859
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCodethinkLabs-Mirror-Test%2Florry" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/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-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/CodethinkLabs-Mirror-Test/lorry on toolchain 3f6250a7bb79e600d9036bbc7c8f65af43933643
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3f6250a7bb79e600d9036bbc7c8f65af43933643" "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" "+3f6250a7bb79e600d9036bbc7c8f65af43933643" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded jsonwebtoken v10.2.0
[INFO] [stderr]   Downloaded work-queue v0.1.4
[INFO] [stderr]   Downloaded sdd v3.0.8
[INFO] [stderr]   Downloaded askama_web_derive v0.1.0
[INFO] [stderr]   Downloaded graphql-introspection-query v0.2.0
[INFO] [stderr]   Downloaded reserve-port v2.2.0
[INFO] [stderr]   Downloaded rust-multipart-rfc7578_2 v0.8.0
[INFO] [stderr]   Downloaded mockito v1.7.0
[INFO] [stderr]   Downloaded cron v0.15.0
[INFO] [stderr]   Downloaded askama_web v0.14.2
[INFO] [stderr]   Downloaded graphql-parser v0.4.1
[INFO] [stderr]   Downloaded axum-test v17.3.0
[INFO] [stderr]   Downloaded graphql_client v0.14.0
[INFO] [stderr]   Downloaded scc v2.3.4
[INFO] [stderr]   Downloaded prometheus-client v0.23.1
[INFO] [stderr]   Downloaded loom v0.6.1
[INFO] [stderr]   Downloaded iso8601 v0.6.3
[INFO] [stderr]   Downloaded octocrab v0.48.1
[INFO] [stderr]   Downloaded cargo_metadata v0.23.1
[INFO] [stderr]   Downloaded graphql_client_codegen v0.14.0
[INFO] [stderr]   Downloaded winnow v0.6.26
[INFO] [stderr]   Downloaded graphql_query_derive v0.14.0
[INFO] [stderr]   Downloaded hostname v0.4.1
[INFO] [stderr]   Downloaded cargo-platform v0.3.1
[INFO] [stderr]   Downloaded relative-path v2.0.1
[INFO] [stderr]   Downloaded gitlab v0.1801.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+3f6250a7bb79e600d9036bbc7c8f65af43933643" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6fa61c6dd35dd9deb4f4d9f5e49721877544e411c1dfa851e691292aa5b098d7
[INFO] running `Command { std: "docker" "start" "-a" "6fa61c6dd35dd9deb4f4d9f5e49721877544e411c1dfa851e691292aa5b098d7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6fa61c6dd35dd9deb4f4d9f5e49721877544e411c1dfa851e691292aa5b098d7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6fa61c6dd35dd9deb4f4d9f5e49721877544e411c1dfa851e691292aa5b098d7", kill_on_drop: false }`
[INFO] [stdout] 6fa61c6dd35dd9deb4f4d9f5e49721877544e411c1dfa851e691292aa5b098d7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+3f6250a7bb79e600d9036bbc7c8f65af43933643" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 936360e7a3a8adc041c6abbbbcddfebded2abbf15859eb9811e47638b73e940d
[INFO] running `Command { std: "docker" "start" "-a" "936360e7a3a8adc041c6abbbbcddfebded2abbf15859eb9811e47638b73e940d", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.172
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]     Checking smallvec v1.15.0
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]     Checking memchr v2.7.4
[INFO] [stderr]     Checking hashbrown v0.15.3
[INFO] [stderr]    Compiling stable_deref_trait v1.2.0
[INFO] [stderr]    Compiling zerocopy v0.8.25
[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 writeable v0.6.1
[INFO] [stderr]    Compiling litemap v0.8.0
[INFO] [stderr]     Checking indexmap v2.9.0
[INFO] [stderr]     Checking serde_json v1.0.145
[INFO] [stderr]    Compiling jobserver v0.1.33
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking socket2 v0.5.9
[INFO] [stderr]     Checking mio v1.0.3
[INFO] [stderr]    Compiling cc v1.2.23
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]     Checking signal-hook-registry v1.4.5
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]    Compiling bytes v1.10.1
[INFO] [stderr]    Compiling icu_normalizer_data v2.0.0
[INFO] [stderr]    Compiling icu_properties_data v2.0.1
[INFO] [stderr]    Compiling rustversion v1.0.20
[INFO] [stderr]    Compiling openssl v0.10.72
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]     Checking zeroize v1.8.1
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]     Checking rustls-pki-types v1.12.0
[INFO] [stderr]     Checking getrandom v0.3.3
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]    Compiling openssl-probe v0.1.6
[INFO] [stderr]    Compiling rustls v0.23.27
[INFO] [stderr]     Checking anstyle-parse v0.2.6
[INFO] [stderr]     Checking colorchoice v1.0.3
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]     Checking anstyle v1.0.10
[INFO] [stderr]     Checking anstyle-query v1.1.2
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking is_terminal_polyfill v1.70.1
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]     Checking anstream v0.6.18
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]    Compiling openssl-sys v0.9.108
[INFO] [stderr]    Compiling libz-sys v1.1.22
[INFO] [stderr]    Compiling libssh2-sys v0.3.1
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling libgit2-sys v0.18.1+1.9.0
[INFO] [stderr]    Compiling libsqlite3-sys v0.30.1
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]     Checking rand v0.9.1
[INFO] [stderr]     Checking strsim v0.11.1
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling darling_core v0.20.11
[INFO] [stderr]     Checking clap_lex v0.7.4
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]     Checking clap_builder v4.5.38
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling tokio v1.45.0
[INFO] [stderr]    Compiling serde_derive v1.0.228
[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.31
[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 tracing v0.1.44
[INFO] [stderr]     Checking zerovec v0.11.2
[INFO] [stderr]     Checking zerotrie v0.2.2
[INFO] [stderr]    Compiling thiserror-impl v2.0.12
[INFO] [stderr]     Checking serde v1.0.228
[INFO] [stderr]     Checking tinystr v0.8.1
[INFO] [stderr]     Checking icu_locale_core v2.0.0
[INFO] [stderr]     Checking potential_utf v0.1.2
[INFO] [stderr]     Checking icu_collections v2.0.0
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking icu_provider v2.0.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]     Checking thiserror v2.0.12
[INFO] [stderr]     Checking icu_normalizer v2.0.0
[INFO] [stderr]     Checking icu_properties v2.0.1
[INFO] [stderr]     Checking axum-core v0.5.2
[INFO] [stderr]     Checking serde_path_to_error v0.1.17
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]    Compiling axum-macros v0.5.0
[INFO] [stderr]     Checking rustls-webpki v0.103.3
[INFO] [stderr]    Compiling darling_macro v0.20.11
[INFO] [stderr]     Checking tokio-util v0.7.15
[INFO] [stderr]     Checking tower v0.5.2
[INFO] [stderr]     Checking tokio-stream v0.1.17
[INFO] [stderr]     Checking h2 v0.4.10
[INFO] [stderr]     Checking tower-http v0.6.6
[INFO] [stderr]    Compiling darling v0.20.11
[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]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]     Checking webpki-roots v1.0.0
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking thread_local v1.1.8
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling crc v3.3.0
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling event-listener v5.4.0
[INFO] [stderr]     Checking clap v4.5.38
[INFO] [stderr]     Checking tracing-subscriber v0.3.22
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]     Checking tokio-rustls v0.26.2
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]    Compiling psm v0.1.26
[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 rustix v1.0.7
[INFO] [stderr]     Checking chrono v0.4.41
[INFO] [stderr]    Compiling sqlx-core v0.8.6
[INFO] [stderr]    Compiling flume v0.11.1
[INFO] [stderr]    Compiling atoi v2.0.0
[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]     Checking linux-raw-sys v0.9.4
[INFO] [stderr]    Compiling winnow v0.7.10
[INFO] [stderr]     Checking axum v0.8.4
[INFO] [stderr]     Checking hyper-rustls v0.27.7
[INFO] [stderr]    Compiling askama_parser v0.14.0
[INFO] [stderr]     Checking reqwest v0.12.24
[INFO] [stderr]    Compiling sqlx-sqlite v0.8.6
[INFO] [stderr]     Checking ahash v0.8.12
[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]    Compiling graphql-parser v0.4.1
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]     Checking headers-core v0.3.0
[INFO] [stderr]     Checking serde_yaml v0.9.34+deprecated
[INFO] [stderr]     Checking headers v0.4.1
[INFO] [stderr]    Compiling derive_builder_macro v0.20.2
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.6
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling graphql_client_codegen v0.14.0
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]     Checking tempfile v3.20.0
[INFO] [stderr]     Checking fancy-regex v0.14.0
[INFO] [stderr]    Compiling askama_derive v0.14.0
[INFO] [stderr]     Checking serde_spanned v0.6.8
[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]    Compiling async-trait v0.1.88
[INFO] [stderr]     Checking nom v8.0.0
[INFO] [stderr]    Compiling cookie v0.18.1
[INFO] [stderr]     Checking toml_write v0.1.1
[INFO] [stderr]     Checking glob v0.3.2
[INFO] [stderr]    Compiling prometheus-client v0.23.1
[INFO] [stderr]     Checking winnow v0.6.26
[INFO] [stderr]    Compiling sqlx-macros v0.8.6
[INFO] [stderr]     Checking time v0.3.41
[INFO] [stderr]    Compiling anyhow v1.0.98
[INFO] [stderr]     Checking toml_edit v0.22.26
[INFO] [stderr]     Checking cron v0.15.0
[INFO] [stderr]     Checking chumsky v0.9.3
[INFO] [stderr]     Checking askama v0.14.0
[INFO] [stderr]     Checking axum-extra v0.10.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking derive_builder v0.20.2
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]     Checking itertools v0.14.0
[INFO] [stderr]    Compiling serde_with_macros v3.12.0
[INFO] [stderr]    Compiling askama_web_derive v0.1.0
[INFO] [stderr]    Compiling prometheus-client-derive-encode v0.4.2
[INFO] [stderr]     Checking hostname v0.4.1
[INFO] [stderr]    Compiling graphql_query_derive v0.14.0
[INFO] [stderr]     Checking email-encoding v0.4.1
[INFO] [stderr]     Checking instant v0.1.13
[INFO] [stderr]     Checking sdd v3.0.8
[INFO] [stderr]     Checking dtoa v1.0.10
[INFO] [stderr]     Checking yansi v1.0.1
[INFO] [stderr]     Checking email_address v0.2.9
[INFO] [stderr]     Checking quoted_printable v0.5.1
[INFO] [stderr]     Checking similar v2.7.0
[INFO] [stderr]     Checking diff v0.1.13
[INFO] [stderr]     Checking lettre v0.11.16
[INFO] [stderr]     Checking scc v2.3.4
[INFO] [stderr]     Checking pretty_assertions v1.4.1
[INFO] [stderr]     Checking graphql_client v0.14.0
[INFO] [stderr]     Checking serde_with v3.12.0
[INFO] [stderr]     Checking backoff v0.4.0
[INFO] [stderr]     Checking mockito v1.7.0
[INFO] [stderr]     Checking toml v0.8.22
[INFO] [stderr]     Checking askama_web v0.14.2
[INFO] [stderr]     Checking sqlx v0.8.6
[INFO] [stderr]     Checking iso8601 v0.6.3
[INFO] [stderr]     Checking gitlab v0.1801.0
[INFO] [stderr]     Checking work-queue v0.1.4
[INFO] [stderr]     Checking rust-multipart-rfc7578_2 v0.8.0
[INFO] [stderr]     Checking reserve-port v2.2.0
[INFO] [stderr]    Compiling serial_test_derive v3.2.0
[INFO] [stderr]     Checking auto-future v1.0.0
[INFO] [stderr]     Checking bytesize v2.0.1
[INFO] [stderr]     Checking git-server v2.7.0 (/opt/rustwide/workdir/git-server)
[INFO] [stderr]     Checking axum-test v17.3.0
[INFO] [stderr]    Compiling indoc v2.0.6
[INFO] [stderr]     Checking serial_test v3.2.0
[INFO] [stderr]     Checking 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:353:13
[INFO] [stdout]     |
[INFO] [stdout] 353 | ...   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:360:30
[INFO] [stdout]     |
[INFO] [stdout] 360 |           let failed_lorries = sqlx::query!(
[INFO] [stdout]     |  ______________________________^
[INFO] [stdout] 361 | |             r#"
[INFO] [stdout] 362 | | SELECT
[INFO] [stdout] 363 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 389 | |             offset
[INFO] [stdout] 390 | |         )
[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:425:26
[INFO] [stdout]     |
[INFO] [stdout] 425 |           let total_jobs = sqlx::query!(
[INFO] [stdout]     |  __________________________^
[INFO] [stdout] 426 | |             "SELECT COUNT(*) AS count FROM jobs WHERE path = ?",
[INFO] [stdout] 427 | |             lorry_path
[INFO] [stdout] 428 | |         )
[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:435:20
[INFO] [stdout]     |
[INFO] [stdout] 435 |           let jobs = sqlx::query!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout] 436 | |             r#"
[INFO] [stdout] 437 | | SELECT 
[INFO] [stdout] 438 | |     jobs.id AS "id!: i64", 
[INFO] [stdout] ...   |
[INFO] [stdout] 455 | |             offset
[INFO] [stdout] 456 | |         )
[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:482:29
[INFO] [stdout]     |
[INFO] [stdout] 482 |         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:488:23
[INFO] [stdout]     |
[INFO] [stdout] 488 |           let lorries = sqlx::query!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 489 | |             r#"
[INFO] [stdout] 490 | | SELECT
[INFO] [stdout] 491 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 516 | |             offset
[INFO] [stdout] 517 | |         )
[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:558:9
[INFO] [stdout]     |
[INFO] [stdout] 558 | /         sqlx::query!(
[INFO] [stdout] 559 | |             r#"
[INFO] [stdout] 560 | | DELETE FROM notification_threshold;
[INFO] [stdout] 561 | | INSERT INTO notification_threshold (threshold) VALUES (?);
[INFO] [stdout] 562 | | "#,
[INFO] [stdout] 563 | |             threshold
[INFO] [stdout] 564 | |         )
[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:574:9
[INFO] [stdout]     |
[INFO] [stdout] 574 | /         sqlx::query!(
[INFO] [stdout] 575 | |             "
[INFO] [stdout] 576 | | SELECT
[INFO] [stdout] 577 | |   text,
[INFO] [stdout] ...   |
[INFO] [stdout] 590 | | ORDER BY (max(last_run.ended, last_attempted) + interval)"
[INFO] [stdout] 591 | |         )
[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:628:9
[INFO] [stdout]     |
[INFO] [stdout] 628 | /         sqlx::query!(
[INFO] [stdout] 629 | |             r#"
[INFO] [stdout] 630 | | SELECT
[INFO] [stdout] 631 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 653 | | "#,
[INFO] [stdout] 654 | |         )
[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:681:12
[INFO] [stdout]     |
[INFO] [stdout] 681 |           Ok(sqlx::query!(
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 682 | |             r#"
[INFO] [stdout] 683 | | SELECT refs.id, refs.name, ref_state.status, ref_state.successful
[INFO] [stdout] 684 | | FROM refs LEFT JOIN ref_state ON (refs.id = ref_state.ref_id) WHERE job_id = ?
[INFO] [stdout] 685 | |             "#,
[INFO] [stdout] 686 | |             job_id
[INFO] [stdout] 687 | |         )
[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:703:12
[INFO] [stdout]     |
[INFO] [stdout] 703 |           Ok(sqlx::query!(
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 704 | |             r#"
[INFO] [stdout] 705 | | SELECT id, kind, message FROM warnings WHERE job_id = ?
[INFO] [stdout] 706 | |             "#,
[INFO] [stdout] 707 | |             job_id
[INFO] [stdout] 708 | |         )
[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:719:50
[INFO] [stdout]     |
[INFO] [stdout] 719 |           let statuses: Vec<models::LorryStatus> = sqlx::query!(
[INFO] [stdout]     |  __________________________________________________^
[INFO] [stdout] 720 | |             r#"
[INFO] [stdout] 721 | | SELECT 
[INFO] [stdout] 722 | |     ordered.id AS "job_id!: i64",
[INFO] [stdout] ...   |
[INFO] [stdout] 739 | | "#
[INFO] [stdout] 740 | |         )
[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:761:19
[INFO] [stdout]     |
[INFO] [stdout] 761 |           let row = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 762 | |             r#"
[INFO] [stdout] 763 | | SELECT
[INFO] [stdout] 764 | |   text,
[INFO] [stdout] ...   |
[INFO] [stdout] 797 | | "#
[INFO] [stdout] 798 | |         )
[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:832:22
[INFO] [stdout]     |
[INFO] [stdout] 832 |           let result = sqlx::query!(
[INFO] [stdout]     |  ______________________^
[INFO] [stdout] 833 | |             r#"
[INFO] [stdout] 834 | | WITH running_jobs AS (
[INFO] [stdout] 835 | |     SELECT running_job FROM lorries WHERE running_job IS NOT NULL
[INFO] [stdout] ...   |
[INFO] [stdout] 847 | | "#
[INFO] [stdout] 848 | |         )
[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:861:29
[INFO] [stdout]     |
[INFO] [stdout] 861 |         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:882:13
[INFO] [stdout]     |
[INFO] [stdout] 882 | /             sqlx::query!(
[INFO] [stdout] 883 | |                 r#"
[INFO] [stdout] 884 | | INSERT INTO lorries
[INFO] [stdout] ...   |
[INFO] [stdout] 912 | |                 maintenance_secs,
[INFO] [stdout] 913 | |             )
[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:922:13
[INFO] [stdout]     |
[INFO] [stdout] 922 |             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:935:9
[INFO] [stdout]     |
[INFO] [stdout] 935 |         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:949:9
[INFO] [stdout]     |
[INFO] [stdout] 949 |         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:969:9
[INFO] [stdout]     |
[INFO] [stdout] 969 | /         sqlx::query!(
[INFO] [stdout] 970 | |             r#"
[INFO] [stdout] 971 | | SELECT 
[INFO] [stdout] 972 | |     jobs.id, 
[INFO] [stdout] ...   |
[INFO] [stdout] 985 | |             job_id
[INFO] [stdout] 986 | |         )
[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:1010:9
[INFO] [stdout]      |
[INFO] [stdout] 1010 | /         sqlx::query!(
[INFO] [stdout] 1011 | |             "UPDATE lorries SET priority = ? WHERE path = ?",
[INFO] [stdout] 1012 | |             state,
[INFO] [stdout] 1013 | |             path
[INFO] [stdout] 1014 | |         )
[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:1040:19
[INFO] [stdout]      |
[INFO] [stdout] 1040 |           let rec = sqlx::query!(
[INFO] [stdout]      |  ___________________^
[INFO] [stdout] 1041 | |             r#"
[INFO] [stdout] 1042 | | WITH window AS (
[INFO] [stdout] 1043 | |     SELECT (strftime('%s', 'now') - ?) AS seconds
[INFO] [stdout] ...    |
[INFO] [stdout] 1064 | |             path
[INFO] [stdout] 1065 | |         )
[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:1070:22
[INFO] [stdout]      |
[INFO] [stdout] 1070 |           let result = sqlx::query!(
[INFO] [stdout]      |  ______________________^
[INFO] [stdout] 1071 | |             r#"
[INFO] [stdout] 1072 | |     INSERT INTO jobs (
[INFO] [stdout] 1073 | |         host,
[INFO] [stdout] ...    |
[INFO] [stdout] 1091 | |             job_kind_str,
[INFO] [stdout] 1092 | |         )
[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:1095:9
[INFO] [stdout]      |
[INFO] [stdout] 1095 | /         sqlx::query!(
[INFO] [stdout] 1096 | |             r#"
[INFO] [stdout] 1097 | |     UPDATE lorries SET
[INFO] [stdout] 1098 | |         running_job = ?,
[INFO] [stdout] ...    |
[INFO] [stdout] 1104 | |             path,
[INFO] [stdout] 1105 | |         )
[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:1120:9
[INFO] [stdout]      |
[INFO] [stdout] 1120 | /         sqlx::query!(
[INFO] [stdout] 1121 | |             r#"
[INFO] [stdout] 1122 | |     UPDATE lorries
[INFO] [stdout] 1123 | |         SET
[INFO] [stdout] ...    |
[INFO] [stdout] 1128 | |             path
[INFO] [stdout] 1129 | |         )
[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:1156:9
[INFO] [stdout]      |
[INFO] [stdout] 1156 | /         sqlx::query!(
[INFO] [stdout] 1157 | |             r#"
[INFO] [stdout] 1158 | |     UPDATE jobs
[INFO] [stdout] 1159 | |         SET
[INFO] [stdout] ...    |
[INFO] [stdout] 1189 | |             path,
[INFO] [stdout] 1190 | |         )
[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:1207:30
[INFO] [stdout]      |
[INFO] [stdout] 1207 |                   let ref_id = sqlx::query!(
[INFO] [stdout]      |  ______________________________^
[INFO] [stdout] 1208 | |                     r#"
[INFO] [stdout] 1209 | | INSERT INTO refs (path, name)
[INFO] [stdout] 1210 | | VALUES (?, ?) ON CONFLICT DO UPDATE SET path = ?, name = ? RETURNING id
[INFO] [stdout] ...    |
[INFO] [stdout] 1215 | |                     name
[INFO] [stdout] 1216 | |                 )
[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:1220:17
[INFO] [stdout]      |
[INFO] [stdout] 1220 | /                 sqlx::query!(
[INFO] [stdout] 1221 | |                     r#"
[INFO] [stdout] 1222 | | INSERT INTO ref_state (job_id, ref_id, status, successful)
[INFO] [stdout] 1223 | | VALUES (?, ?, ?, ?)
[INFO] [stdout] ...    |
[INFO] [stdout] 1228 | |                     successful
[INFO] [stdout] 1229 | |                 )
[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:1242:17
[INFO] [stdout]      |
[INFO] [stdout] 1242 | /                 sqlx::query!(
[INFO] [stdout] 1243 | |                     r#"
[INFO] [stdout] 1244 | | INSERT INTO warnings (
[INFO] [stdout] 1245 | |     job_id,
[INFO] [stdout] ...    |
[INFO] [stdout] 1252 | |                     message,
[INFO] [stdout] 1253 | |                 )
[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:1266:29
[INFO] [stdout]      |
[INFO] [stdout] 1266 |           let notifications = sqlx::query_as!(
[INFO] [stdout]      |  _____________________________^
[INFO] [stdout] 1267 | |             models::Notification,
[INFO] [stdout] 1268 | |             r#"SELECT 
[INFO] [stdout] 1269 | |                 notifications.id, 
[INFO] [stdout] ...    |
[INFO] [stdout] 1278 | |             "#,
[INFO] [stdout] 1279 | |         )
[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:1287:9
[INFO] [stdout]      |
[INFO] [stdout] 1287 | /         sqlx::query!(
[INFO] [stdout] 1288 | |             "UPDATE notifications SET sent = 1 WHERE id = ?",
[INFO] [stdout] 1289 | |             notification_id
[INFO] [stdout] 1290 | |         )
[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:1302:9
[INFO] [stdout]      |
[INFO] [stdout] 1302 | /         sqlx::query!(
[INFO] [stdout] 1303 | |             "UPDATE notifications SET forge = ? WHERE id = ? AND forge IS NULL",
[INFO] [stdout] 1304 | |             forge,
[INFO] [stdout] 1305 | |             notification_id
[INFO] [stdout] 1306 | |         )
[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:1314:22
[INFO] [stdout]      |
[INFO] [stdout] 1314 |         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:353:13
[INFO] [stdout]     |
[INFO] [stdout] 353 | ...   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:360:30
[INFO] [stdout]     |
[INFO] [stdout] 360 |           let failed_lorries = sqlx::query!(
[INFO] [stdout]     |  ______________________________^
[INFO] [stdout] 361 | |             r#"
[INFO] [stdout] 362 | | SELECT
[INFO] [stdout] 363 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 389 | |             offset
[INFO] [stdout] 390 | |         )
[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:425:26
[INFO] [stdout]     |
[INFO] [stdout] 425 |           let total_jobs = sqlx::query!(
[INFO] [stdout]     |  __________________________^
[INFO] [stdout] 426 | |             "SELECT COUNT(*) AS count FROM jobs WHERE path = ?",
[INFO] [stdout] 427 | |             lorry_path
[INFO] [stdout] 428 | |         )
[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:435:20
[INFO] [stdout]     |
[INFO] [stdout] 435 |           let jobs = sqlx::query!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout] 436 | |             r#"
[INFO] [stdout] 437 | | SELECT 
[INFO] [stdout] 438 | |     jobs.id AS "id!: i64", 
[INFO] [stdout] ...   |
[INFO] [stdout] 455 | |             offset
[INFO] [stdout] 456 | |         )
[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:482:29
[INFO] [stdout]     |
[INFO] [stdout] 482 |         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:488:23
[INFO] [stdout]     |
[INFO] [stdout] 488 |           let lorries = sqlx::query!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 489 | |             r#"
[INFO] [stdout] 490 | | SELECT
[INFO] [stdout] 491 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 516 | |             offset
[INFO] [stdout] 517 | |         )
[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:558:9
[INFO] [stdout]     |
[INFO] [stdout] 558 | /         sqlx::query!(
[INFO] [stdout] 559 | |             r#"
[INFO] [stdout] 560 | | DELETE FROM notification_threshold;
[INFO] [stdout] 561 | | INSERT INTO notification_threshold (threshold) VALUES (?);
[INFO] [stdout] 562 | | "#,
[INFO] [stdout] 563 | |             threshold
[INFO] [stdout] 564 | |         )
[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:574:9
[INFO] [stdout]     |
[INFO] [stdout] 574 | /         sqlx::query!(
[INFO] [stdout] 575 | |             "
[INFO] [stdout] 576 | | SELECT
[INFO] [stdout] 577 | |   text,
[INFO] [stdout] ...   |
[INFO] [stdout] 590 | | ORDER BY (max(last_run.ended, last_attempted) + interval)"
[INFO] [stdout] 591 | |         )
[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:628:9
[INFO] [stdout]     |
[INFO] [stdout] 628 | /         sqlx::query!(
[INFO] [stdout] 629 | |             r#"
[INFO] [stdout] 630 | | SELECT
[INFO] [stdout] 631 | |   lorries.path,
[INFO] [stdout] ...   |
[INFO] [stdout] 653 | | "#,
[INFO] [stdout] 654 | |         )
[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:681:12
[INFO] [stdout]     |
[INFO] [stdout] 681 |           Ok(sqlx::query!(
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 682 | |             r#"
[INFO] [stdout] 683 | | SELECT refs.id, refs.name, ref_state.status, ref_state.successful
[INFO] [stdout] 684 | | FROM refs LEFT JOIN ref_state ON (refs.id = ref_state.ref_id) WHERE job_id = ?
[INFO] [stdout] 685 | |             "#,
[INFO] [stdout] 686 | |             job_id
[INFO] [stdout] 687 | |         )
[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:703:12
[INFO] [stdout]     |
[INFO] [stdout] 703 |           Ok(sqlx::query!(
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 704 | |             r#"
[INFO] [stdout] 705 | | SELECT id, kind, message FROM warnings WHERE job_id = ?
[INFO] [stdout] 706 | |             "#,
[INFO] [stdout] 707 | |             job_id
[INFO] [stdout] 708 | |         )
[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:719:50
[INFO] [stdout]     |
[INFO] [stdout] 719 |           let statuses: Vec<models::LorryStatus> = sqlx::query!(
[INFO] [stdout]     |  __________________________________________________^
[INFO] [stdout] 720 | |             r#"
[INFO] [stdout] 721 | | SELECT 
[INFO] [stdout] 722 | |     ordered.id AS "job_id!: i64",
[INFO] [stdout] ...   |
[INFO] [stdout] 739 | | "#
[INFO] [stdout] 740 | |         )
[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:761:19
[INFO] [stdout]     |
[INFO] [stdout] 761 |           let row = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 762 | |             r#"
[INFO] [stdout] 763 | | SELECT
[INFO] [stdout] 764 | |   text,
[INFO] [stdout] ...   |
[INFO] [stdout] 797 | | "#
[INFO] [stdout] 798 | |         )
[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:832:22
[INFO] [stdout]     |
[INFO] [stdout] 832 |           let result = sqlx::query!(
[INFO] [stdout]     |  ______________________^
[INFO] [stdout] 833 | |             r#"
[INFO] [stdout] 834 | | WITH running_jobs AS (
[INFO] [stdout] 835 | |     SELECT running_job FROM lorries WHERE running_job IS NOT NULL
[INFO] [stdout] ...   |
[INFO] [stdout] 847 | | "#
[INFO] [stdout] 848 | |         )
[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:861:29
[INFO] [stdout]     |
[INFO] [stdout] 861 |         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:882:13
[INFO] [stdout]     |
[INFO] [stdout] 882 | /             sqlx::query!(
[INFO] [stdout] 883 | |                 r#"
[INFO] [stdout] 884 | | INSERT INTO lorries
[INFO] [stdout] ...   |
[INFO] [stdout] 912 | |                 maintenance_secs,
[INFO] [stdout] 913 | |             )
[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:922:13
[INFO] [stdout]     |
[INFO] [stdout] 922 |             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:935:9
[INFO] [stdout]     |
[INFO] [stdout] 935 |         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:949:9
[INFO] [stdout]     |
[INFO] [stdout] 949 |         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:969:9
[INFO] [stdout]     |
[INFO] [stdout] 969 | /         sqlx::query!(
[INFO] [stdout] 970 | |             r#"
[INFO] [stdout] 971 | | SELECT 
[INFO] [stdout] 972 | |     jobs.id, 
[INFO] [stdout] ...   |
[INFO] [stdout] 985 | |             job_id
[INFO] [stdout] 986 | |         )
[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:1010:9
[INFO] [stdout]      |
[INFO] [stdout] 1010 | /         sqlx::query!(
[INFO] [stdout] 1011 | |             "UPDATE lorries SET priority = ? WHERE path = ?",
[INFO] [stdout] 1012 | |             state,
[INFO] [stdout] 1013 | |             path
[INFO] [stdout] 1014 | |         )
[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:1040:19
[INFO] [stdout]      |
[INFO] [stdout] 1040 |           let rec = sqlx::query!(
[INFO] [stdout]      |  ___________________^
[INFO] [stdout] 1041 | |             r#"
[INFO] [stdout] 1042 | | WITH window AS (
[INFO] [stdout] 1043 | |     SELECT (strftime('%s', 'now') - ?) AS seconds
[INFO] [stdout] ...    |
[INFO] [stdout] 1064 | |             path
[INFO] [stdout] 1065 | |         )
[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:1070:22
[INFO] [stdout]      |
[INFO] [stdout] 1070 |           let result = sqlx::query!(
[INFO] [stdout]      |  ______________________^
[INFO] [stdout] 1071 | |             r#"
[INFO] [stdout] 1072 | |     INSERT INTO jobs (
[INFO] [stdout] 1073 | |         host,
[INFO] [stdout] ...    |
[INFO] [stdout] 1091 | |             job_kind_str,
[INFO] [stdout] 1092 | |         )
[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:1095:9
[INFO] [stdout]      |
[INFO] [stdout] 1095 | /         sqlx::query!(
[INFO] [stdout] 1096 | |             r#"
[INFO] [stdout] 1097 | |     UPDATE lorries SET
[INFO] [stdout] 1098 | |         running_job = ?,
[INFO] [stdout] ...    |
[INFO] [stdout] 1104 | |             path,
[INFO] [stdout] 1105 | |         )
[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:1120:9
[INFO] [stdout]      |
[INFO] [stdout] 1120 | /         sqlx::query!(
[INFO] [stdout] 1121 | |             r#"
[INFO] [stdout] 1122 | |     UPDATE lorries
[INFO] [stdout] 1123 | |         SET
[INFO] [stdout] ...    |
[INFO] [stdout] 1128 | |             path
[INFO] [stdout] 1129 | |         )
[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:1156:9
[INFO] [stdout]      |
[INFO] [stdout] 1156 | /         sqlx::query!(
[INFO] [stdout] 1157 | |             r#"
[INFO] [stdout] 1158 | |     UPDATE jobs
[INFO] [stdout] 1159 | |         SET
[INFO] [stdout] ...    |
[INFO] [stdout] 1189 | |             path,
[INFO] [stdout] 1190 | |         )
[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:1207:30
[INFO] [stdout]      |
[INFO] [stdout] 1207 |                   let ref_id = sqlx::query!(
[INFO] [stdout]      |  ______________________________^
[INFO] [stdout] 1208 | |                     r#"
[INFO] [stdout] 1209 | | INSERT INTO refs (path, name)
[INFO] [stdout] 1210 | | VALUES (?, ?) ON CONFLICT DO UPDATE SET path = ?, name = ? RETURNING id
[INFO] [stdout] ...    |
[INFO] [stdout] 1215 | |                     name
[INFO] [stdout] 1216 | |                 )
[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:1220:17
[INFO] [stdout]      |
[INFO] [stdout] 1220 | /                 sqlx::query!(
[INFO] [stdout] 1221 | |                     r#"
[INFO] [stdout] 1222 | | INSERT INTO ref_state (job_id, ref_id, status, successful)
[INFO] [stdout] 1223 | | VALUES (?, ?, ?, ?)
[INFO] [stdout] ...    |
[INFO] [stdout] 1228 | |                     successful
[INFO] [stdout] 1229 | |                 )
[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:1242:17
[INFO] [stdout]      |
[INFO] [stdout] 1242 | /                 sqlx::query!(
[INFO] [stdout] 1243 | |                     r#"
[INFO] [stdout] 1244 | | INSERT INTO warnings (
[INFO] [stdout] 1245 | |     job_id,
[INFO] [stdout] ...    |
[INFO] [stdout] 1252 | |                     message,
[INFO] [stdout] 1253 | |                 )
[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:1266:29
[INFO] [stdout]      |
[INFO] [stdout] 1266 |           let notifications = sqlx::query_as!(
[INFO] [stdout]      |  _____________________________^
[INFO] [stdout] 1267 | |             models::Notification,
[INFO] [stdout] 1268 | |             r#"SELECT 
[INFO] [stdout] 1269 | |                 notifications.id, 
[INFO] [stdout] ...    |
[INFO] [stdout] 1278 | |             "#,
[INFO] [stdout] 1279 | |         )
[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:1287:9
[INFO] [stdout]      |
[INFO] [stdout] 1287 | /         sqlx::query!(
[INFO] [stdout] 1288 | |             "UPDATE notifications SET sent = 1 WHERE id = ?",
[INFO] [stdout] 1289 | |             notification_id
[INFO] [stdout] 1290 | |         )
[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:1302:9
[INFO] [stdout]      |
[INFO] [stdout] 1302 | /         sqlx::query!(
[INFO] [stdout] 1303 | |             "UPDATE notifications SET forge = ? WHERE id = ? AND forge IS NULL",
[INFO] [stdout] 1304 | |             forge,
[INFO] [stdout] 1305 | |             notification_id
[INFO] [stdout] 1306 | |         )
[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:1314:22
[INFO] [stdout]      |
[INFO] [stdout] 1314 |         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: `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: `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] [stderr] error: could not compile `lorry` (bin "lorry") due to 33 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `lorry` (bin "lorry" test) due to 33 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "936360e7a3a8adc041c6abbbbcddfebded2abbf15859eb9811e47638b73e940d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "936360e7a3a8adc041c6abbbbcddfebded2abbf15859eb9811e47638b73e940d", kill_on_drop: false }`
[INFO] [stdout] 936360e7a3a8adc041c6abbbbcddfebded2abbf15859eb9811e47638b73e940d
