Checksum File Parsing Error
Symptoms
Cause
Thesonamu.lock file is corrupted. Common causes:
- Sync interrupted (Ctrl+C) causing incomplete file save
- File is empty or has invalid JSON format
- Multiple processes modified the file simultaneously
Solutions
1. Delete Checksum File (Recommended)
2. Check File Contents
{}, delete and regenerate.
3. Prevention
- Wait for sync to complete before interrupting
- Don’t run
pnpm devin multiple terminals simultaneously
Migration File Conflict
Symptoms
Cause
Multiple migrations created on the same day have duplicate timestamps.Solutions
1. Manually Rename Files
2. Use Timestamp Format
Sonamu supportsYYYYMMDD_HHMMSS format:
Generated Column Error
Symptoms
Cause
This occurs when trying to modify a PostgreSQL Generated Column. Generated Columns are automatically computed from other column values and cannot be modified directly.Solutions
1. Drop and Recreate Generated Column
2. Modify entity.json
Timestamp Precision Error
Symptoms
Cause
Precision for PostgreSQLtimestamp type is not specified, causing mismatch with default value.
Solutions
1. Specify Precision in entity.json
2. Fix in Migration File
Foreign Key Constraint Error
Symptoms
Cause
Attempted to delete or modify a record that is being referenced.Solutions
1. Use CASCADE Option
2. Fix with Migration
Migration Rollback Failure
Symptoms
Cause
Migration file is missing or has improperly implementeddown() function.
Solutions
1. Implement down() Function
2. Complex Migration Rollback
Migration State Mismatch
Symptoms
Causes
- Migration file was deleted but record remains in DB
- Migrations were applied differently across environments