justjumper
justjumper
Explore posts from servers
CDCloudflare Developers
Created by justjumper on 3/4/2024 in #workers-help
Worker Subrequests 429 [Regional]
Note: The following issue ONLY affects requests coming from the Chicago timezone, so it likely a localized issue. Furthermore, to be clear, this is NOT an issue with hitting the worker subrequest limit. There are well under 50 requests occurring within the worker. We're on the Standard model anyways, so our limit is 1000 requests. We are finding that our worker intermittently receives 429s for subrequests. The request to the worker itself is fine, however within the worker code, the fetch requests that it makes to interact with other services, such as analytics (Amplitude) and database (Planetscale) result in 429s. Any idea what could be causing this?
6 replies
CDCloudflare Developers
Created by justjumper on 1/5/2024 in #general-help
Production Users Getting cf-mitigated header
No description
4 replies
CDCloudflare Developers
Created by justjumper on 12/25/2023 in #workers-help
Cloudflare Worker Deployment Branch URLs
Is it possible to have individual branch URLs for cloudflare workers deployments (similar to Cloudflare Pages)? Unfortunately cannot use Cloudflare Pages for this particular project as it requires smart placement. Thank you!
3 replies
RRailway
Created by justjumper on 11/15/2023 in #✋|help
Haven't been able to build Nextjs app since around a day ago: ERR_WORKER_OUT_OF_MEMORY
As noted in the title, our Nextjs app stopped being able to be built a day ago or so, each time we try to build it, it gives: ERR_WORKER_OUT_OF_MEMORY The full error looks something like this:
#12 ERROR: process "/bin/bash -ol pipefail -c pnpm run build" did not complete successfully: exit code: 1

-----

> [stage-0 8/10] RUN --mount=type=cache,id=s/ea06edaa-db43-4e96-8e97-988165650a07-next/cache,target=/app/.next/cache --mount=type=cache,id=s/ea06edaa-db43-4e96-8e97-988165650a07-node_modules/cache,target=/app/node_modules/.cache pnpm run build:

30.19 ~/_next/server/webpack-runtime.js.map

39.82 Warning: For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'npm i sharp', and Next.js will use it automatically for Image Optimization.

39.82 Read more: https://nextjs.org/docs/messages/sharp-missing-in-production

109.3 uncaughtException Error [ERR_WORKER_OUT_OF_MEMORY]: Worker terminated due to reaching memory limit: JS heap out of memory

109.3 at new NodeError (node:internal/errors:405:5)

109.3 at [kOnExit] (node:internal/worker:287:26)

109.3 at Worker.<computed>.onexit (node:internal/worker:209:20) {

109.3 code: 'ERR_WORKER_OUT_OF_MEMORY'

109.3 }

112.0  ELIFECYCLE  Command failed with exit code 1.

-----

Dockerfile:30

-------------------

28 | # node:build phase

29 | COPY . /app/.

30 | >>> RUN --mount=type=cache,id=s/ea06edaa-db43-4e96-8e97-988165650a07-next/cache,target=/app/.next/cache --mount=type=cache,id=s/ea06edaa-db43-4e96-8e97-988165650a07-node_modules/cache,target=/app/node_modules/.cache pnpm run build

31 |

32 |

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm run build" did not complete successfully: exit code: 1



Error: Docker build failed
#12 ERROR: process "/bin/bash -ol pipefail -c pnpm run build" did not complete successfully: exit code: 1

-----

> [stage-0 8/10] RUN --mount=type=cache,id=s/ea06edaa-db43-4e96-8e97-988165650a07-next/cache,target=/app/.next/cache --mount=type=cache,id=s/ea06edaa-db43-4e96-8e97-988165650a07-node_modules/cache,target=/app/node_modules/.cache pnpm run build:

30.19 ~/_next/server/webpack-runtime.js.map

39.82 Warning: For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'npm i sharp', and Next.js will use it automatically for Image Optimization.

39.82 Read more: https://nextjs.org/docs/messages/sharp-missing-in-production

109.3 uncaughtException Error [ERR_WORKER_OUT_OF_MEMORY]: Worker terminated due to reaching memory limit: JS heap out of memory

109.3 at new NodeError (node:internal/errors:405:5)

109.3 at [kOnExit] (node:internal/worker:287:26)

109.3 at Worker.<computed>.onexit (node:internal/worker:209:20) {

109.3 code: 'ERR_WORKER_OUT_OF_MEMORY'

109.3 }

112.0  ELIFECYCLE  Command failed with exit code 1.

-----

Dockerfile:30

-------------------

28 | # node:build phase

29 | COPY . /app/.

30 | >>> RUN --mount=type=cache,id=s/ea06edaa-db43-4e96-8e97-988165650a07-next/cache,target=/app/.next/cache --mount=type=cache,id=s/ea06edaa-db43-4e96-8e97-988165650a07-node_modules/cache,target=/app/node_modules/.cache pnpm run build

31 |

32 |

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm run build" did not complete successfully: exit code: 1



Error: Docker build failed
Our project ID is 82091a0b-2976-40b9-bb0f-784a7f99567f
4 replies
CDCloudflare Developers
Created by justjumper on 11/13/2023 in #general-help
Smart Placement Question
Does smart placement monolithically effect the entire Pages deployment or does it work on a per-route level? The reason I ask is because I have a next-on-pages deployment, with some of the routes being part of the frontend and other routes (api routes) being part of the backend. Thank you!
1 replies
RRailway
Created by justjumper on 11/10/2023 in #✋|help
Build never starts
Hey guys, we've been having an issue where our app just says "Waiting for build to start..." forever. It will do this for hours. We tried deleting and recreating the service and it doesn't seem to help. It's a Nextjs app (App Router). Any ideas? https://railway.app/project/82091a0b-2976-40b9-bb0f-784a7f99567f/service/ea06edaa-db43-4e96-8e97-988165650a07?id=dfe5bc12-5cc8-4283-9558-27122505b2a0
7 replies
RRailway
Created by justjumper on 10/12/2023 in #✋|help
Server overloaded -- How to Scale?
Hey guys, we're running into issues with our railway server being overloaded. We keep getting 503 errors Application failed to respond. Is there a way to scale our railway server / enable autoscaling? Thanks!
19 replies
RRailway
Created by justjumper on 10/5/2023 in #✋|help
Deleting services always fails
We're unable to delete two of our unused services: incandescent-roll and deleted. It says "Failed to delete <service name>" when we try. For reference, here are the project/service IDs: project/82091a0b-2976-40b9-bb0f-784a7f99567f/service/158befbb-fadc-441f-aa17-69b026643ca4 project/82091a0b-2976-40b9-bb0f-784a7f99567f/service/f26e8c0f-25ba-44c0-89c8-e6f1bdb8fe6f
6 replies