--- title: 'DF9004: Onboarding State File Unreadable' description: 'The onboarding state file could not be read or written.' --- ## Message > The onboarding state file `{file}` could not be read or written. ## Cause `createOnboarding()` reads `/hub-ui-onboard.json` at start to learn whether the user disabled DevTools, and the Disable button writes it. The file exists but is not valid JSON, or the directory is not writable. ## Fix Delete the file if it is corrupt. If the directory is read-only, pass another `stateDir`. The default is `/node_modules/.devframe`. ## Source - [`packages/hub-ui-onboard/src/index.ts`](https://github.com/devframes/devframe/blob/main/packages/hub-ui-onboard/src/index.ts): `readDisabled` warns and treats the state as not disabled; `disable()` answers the request with status 500 and this code.