teable icon indicating copy to clipboard operation
teable copied to clipboard

Unable to export due to prisma timeout

Open ScriptJunky opened this issue 7 months ago • 4 comments

Describe the bug

❌ Base exported failed: 
Invalid `prisma.attachmentsTable.findMany()` invocation:


Transaction API error: Transaction already closed: A query cannot be executed on an expired transaction. The timeout for this transaction was 600000 ms, however 620392 ms passed since the start of the transaction. Consider increasing the interactive transaction timeout or doing less work in the transaction.
5 hours ago

To Reproduce Try to export a medium size deployment to a tea file.

Expected behavior Prisma can be tuned to avoid timeouts, and the export completes.

Screenshots If applicable, add screenshots to help explain your problem.

Platform (Please tell us which deployment version you are using) docker compose

ScriptJunky avatar Apr 07 '26 17:04 ScriptJunky

For exporting a base, try setting BIG_TRANSACTION_TIMEOUT in your env and restarting the service.

Let me know how it goes.

HynLcc avatar Apr 10 '26 13:04 HynLcc

That worked, thanks! I will fork the repo and submit a PR against the .env file that includes this change (commented out) with a brief description of it's purpose.

ScriptJunky avatar Apr 10 '26 13:04 ScriptJunky

@HynLcc PR submitted. https://github.com/teableio/teable/pull/2971/changes/18ce11c11a7d2079b7c323fbf12cbed18258f589

ScriptJunky avatar Apr 10 '26 16:04 ScriptJunky

@ScriptJunky thank you for the report and for confirming that BIG_TRANSACTION_TIMEOUT resolves the export timeout.

We already support this through environment configuration, and we are handling the remaining visibility as Help Center documentation rather than changing Docker example env files because the right timeout is deployment-specific. I am closing this as a configuration/documentation case.

HynLcc avatar Jul 06 '26 10:07 HynLcc