Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/platform/packages/shared/kbn-es/src/utils/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,12 @@ export async function setupServerlessVolumes(log: ToolingLog, options: Serverles
}
if (clean && exists) {
log.info('Cleaning existing object store.');
await Fsp.rm(objectStorePath, { recursive: true, force: true });
try {
await Fsp.rm(objectStorePath, { recursive: true, force: true });
} catch (error) {
// Fall back to sudo if needed, CI user can have issues removing old state
await execa('sudo', ['rm', '-rf', objectStorePath]);
}
}

if (clean || !exists) {
Expand Down