error returnedfrom database: (code: 5) database is locked

Open 💬 5 comments Opened Jun 17, 2026 by wuaingxuagnxa

What version of the Codex App are you using (From “About Codex” dialog)?

26.609.4995.0

What subscription do you have?

plus

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What issue are you seeing?

Codex cannot access its local database.
The app cannot finish launching until its SQLite database is accessible.
Database path: Path unavailable in app-server startup error
Close other Codex applications, then click Retry to check whether access has beenrestored. If the database cannot be opened, Back Up and Rebuild moves it aside sothe app can create a fresh one.
Error: (code=1, signal=null).
Most recent error: Error: failed to initialize sqlite state runtime underWwsl.localhost\Ubuntu-22.04\home\x\.codex: failed to initialize stateruntime at \\wsl.localhost\Ubuntu-22.04\home\x\.codex: error returnedfrom database: (code: 5) database is locked
Retry
Back Up and Rebuild
Quit

What steps can reproduce the bug?

runCodexInWindowsSubsystemForLinux = true

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗