justjumper
justjumper
Explore posts from servers
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
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