diff --git a/src/commands/write_buffer_server.rs b/src/commands/write_buffer_server.rs index e9667d381b..087ed61d2c 100644 --- a/src/commands/write_buffer_server.rs +++ b/src/commands/write_buffer_server.rs @@ -3,6 +3,7 @@ use tracing::{debug, info}; use std::env::VarError; +use std::fs; use std::net::SocketAddr; use std::sync::Arc; @@ -26,6 +27,8 @@ pub async fn main() -> Result<(), Box> { path.into_os_string().into_string().unwrap() } }; + fs::create_dir_all(&db_dir)?; + debug!("InfluxDB IOx Server using database directory: {:?}", db_dir); let storage = Arc::new(WriteBufferDatabases::new(&db_dir));