usebruno/bruno · error · Error
Unable to create default workspace: too many existing worksp
Error message
Unable to create default workspace: too many existing workspace directories
What it means
Error "Unable to create default workspace: too many existing workspace directories" thrown in usebruno/bruno.
Source
Thrown at packages/bruno-electron/src/store/default-workspace.js:242
return this.initializationPromise;
}
async initializeDefaultWorkspace(options = {}) {
const { migrateFromPreferences = true, recoveredData = null } = options;
const configDir = app.getPath('userData');
const baseWorkspacePath = path.join(configDir, 'default-workspace');
let workspacePath = baseWorkspacePath;
let counter = 1;
while (fs.existsSync(workspacePath) && counter < MAX_WORKSPACE_CREATION_ATTEMPTS) {
workspacePath = `${baseWorkspacePath}-${counter}`;
counter++;
}
if (counter >= MAX_WORKSPACE_CREATION_ATTEMPTS) {
throw new Error('Unable to create default workspace: too many existing workspace directories');
}
fs.mkdirSync(workspacePath, { recursive: true });
fs.mkdirSync(path.join(workspacePath, 'collections'), { recursive: true });
fs.mkdirSync(path.join(workspacePath, 'environments'), { recursive: true });
const workspaceConfig = {
opencollection: OPENCOLLECTION_VERSION,
info: {
name: 'My Workspace',
type: WORKSPACE_TYPE
},
collections: [],
specs: [],
docs: ''
};
// Copy recovered environments to new workspaceView on GitHub (pinned to 9bdd81c7bd)
Solutions
- Remove or archive old default workspace directories, then restart Bruno.
- Point Bruno to an existing workspace manually.
When it happens
Trigger: Thrown at packages/bruno-electron/src/store/default-workspace.js:242 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of usebruno/bruno@9bdd81c7bd (2026-08-13).
Data as JSON: /api/errors/4f68ff87eb5d16b4.
Report an issue: GitHub.