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:

  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

2 years ago

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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...