READINESS_PROBE_ATTEMPTS_EXCEEDED Unknown Error on Mastra Cloud

[ERROR]
[10/10/2025, 07:49:30 PM] - Build process failed for build d8582adc-83d6-468d-907a-c50255bb0bc9 and project 98f828f3-6977-4762-b990-1abf5ab9dab8: {"message":"Unknown error","details":{"message":"Unknown error","domain":"BUILDER","category":"SYSTEM","details":{}},"code":"READINESS_PROBE_ATTEMPTS_EXCEEDED"}
[ERROR]
[10/10/2025, 07:49:30 PM] - Build process failed for build d8582adc-83d6-468d-907a-c50255bb0bc9 and project 98f828f3-6977-4762-b990-1abf5ab9dab8: {"message":"Unknown error","details":{"message":"Unknown error","domain":"BUILDER","category":"SYSTEM","details":{}},"code":"READINESS_PROBE_ATTEMPTS_EXCEEDED"}
All my deployments started failing with this suddenly, any clue?
10 Replies
Mastra Triager
GitHub
[DISCORD:1426406572447502346] READINESS_PROBE_ATTEMPTS_EXCEEDED Unk...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1426406572447502346 [ERROR] [10/10/2025, 07:49:30 PM] - Build process failed for build d8582adc-83d6-468d-...
kumareth
kumarethOP7d ago
any update on this?
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
kumareth
kumarethOP7d ago
[ERROR]
[10/14/2025, 11:27:01 AM] - Build process failed for build c2df68d6-611c-427a-a185-e3b7fa440a7c and project 8fe79136-0761-4b76-8f33-87817027213d: {"message":"Failed to analyze Mastra application: src/generated/prisma/runtime/library.js (3:7): \"default\" is not exported by \"\u0000node:os?commonjs-external\", imported by \"src/generated/prisma/runtime/library.js\".","details":{"message":"Failed to analyze Mastra application: src/generated/prisma/runtime/library.js (3:7): \"default\" is not exported by \"\u0000node:os?commonjs-external\", imported by \"src/generated/prisma/runtime/library.js\".","domain":"DEPLOYER","category":"SYSTEM","details":{}},"code":"DEPLOYER_BUNDLER_ANALYZE_FAILED"}
[ERROR]
[10/14/2025, 11:27:01 AM] - Failed to analyze Mastra application: src/generated/prisma/runtime/library.js (3:7): "default" is not exported by "node:os?commonjs-external", imported by "src/generated/prisma/runtime/library.js".
[ERROR]
[10/14/2025, 11:27:01 AM] - Build process failed for build c2df68d6-611c-427a-a185-e3b7fa440a7c and project 8fe79136-0761-4b76-8f33-87817027213d: {"message":"Failed to analyze Mastra application: src/generated/prisma/runtime/library.js (3:7): \"default\" is not exported by \"\u0000node:os?commonjs-external\", imported by \"src/generated/prisma/runtime/library.js\".","details":{"message":"Failed to analyze Mastra application: src/generated/prisma/runtime/library.js (3:7): \"default\" is not exported by \"\u0000node:os?commonjs-external\", imported by \"src/generated/prisma/runtime/library.js\".","domain":"DEPLOYER","category":"SYSTEM","details":{}},"code":"DEPLOYER_BUNDLER_ANALYZE_FAILED"}
[ERROR]
[10/14/2025, 11:27:01 AM] - Failed to analyze Mastra application: src/generated/prisma/runtime/library.js (3:7): "default" is not exported by "node:os?commonjs-external", imported by "src/generated/prisma/runtime/library.js".
Now I am tackling this.
// Mark Prisma and database packages as external to avoid bundling issues with __dirname
bundler: {
externals: [
'@prisma/client',
'.prisma/client',
'@prisma/engines',
'@prisma/client/runtime/*',
'@prisma/client/runtime/library',
'@/generated/prisma',
'@/generated/prisma/*',
],
sourcemap: true,
},
// Mark Prisma and database packages as external to avoid bundling issues with __dirname
bundler: {
externals: [
'@prisma/client',
'.prisma/client',
'@prisma/engines',
'@prisma/client/runtime/*',
'@prisma/client/runtime/library',
'@/generated/prisma',
'@/generated/prisma/*',
],
sourcemap: true,
},
Prisma v6.6 @Grayson @Grayson https://discord.com/channels/1309558646228779139/1395444677586456717/1427712454217040036
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
kumareth
kumarethOP7d ago
Deleted because I kept getting that error message so I thought restarting the server would help, but I do still see the same error
_roamin_
_roamin_6d ago
Hi @kumareth ! Could you share a deployment id and your project slug?
mewtwo
mewtwo3d ago
Hey, I was just having problems with Prisma. 1) My local environment kept saying "Bundling..." instead of restarting after changes. 2) 7 out of 10 times the dev command failed with RollupError. After removing all imports of PrismaClient, everything worked. Then after some googling I noticed my schema.prisma had provider = "prisma-client-js", but some examples using Hono had provider = "prisma-client". So what solve my problem was: - Changing from -js to just prisma-client and regenerating the client - Chaning the imports from generated/prisma (which meant /generated/prisma/index) to /generated/prisma/client
generator client {
provider = "prisma-client"
output = "../src/generated/prisma"
}
generator client {
provider = "prisma-client"
output = "../src/generated/prisma"
}
And I don't know about the bundler.externals. At least in my local env (windows) it didn't make any difference
kumareth
kumarethOP2d ago
Thank you so much! I'll try this! I "resolved" this and some other errors I was seeing related to Prisma by using raw sql instead. Other build errors that I only saw on Mastra Cloud builds (sadly I don't have a log of it anymore to help you debug). Moved hosting to vercel instead for now. But, then I don't get a production playground, hopefully we get the playground on production builds soon 🙏 @Victor That works for Prisma!! Thanks~ can you share your bundler config in mastra?
bundler: {
externals: [
// Prisma packages (no longer used in workflows, but keep for safety)
'@prisma/client',
'.prisma/client',
'@prisma/engines',
'@prisma/client/runtime/*',
'@prisma/client/runtime/library',
'@/generated/prisma',
'@/generated/prisma/*',
'@/generated/prisma/client',
// PostgreSQL client (used in CSV workflow)
'pg',
'pg-pool',
'pg-native',
// Playwright/Stagehand (browser automation - large binary dependencies)
'playwright-core',
'playwright',
'@browserbasehq/stagehand',
// Peer dependencies of stagehand that need to be available at runtime
'dotenv',
'deepmerge',
],
sourcemap: true,
},
bundler: {
externals: [
// Prisma packages (no longer used in workflows, but keep for safety)
'@prisma/client',
'.prisma/client',
'@prisma/engines',
'@prisma/client/runtime/*',
'@prisma/client/runtime/library',
'@/generated/prisma',
'@/generated/prisma/*',
'@/generated/prisma/client',
// PostgreSQL client (used in CSV workflow)
'pg',
'pg-pool',
'pg-native',
// Playwright/Stagehand (browser automation - large binary dependencies)
'playwright-core',
'playwright',
'@browserbasehq/stagehand',
// Peer dependencies of stagehand that need to be available at runtime
'dotenv',
'deepmerge',
],
sourcemap: true,
},
mewtwo
mewtwo2d ago
glad it helped you! but my bundler is just bundler: { externals: ["ioredis", "ai"] } I tried with pg, prisma, prisma/client, but it changed nothing, so I removed and keep as before. Also I don't use Mastra Cloud, I'm using AWS ECS/docker and github actions to deploy I think the bundler options are currently lacking details on the documentation. I don't get exactly what happens changing those options

Did you find this page helpful?