Tanner Scadden
Tanner Scadden
Explore posts from servers
DTDrizzle Team
Created by Tanner Scadden on 10/3/2024 in #help
Max connection issues
I am running into max connection issues when I am using supabase within an application hosted in a serverless environment (vercel). I've done everything I can find by the docs, but if I have a spike of 300+ users on my app at once, I start to run into a lot of max connection errors. I am using trpc to help batch request and limit connections made. I create the postgres connection outside of drizzle, set max connections to 3, and pass the instance in. I am using transaction mode in supabase so it uses supavisor. I have prepared statements set to false. Does anyone have any advice that might be harder to come by? I am not as familiar with serverless environments and am about to pull the plug and move it over to a long-standing server to help my app scale. Went through this guide as well https://github.com/orgs/supabase/discussions/22305 Thanks!
7 replies
RRailway
Created by Tanner Scadden on 5/9/2023 in #✋|help
pnpm v8
pnpm v8 has a major version bump for lock.yaml. This is causing any builds to fail where the lock file is generated with pnpm v8. Examples can be found in projectId a2ab11df-7f4e-4ea5-8c53-1f345f0fc425 under staging environment.
3 replies
RRailway
Created by Tanner Scadden on 3/5/2023 in #✋|help
Branch stuck loading after renaming it on github - no longer linked
4 replies
RRailway
Created by Tanner Scadden on 9/22/2022 in #✋|help
Root Directory `` does not exist
Getting this error randomly in my builds. Started tonight, will throw error sometimes, if I push again it doesn't. ProjectID: a2ab11df-7f4e-4ea5-8c53-1f345f0fc425
7 replies
RRailway
Created by Tanner Scadden on 8/15/2022 in #✋|help
monorepo .next folder not included in docker image
ProjectId: a2ab11df-7f4e-4ea5-8c53-1f345f0fc425 Using Nixpack and turborepo. Build runs fine, but when it runs the start command it logs out
Could not find a production build in the '/app/apps/client/.next' directory.
Could not find a production build in the '/app/apps/client/.next' directory.
I can tell it to build on the start command again, but half the time that will run into this error:
next build
internal:build: info - Linting and checking validity of types...
internal:build: events.js:377
internal:build: throw er; // Unhandled 'error' event
internal:build: ^
internal:build:
internal:build: Error: spawn /nix/store/6jibg9l09nvjf96f21cf16fmk4qhsfw1-nodejs-14.20.0/bin/node EAGAIN
internal:build: at Process.ChildProcess._handle.onexit (internal/child_process.js:277:19)
internal:build: at onErrorNT (internal/child_process.js:472:16)
internal:build: at processTicksAndRejections (internal/process/task_queues.js:82:21)
internal:build: Emitted 'error' event on ChildProcess instance at:
internal:build: at Process.ChildProcess._handle.onexit (internal/child_process.js:283:12)
internal:build: at onErrorNT (internal/child_process.js:472:16)
internal:build: at processTicksAndRejections (internal/process/task_queues.js:82:21) {
internal:build: errno: -11,
internal:build: code: 'EAGAIN',
internal:build: syscall: 'spawn /nix/store/6jibg9l09nvjf96f21cf16fmk4qhsfw1-nodejs-14.20.0/bin/node',
internal:build: path: '/nix/store/6jibg9l09nvjf96f21cf16fmk4qhsfw1-nodejs-14.20.0/bin/node',
internal:build: spawnargs: [
internal:build: '/app/node_modules/next/dist/compiled/jest-worker/processChild.js'
internal:build: ]
internal:build: }
internal:build: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
next build
internal:build: info - Linting and checking validity of types...
internal:build: events.js:377
internal:build: throw er; // Unhandled 'error' event
internal:build: ^
internal:build:
internal:build: Error: spawn /nix/store/6jibg9l09nvjf96f21cf16fmk4qhsfw1-nodejs-14.20.0/bin/node EAGAIN
internal:build: at Process.ChildProcess._handle.onexit (internal/child_process.js:277:19)
internal:build: at onErrorNT (internal/child_process.js:472:16)
internal:build: at processTicksAndRejections (internal/process/task_queues.js:82:21)
internal:build: Emitted 'error' event on ChildProcess instance at:
internal:build: at Process.ChildProcess._handle.onexit (internal/child_process.js:283:12)
internal:build: at onErrorNT (internal/child_process.js:472:16)
internal:build: at processTicksAndRejections (internal/process/task_queues.js:82:21) {
internal:build: errno: -11,
internal:build: code: 'EAGAIN',
internal:build: syscall: 'spawn /nix/store/6jibg9l09nvjf96f21cf16fmk4qhsfw1-nodejs-14.20.0/bin/node',
internal:build: path: '/nix/store/6jibg9l09nvjf96f21cf16fmk4qhsfw1-nodejs-14.20.0/bin/node',
internal:build: spawnargs: [
internal:build: '/app/node_modules/next/dist/compiled/jest-worker/processChild.js'
internal:build: ]
internal:build: }
internal:build: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
50 replies