Lerna/NX Unable to set journal_mode: SqliteFailure
studioopro
TRIALOP
2 years ago
I Issue Description:
I'm experiencing a SQLite database lock error in our CI/CD pipeline while using Lerna and NX. The error occurs only in the pipeline environment, while the same operations work correctly in local development.
Error Message:
"Unable to set journal_mode: SqliteFailure(Error { code: DatabaseBusy, extended_code: 5 }, Some("database is locked"))"
Details:
- The error is specific to CI/CD pipeline execution
- Local development environment works without issues
- Using Lerna with NX for monorepo management
- The error suggests concurrent access attempts to the SQLite database used by NX for caching
Environment:
- Lerna + NX setup
- SQLite database for NX cache
Steps to Reproduce:
- Pipeline triggers build process
- NX attempts to access its cache database
- SQLite lock error occurs
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies