[INFO] cloning repository https://github.com/ChristianNoelSchmid/drive_backup
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ChristianNoelSchmid/drive_backup" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChristianNoelSchmid%2Fdrive_backup", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChristianNoelSchmid%2Fdrive_backup'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 07759c2d59af6ebdd224de9cff8af5cfaa65ac54
[INFO] checking ChristianNoelSchmid/drive_backup against master#292be5c7c05138d753bbd4b30db7a3f1a5c914f7 for pr-148271
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChristianNoelSchmid%2Fdrive_backup" "/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/ChristianNoelSchmid/drive_backup
[INFO] finished tweaking git repo https://github.com/ChristianNoelSchmid/drive_backup
[INFO] tweaked toml for git repo https://github.com/ChristianNoelSchmid/drive_backup written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ChristianNoelSchmid/drive_backup on toolchain 292be5c7c05138d753bbd4b30db7a3f1a5c914f7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/ChristianNoelSchmid/drive_backup 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" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded sqlx-macros v0.7.3
[INFO] [stderr]   Downloaded atomic-write-file v0.1.2
[INFO] [stderr]   Downloaded sqlx-macros-core v0.7.3
[INFO] [stderr]   Downloaded sqlx-postgres v0.7.3
[INFO] [stderr]   Downloaded sqlx-mysql v0.7.3
[INFO] [stderr]   Downloaded sqlx-sqlite v0.7.3
[INFO] [stderr]   Downloaded sqlx-core v0.7.3
[INFO] [stderr]   Downloaded sqlx v0.7.3
[INFO] [stderr]   Downloaded sqlformat v0.2.3
[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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] de4cc1eabf96ec53805db3d2fd241139d09048975416ff8fa516ab4864debc87
[INFO] running `Command { std: "docker" "start" "-a" "de4cc1eabf96ec53805db3d2fd241139d09048975416ff8fa516ab4864debc87", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "de4cc1eabf96ec53805db3d2fd241139d09048975416ff8fa516ab4864debc87", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "de4cc1eabf96ec53805db3d2fd241139d09048975416ff8fa516ab4864debc87", kill_on_drop: false }`
[INFO] [stdout] de4cc1eabf96ec53805db3d2fd241139d09048975416ff8fa516ab4864debc87
[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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0690d3f23f724e471684b3eea7333a25134136c9498544dfe8dc142df54d48cd
[INFO] running `Command { std: "docker" "start" "-a" "0690d3f23f724e471684b3eea7333a25134136c9498544dfe8dc142df54d48cd", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v2.0.48
[INFO] [stderr]    Compiling serde v1.0.196
[INFO] [stderr]    Compiling num-traits v0.2.17
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]    Compiling thiserror v1.0.56
[INFO] [stderr]    Compiling serde_json v1.0.113
[INFO] [stderr]    Compiling crossbeam-utils v0.8.19
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling pin-project-lite v0.2.13
[INFO] [stderr]    Compiling tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling memchr v2.7.1
[INFO] [stderr]    Compiling zerocopy v0.7.32
[INFO] [stderr]    Compiling futures-sink v0.3.30
[INFO] [stderr]    Compiling tinyvec v1.6.0
[INFO] [stderr]     Checking parking_lot_core v0.9.9
[INFO] [stderr]    Compiling smallvec v1.13.1
[INFO] [stderr]    Compiling allocator-api2 v0.2.16
[INFO] [stderr]     Checking getrandom v0.2.12
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling bytes v1.5.0
[INFO] [stderr]     Checking parking_lot v0.12.1
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling unicode-bidi v0.3.15
[INFO] [stderr]    Compiling bitflags v2.4.2
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling futures-io v0.3.30
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]     Checking ahash v0.8.7
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]     Checking signal-hook-registry v1.4.1
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]     Checking mio v0.8.10
[INFO] [stderr]     Checking socket2 v0.5.5
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling unicode_categories v0.1.1
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling crc-catalog v2.4.0
[INFO] [stderr]    Compiling iana-time-zone v0.1.60
[INFO] [stderr]    Compiling ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling ryu v1.0.16
[INFO] [stderr]    Compiling log v0.4.20
[INFO] [stderr]    Compiling itoa v1.0.10
[INFO] [stderr]    Compiling rustix v0.38.31
[INFO] [stderr]    Compiling chrono v0.4.33
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]     Checking hashbrown v0.14.3
[INFO] [stderr]    Compiling crc v3.0.1
[INFO] [stderr]    Compiling cc v1.0.83
[INFO] [stderr]    Compiling unicode-normalization v0.1.22
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling crossbeam-queue v0.3.11
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling futures-channel v0.3.30
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling linux-raw-sys v0.4.13
[INFO] [stderr]    Compiling event-listener v2.5.3
[INFO] [stderr]    Compiling tokio v1.36.0
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]     Checking idna v0.5.0
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling flume v0.11.0
[INFO] [stderr]    Compiling nix v0.27.1
[INFO] [stderr]    Compiling unicode-segmentation v1.10.1
[INFO] [stderr]    Compiling urlencoding v2.1.3
[INFO] [stderr]    Compiling url v2.5.0
[INFO] [stderr]    Compiling fastrand v2.0.1
[INFO] [stderr]     Checking indexmap v2.2.2
[INFO] [stderr]    Compiling libsqlite3-sys v0.27.0
[INFO] [stderr]    Compiling hashlink v0.8.4
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling crc32fast v1.4.0
[INFO] [stderr]     Checking crossbeam-deque v0.8.5
[INFO] [stderr]     Checking miniz_oxide v0.7.1
[INFO] [stderr]     Checking predicates v3.1.0
[INFO] [stderr]     Checking glob v0.3.1
[INFO] [stderr]    Compiling atomic-write-file v0.1.2
[INFO] [stderr]     Checking rayon-core v1.12.1
[INFO] [stderr]     Checking flate2 v1.0.28
[INFO] [stderr]    Compiling futures-executor v0.3.30
[INFO] [stderr]    Compiling tempfile v3.10.0
[INFO] [stderr]    Compiling serde_derive v1.0.196
[INFO] [stderr]    Compiling thiserror-impl v1.0.56
[INFO] [stderr]    Compiling tracing-attributes v0.1.27
[INFO] [stderr]    Compiling tokio-macros v2.2.0
[INFO] [stderr]    Compiling futures-macro v0.3.30
[INFO] [stderr]    Compiling mockall_derive v0.12.1
[INFO] [stderr]    Compiling async-stream-impl v0.3.5
[INFO] [stderr]    Compiling async-recursion v1.0.5
[INFO] [stderr]    Compiling async-trait v0.1.77
[INFO] [stderr]     Checking async-stream v0.3.5
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling tokio-stream v0.1.14
[INFO] [stderr]     Checking mockall v0.12.1
[INFO] [stderr]     Checking tokio-util v0.7.10
[INFO] [stderr]    Compiling either v1.9.0
[INFO] [stderr]    Compiling itertools v0.12.1
[INFO] [stderr]     Checking rayon v1.8.1
[INFO] [stderr]     Checking sqlformat v0.2.3
[INFO] [stderr]     Checking sqlx-core v0.7.3
[INFO] [stderr]     Checking sqlx-sqlite v0.7.3
[INFO] [stderr]    Compiling sqlx-macros-core v0.7.3
[INFO] [stderr]    Compiling sqlx-macros v0.7.3
[INFO] [stderr]     Checking sqlx v0.7.3
[INFO] [stderr]     Checking drive_backup v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: error returned from database: (code: 14) unable to open database file
[INFO] [stdout]   --> src/history_service/data_layer.rs:75:12
[INFO] [stdout]    |
[INFO] [stdout] 75 |         Ok(sqlx::query!("SELECT MAX(id) as max_id FROM files")
[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]   --> src/history_service/data_layer.rs:79:12
[INFO] [stdout]    |
[INFO] [stdout] 79 |           Ok(sqlx::query_as!(DirModel,
[INFO] [stdout]    |  ____________^
[INFO] [stdout] 80 | |             "SELECT id, parent_dir_id, dir_name FROM dirs WHERE dir_name = ?", dir_name
[INFO] [stdout] 81 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_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]   --> src/history_service/data_layer.rs:85:12
[INFO] [stdout]    |
[INFO] [stdout] 85 |           Ok(sqlx::query_as!(DirModel,
[INFO] [stdout]    |  ____________^
[INFO] [stdout] 86 | |             "SELECT id, parent_dir_id, dir_name FROM dirs WHERE parent_dir_id = ?", dir_id
[INFO] [stdout] 87 | |         )
[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]   --> src/history_service/data_layer.rs:92:12
[INFO] [stdout]    |
[INFO] [stdout] 92 |           Ok(sqlx::query_as!(FileModel, "
[INFO] [stdout]    |  ____________^
[INFO] [stdout] 93 | |             SELECT version, id, file_name, backup_ts, hsh FROM files 
[INFO] [stdout] 94 | |             WHERE dir_id = ? AND file_name = ?
[INFO] [stdout] 95 | |             ORDER BY backup_ts DESC LIMIT 1
[INFO] [stdout] 96 | |             ", dir_id, file_name
[INFO] [stdout] 97 | |         )
[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]    --> src/history_service/data_layer.rs:102:12
[INFO] [stdout]     |
[INFO] [stdout] 102 |           Ok(sqlx::query_as!(FileModel, "
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 103 | |             SELECT version, id, file_name, backup_ts, hsh FROM files 
[INFO] [stdout] 104 | |             WHERE dir_id = ? AND file_name = ?
[INFO] [stdout] 105 | |             ", dir_id, file_name
[INFO] [stdout] 106 | |         )
[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]    --> src/history_service/data_layer.rs:110:12
[INFO] [stdout]     |
[INFO] [stdout] 110 |         Ok(sqlx::query!("INSERT INTO dirs (parent_dir_id, dir_name) VALUES (? ,?)", parent_dir_id, dir_name)
[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]    --> src/history_service/data_layer.rs:114:9
[INFO] [stdout]     |
[INFO] [stdout] 114 | /         sqlx::query!(
[INFO] [stdout] 115 | |             "INSERT INTO files (version, dir_id, id, file_name, backup_ts, hsh) VALUES (?, ?, ?, ?, ?, ?)",
[INFO] [stdout] 116 | |             VERSION, dir_id, file_id, file_name, ts, file_hsh
[INFO] [stdout] 117 | |         )
[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]    --> src/history_service/data_layer.rs:123:25
[INFO] [stdout]     |
[INFO] [stdout] 123 |           let latest_id = sqlx::query!("SELECT id, MAX(backup_ts) as ts FROM files WHERE dir_id = ? and file_name = ?",
[INFO] [stdout]     |  _________________________^
[INFO] [stdout] 124 | |             dir_id, file_name
[INFO] [stdout] 125 | |         ).fetch_one(self.db).await?.id.unwrap();
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> src/history_service/data_layer.rs:127:9
[INFO] [stdout]     |
[INFO] [stdout] 127 |         sqlx::query!("UPDATE files SET backup_ts = ? WHERE id = ?", ts, latest_id)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> src/history_service/data_layer.rs:133:24
[INFO] [stdout]     |
[INFO] [stdout] 133 |           let mut rows = sqlx::query!(
[INFO] [stdout]     |  ________________________^
[INFO] [stdout] 134 | |             r#"SELECT MAX(backup_ts) as "max_ts!: NaiveDateTime", dir_id, file_name, hsh FROM files
[INFO] [stdout] 135 | |              GROUP BY dir_id, file_name"#
[INFO] [stdout] 136 | |         ).fetch(self.db);
[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]    --> src/history_service/data_layer.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 | /                 sqlx::query!(
[INFO] [stdout] 142 | |                     "INSERT INTO files (version, dir_id, file_name, backup_ts, hsh)
[INFO] [stdout] 143 | |                     VALUES (?, ?, ?, ?, NULL)",
[INFO] [stdout] 144 | |                     VERSION, row.dir_id, row.file_name, current_run_ts
[INFO] [stdout] 145 | |                 ).execute(self.db).await.unwrap();
[INFO] [stdout]     | |_________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> src/history_service/data_layer.rs:152:9
[INFO] [stdout]     |
[INFO] [stdout] 152 |         sqlx::query!("DELETE FROM files WHERE id = ?", file_id).execute(self.db).await?;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error returned from database: (code: 14) unable to open database file
[INFO] [stdout]   --> src/history_service/data_layer.rs:75:12
[INFO] [stdout]    |
[INFO] [stdout] 75 |         Ok(sqlx::query!("SELECT MAX(id) as max_id FROM files")
[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]   --> src/history_service/data_layer.rs:79:12
[INFO] [stdout]    |
[INFO] [stdout] 79 |           Ok(sqlx::query_as!(DirModel,
[INFO] [stdout]    |  ____________^
[INFO] [stdout] 80 | |             "SELECT id, parent_dir_id, dir_name FROM dirs WHERE dir_name = ?", dir_name
[INFO] [stdout] 81 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_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]   --> src/history_service/data_layer.rs:85:12
[INFO] [stdout]    |
[INFO] [stdout] 85 |           Ok(sqlx::query_as!(DirModel,
[INFO] [stdout]    |  ____________^
[INFO] [stdout] 86 | |             "SELECT id, parent_dir_id, dir_name FROM dirs WHERE parent_dir_id = ?", dir_id
[INFO] [stdout] 87 | |         )
[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]   --> src/history_service/data_layer.rs:92:12
[INFO] [stdout]    |
[INFO] [stdout] 92 |           Ok(sqlx::query_as!(FileModel, "
[INFO] [stdout]    |  ____________^
[INFO] [stdout] 93 | |             SELECT version, id, file_name, backup_ts, hsh FROM files 
[INFO] [stdout] 94 | |             WHERE dir_id = ? AND file_name = ?
[INFO] [stdout] 95 | |             ORDER BY backup_ts DESC LIMIT 1
[INFO] [stdout] 96 | |             ", dir_id, file_name
[INFO] [stdout] 97 | |         )
[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]    --> src/history_service/data_layer.rs:102:12
[INFO] [stdout]     |
[INFO] [stdout] 102 |           Ok(sqlx::query_as!(FileModel, "
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 103 | |             SELECT version, id, file_name, backup_ts, hsh FROM files 
[INFO] [stdout] 104 | |             WHERE dir_id = ? AND file_name = ?
[INFO] [stdout] 105 | |             ", dir_id, file_name
[INFO] [stdout] 106 | |         )
[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]    --> src/history_service/data_layer.rs:110:12
[INFO] [stdout]     |
[INFO] [stdout] 110 |         Ok(sqlx::query!("INSERT INTO dirs (parent_dir_id, dir_name) VALUES (? ,?)", parent_dir_id, dir_name)
[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]    --> src/history_service/data_layer.rs:114:9
[INFO] [stdout]     |
[INFO] [stdout] 114 | /         sqlx::query!(
[INFO] [stdout] 115 | |             "INSERT INTO files (version, dir_id, id, file_name, backup_ts, hsh) VALUES (?, ?, ?, ?, ?, ?)",
[INFO] [stdout] 116 | |             VERSION, dir_id, file_id, file_name, ts, file_hsh
[INFO] [stdout] 117 | |         )
[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]    --> src/history_service/data_layer.rs:123:25
[INFO] [stdout]     |
[INFO] [stdout] 123 |           let latest_id = sqlx::query!("SELECT id, MAX(backup_ts) as ts FROM files WHERE dir_id = ? and file_name = ?",
[INFO] [stdout]     |  _________________________^
[INFO] [stdout] 124 | |             dir_id, file_name
[INFO] [stdout] 125 | |         ).fetch_one(self.db).await?.id.unwrap();
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> src/history_service/data_layer.rs:127:9
[INFO] [stdout]     |
[INFO] [stdout] 127 |         sqlx::query!("UPDATE files SET backup_ts = ? WHERE id = ?", ts, latest_id)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> src/history_service/data_layer.rs:133:24
[INFO] [stdout]     |
[INFO] [stdout] 133 |           let mut rows = sqlx::query!(
[INFO] [stdout]     |  ________________________^
[INFO] [stdout] 134 | |             r#"SELECT MAX(backup_ts) as "max_ts!: NaiveDateTime", dir_id, file_name, hsh FROM files
[INFO] [stdout] 135 | |              GROUP BY dir_id, file_name"#
[INFO] [stdout] 136 | |         ).fetch(self.db);
[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]    --> src/history_service/data_layer.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 | /                 sqlx::query!(
[INFO] [stdout] 142 | |                     "INSERT INTO files (version, dir_id, file_name, backup_ts, hsh)
[INFO] [stdout] 143 | |                     VALUES (?, ?, ?, ?, NULL)",
[INFO] [stdout] 144 | |                     VERSION, row.dir_id, row.file_name, current_run_ts
[INFO] [stdout] 145 | |                 ).execute(self.db).await.unwrap();
[INFO] [stdout]     | |_________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error returned from database: (code: 14) unable to open database file
[INFO] [stdout]    --> src/history_service/data_layer.rs:152:9
[INFO] [stdout]     |
[INFO] [stdout] 152 |         sqlx::query!("DELETE FROM files WHERE id = ?", file_id).execute(self.db).await?;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/history_service/data_layer.rs:75:12
[INFO] [stdout]    |
[INFO] [stdout] 75 |           Ok(sqlx::query!("SELECT MAX(id) as max_id FROM files")
[INFO] [stdout]    |  ____________^
[INFO] [stdout] 76 | |             .fetch_optional(self.db).await?.and_then(|r| r.max_id.and_then(|id| Some(id as i64))).unwrap_or(0))
[INFO] [stdout]    | |___________________________________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/history_service/data_layer.rs:110:12
[INFO] [stdout]     |
[INFO] [stdout] 110 |           Ok(sqlx::query!("INSERT INTO dirs (parent_dir_id, dir_name) VALUES (? ,?)", parent_dir_id, dir_name)
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 111 | |             .execute(self.db).await?.last_insert_rowid())
[INFO] [stdout]     | |____________________________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/history_service/data_layer.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 | /                 sqlx::query!(
[INFO] [stdout] 142 | |                     "INSERT INTO files (version, dir_id, file_name, backup_ts, hsh)
[INFO] [stdout] 143 | |                     VALUES (?, ?, ?, ?, NULL)",
[INFO] [stdout] 144 | |                     VERSION, row.dir_id, row.file_name, current_run_ts
[INFO] [stdout] 145 | |                 ).execute(self.db).await.unwrap();
[INFO] [stdout]     | |________________________________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `drive_backup` (lib) due to 15 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/history_service/data_layer.rs:75:12
[INFO] [stdout]    |
[INFO] [stdout] 75 |           Ok(sqlx::query!("SELECT MAX(id) as max_id FROM files")
[INFO] [stdout]    |  ____________^
[INFO] [stdout] 76 | |             .fetch_optional(self.db).await?.and_then(|r| r.max_id.and_then(|id| Some(id as i64))).unwrap_or(0))
[INFO] [stdout]    | |___________________________________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/history_service/data_layer.rs:110:12
[INFO] [stdout]     |
[INFO] [stdout] 110 |           Ok(sqlx::query!("INSERT INTO dirs (parent_dir_id, dir_name) VALUES (? ,?)", parent_dir_id, dir_name)
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 111 | |             .execute(self.db).await?.last_insert_rowid())
[INFO] [stdout]     | |____________________________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/history_service/data_layer.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 | /                 sqlx::query!(
[INFO] [stdout] 142 | |                     "INSERT INTO files (version, dir_id, file_name, backup_ts, hsh)
[INFO] [stdout] 143 | |                     VALUES (?, ?, ?, ?, NULL)",
[INFO] [stdout] 144 | |                     VERSION, row.dir_id, row.file_name, current_run_ts
[INFO] [stdout] 145 | |                 ).execute(self.db).await.unwrap();
[INFO] [stdout]     | |________________________________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `drive_backup` (lib test) due to 15 previous errors
[INFO] running `Command { std: "docker" "inspect" "0690d3f23f724e471684b3eea7333a25134136c9498544dfe8dc142df54d48cd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0690d3f23f724e471684b3eea7333a25134136c9498544dfe8dc142df54d48cd", kill_on_drop: false }`
[INFO] [stdout] 0690d3f23f724e471684b3eea7333a25134136c9498544dfe8dc142df54d48cd
