Skip to content

Instantly share code, notes, and snippets.

@cascer1
Created April 9, 2026 06:17
Show Gist options
  • Select an option

  • Save cascer1/ed7b9ac12d35e5559795f360e47119fc to your computer and use it in GitHub Desktop.

Select an option

Save cascer1/ed7b9ac12d35e5559795f360e47119fc to your computer and use it in GitHub Desktop.
Pangolin startup log after upgrading to 1.17
> @fosrl/pangolin@0.0.0 start
> ENVIRONMENT=prod node dist/migrations.mjs && ENVIRONMENT=prod NODE_ENV=development node --enable-source-maps dist/server.mjs
Starting migrations from version 1.16.0
Migrations to run: 1.17.0
Running migration 1.17.0
Running setup script 1.17.0...
Found 6 existing userOrgs role assignment(s) to migrate
Found 0 existing userInvites role assignment(s) to migrate
Failed to migrate db: SqliteError: FOREIGN KEY constraint failed
at file:///app/dist/migrations.mjs:4666:29
at sqliteTransaction (/app/node_modules/better-sqlite3/lib/methods/transaction.js:65:24)
at Object.migration32 [as run] (file:///app/dist/migrations.mjs:4669:7)
at executeScripts (file:///app/dist/migrations.mjs:4790:27)
at async runMigrations (file:///app/dist/migrations.mjs:4747:7)
at async run (file:///app/dist/migrations.mjs:4720:3)
at async file:///app/dist/migrations.mjs:4718:1 {
code: 'SQLITE_CONSTRAINT_FOREIGNKEY'
}
Failed to run migration 1.17.0: SqliteError: FOREIGN KEY constraint failed
at file:///app/dist/migrations.mjs:4666:29
at sqliteTransaction (/app/node_modules/better-sqlite3/lib/methods/transaction.js:65:24)
at Object.migration32 [as run] (file:///app/dist/migrations.mjs:4669:7)
at executeScripts (file:///app/dist/migrations.mjs:4790:27)
at async runMigrations (file:///app/dist/migrations.mjs:4747:7)
at async run (file:///app/dist/migrations.mjs:4720:3)
at async file:///app/dist/migrations.mjs:4718:1 {
code: 'SQLITE_CONSTRAINT_FOREIGNKEY'
}
Migration process failed: SqliteError: FOREIGN KEY constraint failed
at file:///app/dist/migrations.mjs:4666:29
at sqliteTransaction (/app/node_modules/better-sqlite3/lib/methods/transaction.js:65:24)
at Object.migration32 [as run] (file:///app/dist/migrations.mjs:4669:7)
at executeScripts (file:///app/dist/migrations.mjs:4790:27)
at async runMigrations (file:///app/dist/migrations.mjs:4747:7)
at async run (file:///app/dist/migrations.mjs:4720:3)
at async file:///app/dist/migrations.mjs:4718:1 {
code: 'SQLITE_CONSTRAINT_FOREIGNKEY'
}
Error running migrations: SqliteError: FOREIGN KEY constraint failed
at file:///app/dist/migrations.mjs:4666:29
at sqliteTransaction (/app/node_modules/better-sqlite3/lib/methods/transaction.js:65:24)
at Object.migration32 [as run] (file:///app/dist/migrations.mjs:4669:7)
at executeScripts (file:///app/dist/migrations.mjs:4790:27)
at async runMigrations (file:///app/dist/migrations.mjs:4747:7)
at async run (file:///app/dist/migrations.mjs:4720:3)
at async file:///app/dist/migrations.mjs:4718:1 {
code: 'SQLITE_CONSTRAINT_FOREIGNKEY'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment