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:
Rodrigo Rodriguez (Pragmatismo) 2025-12-27 23:15:51 -03:00
parent 36fb7988cb
commit 8c24e25965

View file

@ -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;
} }
} }
} }