`netlify dev` errors and hangs for large number of files
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- node.js, shell, typescript
- Área
- cli, performance
Línea de trabajo
Comienza reproduciendo netlify dev con los 302,005 archivos reportados en _site/, usando la configuración de Netlify mostrada. Rastrea el proceso de netlify dev y sus subshells repetidos de npm, y luego verifica que el servidor responda sin errores repetidos ni procesos zombie acumulándose.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
I have a large site with lots of files.
➜ find _site/ -type f | wc -l
302005
When running netlify dev I get the following error message printed many times over continuously in the terminal.
› Error: Netlify CLI has terminated unexpectedly
This is a problem with the Netlify CLI, not with your application.
If you recently updated the CLI, consider reverting to an older version by running:
npm install -g netlify-cli@VERSION
You can use any version from https://ntl.fyi/cli-versions.
Please report this problem at https://ntl.fyi/cli-error including the error details below.
While it says "including the error details below", there are no other error details printed.
The CPU is pegged at 100% and the server does not respond to HTTP requests. The Netlify CLI seems to be continuously starting subshells which are not waited on, creating many zombie processes. There are thousands of these started within a few seconds of running netlify dev.
➜ ps -ef
...
ian 2970231 2952121 0 07:23 pts/2 00:00:00 [sh] <defunct>
ian 2970233 2952121 0 07:23 pts/2 00:00:00 [sh] <defunct>
ian 2970244 2952121 0 07:23 pts/2 00:00:00 [sh] <defunct>
ian 2970246 2952121 0 07:23 pts/2 00:00:00 [sh] <defunct>
...
I notice subshells running npm in the output of ps from the same parent process.
ian 3006104 2952121 0 07:25 pts/2 00:00:00 /bin/sh -c npm -v
ian 3006017 2952121 0 07:25 pts/2 00:00:00 /bin/sh -c npm get prefix --global
The cli does not respond to Ctrl-C and I need to kill it with SIGKILL.
If I remove most of the files from the _site directory, the errors go away and the remainder of the files are served normally.
Steps to reproduce
- Run
netlify dev
Configuration
[build]
base = "."
publish = "_site/" # relative to `base` directory
command = "make fx-build"
# NOTE: This should match the Python version in `.python-version`.
environment = { PYTHON_VERSION = "3.13.5" }
[context.deploy-preview]
# Skip deploy previews for Renovate PRs (branches starting with "renovate/")
ignore = "sh -c '[ \"${HEAD#renovate/}\" != \"$HEAD\" ]'"
[[headers]]
for = "/v1/*"
[headers.values]
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
access-control-allow-origin = "*"
Environment
➜ npx envinfo --system --binaries --npmPackages netlify-cli --npmGlobalPackages netlify-cli
System:
OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 (Jammy Jellyfish)
CPU: (4) x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
Memory: 14.01 GB / 15.51 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 22.21.1 - /home/ian/.local/share/nodenv/versions/22.21.1/bin/node
npm: 10.9.4 - /home/ian/.local/share/nodenv/versions/22.21.1/bin/npm
npmPackages:
netlify-cli: 23.13.0 => 23.13.0
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.9k
- Forks
- 480
- Merge medio
- 1 d 15 h
- PR fusionados (30 d)
- 66
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de netlify/cli
-
db-status.test fails if the database is disabledPosiblemente ocupada @paulleephp la tomó hace 1 día. Abiertotype: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
`client-ip` is not an IP address when `x-forwarded-for` holds a list or a portPosiblemente ocupada @Dev-next-gen la tomó hace 22 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
`netlify dev` with `--cwd` from outside the project: every function 500s with "module is not defined in ES module scope" (`detectZisiBuilder` passes a string to `readPackageUp`)Posiblemente ocupada @bsplatt92 la tomó hace 63 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area: command: deploy area: docs type: feature
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
netlify/cli#1984 · 19 comentarios · 3 reacciones ·
Los mantenedores suelen responder en 1 día
-
type: bug
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
Los mantenedores suelen responder en 1 día
Todos los issues de netlify/cli
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
jessepollak/home#2223 ·
Los mantenedores suelen responder en 1 día
-
grep fixture corpus test follows the corpus's loop symlink under the receipt runner (fails on main)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
code-yeongyu/senpi#3756 ·
Los mantenedores suelen responder en 1 día
-
org:external package:deepagents priority:triage topic:memory topic:middleware type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
langchain-ai/deepagents#7059 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
osmlab/name-suggestion-index#12992 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
hemilabs/ui-monorepo#2506 ·
Los mantenedores suelen responder en 1 día