Lerna/NX Unable to set journal_mode: SqliteFailure

studiooproTRIAL

6 months 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 journalmode: SqliteFailure(Error { code: DatabaseBusy, extendedcode: 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:

  1. Pipeline triggers build process

  2. NX attempts to access its cache database

  3. SQLite lock error occurs

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

6 months ago

I'm a little confused here, we don't have a CI/CD pipeline?