fix(bootstrap): Make S3/MinIO connection failure non-fatal
- Change from error to warn when bucket creation fails - Continue bootstrap without drive if MinIO not available - Prevents startup failure when S3 not configured
This commit is contained in:
parent
36fb7988cb
commit
8c24e25965
1 changed files with 2 additions and 2 deletions
|
|
@ -1836,8 +1836,8 @@ VAULT_CACHE_TTL=300
|
||||||
Self::upload_directory_recursive(&client, &path, &bucket, "/").await?;
|
Self::upload_directory_recursive(&client, &path, &bucket, "/").await?;
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!("Failed to create bucket {}: {:?}", bucket, e);
|
warn!("S3/MinIO not available, skipping bucket {}: {}", bucket, e);
|
||||||
return Err(anyhow::anyhow!("Failed to create bucket {}: {}. Check S3 credentials and endpoint configuration", bucket, e));
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue