From e682478d753d63e34595d7a2b1e120cee658a3a8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 7 Jun 2022 19:11:11 +0200 Subject: Create meta directory in server (or else sqlite fails) --- src/garage/server.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/garage/server.rs b/src/garage/server.rs index 9a1aa975..697d3358 100644 --- a/src/garage/server.rs +++ b/src/garage/server.rs @@ -33,6 +33,7 @@ pub async fn run_server(config_file: PathBuf) -> Result<(), Error> { info!("Opening database..."); let mut db_path = config.metadata_dir.clone(); + std::fs::create_dir_all(&db_path).expect("Unable to create Garage meta data directory"); let db = match config.db_engine.as_str() { "sled" => { db_path.push("db"); -- cgit v1.2.3