Unable to export due to prisma timeout
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
For exporting a base, try setting BIG_TRANSACTION_TIMEOUT in your env and restarting the service.
Let me know how it goes.
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.
@HynLcc PR submitted. https://github.com/teableio/teable/pull/2971/changes/18ce11c11a7d2079b7c323fbf12cbed18258f589
@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.