When running pure new installation, enter email in the UI, got "Error sending email - try again?"
docker-compose logs -f cap-web
Attaching to cap-web
cap-web | ▲ Next.js 15.5.4
cap-web | - Local: http://localhost:3000
cap-web | - Network: http://0.0.0.0:3000
cap-web |
cap-web | ✓ Starting...
cap-web | Waiting 5 seconds to run migrations
cap-web | ✓ Ready in 740ms
cap-web | 🔍 DB migrations triggered
cap-web | 💿 Running DB migrations...
cap-web | 💿 Migrations run successfully!
cap-web | [next-auth][warn][DEBUG_ENABLED]
cap-web | https://next-auth.js.org/warnings#debug_enabled
cap-web | timestamp=2025-11-24T19:17:20.584Z level=INFO fiber=#29 message="Using CAP_AWS_ACCESS_KEY and CAP_AWS_SECRET_KEY"
cap-web | [next-auth][warn][DEBUG_ENABLED]
cap-web | https://next-auth.js.org/warnings#debug_enabled
cap-web | [next-auth][debug][adapter_getUserByEmail] { args: [ 'xxx@gmail.com' ] }
cap-web | [next-auth][error][adapter_error_getUserByEmail]
cap-web | https://next-auth.js.org/errors#adapter_error_getuserbyemail Failed query: select `id`, `name`, `lastName`, `email`, `emailVerified`, `image`, `stripeCustomerId`, `stripeSubscriptionId`, `thirdPartyStripeSubscriptionId`, `stripeSubscriptionStatus`, `stripeSubscriptionPriceId`, `preferences`, `activeOrganizationId`, `created_at`, `updated_at`, `onboardingSteps`, `onboarding_completed_at`, `customBucket`, `inviteQuota`, `defaultOrgId` from `users` where `users`.`email` = ? limit ?
cap-web | params: xxx@gmail.com,1 {
cap-web | message: 'Failed query: select `id`, `name`, `lastName`, `email`, `emailVerified`, `image`, `stripeCustomerId`, `stripeSubscriptionId`, `thirdPartyStripeSubscriptionId`, `stripeSubscriptionStatus`, `stripeSubscriptionPriceId`, `preferences`, `activeOrganizationId`, `created_at`, `updated_at`, `onboardingSteps`, `onboarding_completed_at`, `customBucket`, `inviteQuota`, `defaultOrgId` from `users` where `users`.`email` = ? limit ?\n' +
cap-web | 'params: xxx@gmail.com,1',
cap-web | stack: 'Error: Failed query: select `id`, `name`, `lastName`, `email`, `emailVerified`, `image`, `stripeCustomerId`, `stripeSubscriptionId`, `thirdPartyStripeSubscriptionId`, `stripeSubscriptionStatus`, `stripeSubscriptionPriceId`, `preferences`, `activeOrganizationId`, `created_at`, `updated_at`, `onboardingSteps`, `onboarding_completed_at`, `customBucket`, `inviteQuota`, `defaultOrgId` from `users` where `users`.`email` = ? limit ?\n' +
cap-web | 'params: xxx@gmail.com,1\n' +
cap-web | ' at eu.queryWithCache (/app/apps/web/.next/server/chunks/_6c5e8774._.js:12:31523)\n' +
cap-web | ' at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n' +
cap-web | ' at async eu.execute (/app/apps/web/.next/server/chunks/_6c5e8774._.js:12:34362)\n' +
cap-web | ' at async getUserByEmail (/app/apps/web/.next/server/chunks/_3de31538._.js:67:3408)',
cap-web | name: 'Error'
cap-web | }
cap-web | Error [GetUserByEmailError]: Failed query: select `id`, `name`, `lastName`, `email`, `emailVerified`, `image`, `stripeCustomerId`, `stripeSubscriptionId`, `thirdPartyStripeSubscriptionId`, `stripeSubscriptionStatus`, `stripeSubscriptionPriceId`, `preferences`, `activeOrganizationId`, `created_at`, `updated_at`, `onboardingSteps`, `onboarding_completed_at`, `customBucket`, `inviteQuota`, `defaultOrgId` from `users` where `users`.`email` = ? limit ?
cap-web | params: xxx@gmail.com,1
cap-web | at eu.queryWithCache (.next/server/chunks/_6c5e8774._.js:12:31523)
cap-web | at async eu.execute (.next/server/chunks/_6c5e8774._.js:12:34362)
cap-web | at async getUserByEmail (.next/server/chunks/_3de31538._.js:67:3408) {
cap-web | code: undefined
cap-web | }
Interesting that cap-web can run even if db docker is killed, having same error. my concert where it connects for the db or the db connection errors are all are summarized in that error i get ?
Issue:
When running pure new installation, enter email in the UI, got "Error sending email - try again?"
Error:
Things tried:
Remove all mysql security configs and run root/nopass - same results.
RESEND credentials are set(and working with testing with cURL)
CAPS_AWS_* are set and the S3 as well
docker exec -it ps-mysql mysql -uxxx -pxxx xxx -e "SHOW TABLES;"show no tables in the
db_name, means no migration ran.I don't have other mysql services on this server.
Same outcome with credentials or without.
Interesting that cap-web can run even if db docker is killed, having same error. my concert where it connects for the db or the db connection errors are all are summarized in that error i get ?
Please help
docker-compose.yml:
.env: